aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/debuggerplugin.cpp
diff options
context:
space:
mode:
authorEike Ziller <[email protected]>2017-10-25 16:07:21 +0200
committerEike Ziller <[email protected]>2017-10-25 16:07:21 +0200
commit7f626b1182cae5407fa5495b264aa3d9170aa09d (patch)
tree9a87c924c34adf333a2bd33200a31afb29af511a /src/plugins/debugger/debuggerplugin.cpp
parent81f5c1c8ec19bb58fc4cfb607e2c2f8ebf5cc6d8 (diff)
parentdd6092371374212b407ff248ba1fa5ba8fde795d (diff)
Merge remote-tracking branch 'origin/4.5'
Diffstat (limited to 'src/plugins/debugger/debuggerplugin.cpp')
-rw-r--r--src/plugins/debugger/debuggerplugin.cpp20
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) {