Plugin to update "Additional Startup commands" and "Additional Attach commands" under Tools->options->debugger->gdb



  • I have a qt creator plugin written to create a Kit automatically to update sysroot, target connection details,etc . This was achievable using interfaces available from remotelinux and Debugger plugins.

    Eg.
    ProjectExplorer::Kit *kit = new ProjectExplorer::Kit(YOUR_ID);
    kit->setUnexpandedDisplayName(YOUR_DISPLAY_NAME);
    kit->setAutoDetected(false);

    • Debugger:

    Debugger::DebuggerItem debugger;

    debugger.setCommand("...");
    debugger.setEngineType(Debugger::GdbEngineType or Debugger::CdbEngineType);

    debugger.setUnexpandedDisplayName("...");
    debugger.setAutoDetected(true);
    debugger.setAbi(tc->targetAbi());
    debugger.setWorkingDirectory("...");
    debugger.reinitializeFromFile();

    Debugger::DebuggerKitInformation::setDebugger(kit, Debugger::DebuggerItemManager::registerDebugger(debugger));

    • Device type ( LinuxDevice in my case )

    ProjectExplorer::DeviceTypeKitInformation::setDeviceTypeId(kit, RemoteLinux::Constants::GenericLinuxOsType);

    Now similarly, I would need to update "Additional Startup commands" and "Additional attach commands" from Tools -> Options->debugger->gdb in qt creator.
    Any ideas on how to do this would be appreciated.



  • Any one any clue ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.