diff options
author | Eike Ziller <[email protected]> | 2017-10-25 16:07:21 +0200 |
---|---|---|
committer | Eike Ziller <[email protected]> | 2017-10-25 16:07:21 +0200 |
commit | 7f626b1182cae5407fa5495b264aa3d9170aa09d (patch) | |
tree | 9a87c924c34adf333a2bd33200a31afb29af511a /src/plugins/debugger/debuggerplugin.cpp | |
parent | 81f5c1c8ec19bb58fc4cfb607e2c2f8ebf5cc6d8 (diff) | |
parent | dd6092371374212b407ff248ba1fa5ba8fde795d (diff) |
Merge remote-tracking branch 'origin/4.5'
Change-Id: Iceaa4ca40b5318744bde8a76c6d3ccca08df71bb
Diffstat (limited to 'src/plugins/debugger/debuggerplugin.cpp')
-rw-r--r-- | src/plugins/debugger/debuggerplugin.cpp | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index e5b8d8fdbe6..11d37635e28 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -1987,15 +1987,11 @@ public: { IDevice::ConstPtr device = DeviceKitInformation::device(kit); setDisplayName("AttachToRunningProcess"); + setUsePortsGatherer(true, false); + portsGatherer()->setDevice(device); - portsGatherer = new GdbServerPortsGatherer(runControl); - portsGatherer->setUseGdbServer(true); - portsGatherer->setUseQmlServer(false); - portsGatherer->setDevice(device); - - auto gdbServer = new GdbServerRunner(runControl, portsGatherer); + auto gdbServer = new GdbServerRunner(runControl, portsGatherer()); gdbServer->setUseMulti(false); - gdbServer->addStartDependency(portsGatherer); gdbServer->setDevice(device); gdbServer->setAttachPid(ProcessHandle(pid)); @@ -2008,14 +2004,6 @@ public: setUseContinueInsteadOfRun(true); setContinueAfterAttach(false); } - - void start() final - { - setRemoteChannel(portsGatherer->gdbServerChannel()); - DebuggerRunTool::start(); - } - - GdbServerPortsGatherer *portsGatherer; }; void DebuggerPluginPrivate::attachToRunningApplication() @@ -2945,8 +2933,6 @@ void DebuggerPluginPrivate::runControlStarted(DebuggerRunTool *runTool) void DebuggerPluginPrivate::runControlFinished(DebuggerRunTool *runTool) { - if (runTool && runTool->engine()) - runTool->engine()->handleFinished(); showStatusMessage(tr("Debugger finished.")); m_snapshotHandler->removeSnapshot(runTool); if (m_snapshotHandler->size() == 0) { |