Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Plugin to update "Additional Startup commands" and "Additional Attach commands" under Tools->options->debugger->gdb
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 1 Posters 522 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Veepee
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • V Offline
      V Offline
      Veepee
      wrote on last edited by
      #2

      Any one any clue ?

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved