Commit 9f690d81 authored by hjk's avatar hjk

Debugger: Move start dependency on PortsGatherer to GdbServerRunner

It's always needed and GdbServerRunner knows the PortsGatherer.

This also makes the setup more similar to the QNX PDebugRunner setup.

Change-Id: I5863d2c77cd5c92d0f25682d655c9901b8939c30
Reviewed-by: Christian Kandeler's avatarChristian Kandeler <christian.kandeler@qt.io>
parent 5b2a46e3
......@@ -1993,7 +1993,6 @@ public:
auto gdbServer = new GdbServerRunner(runControl, portsGatherer());
gdbServer->setUseMulti(false);
gdbServer->addStartDependency(portsGatherer());
gdbServer->setDevice(device);
gdbServer->setAttachPid(ProcessHandle(pid));
......
......@@ -1009,6 +1009,7 @@ GdbServerRunner::GdbServerRunner(RunControl *runControl, GdbServerPortsGatherer
setDisplayName("GdbServerRunner");
if (runControl->runnable().is<StandardRunnable>())
m_runnable = runControl->runnable().as<StandardRunnable>();
addStartDependency(m_portsGatherer);
}
GdbServerRunner::~GdbServerRunner()
......
......@@ -43,7 +43,6 @@ LinuxDeviceDebugSupport::LinuxDeviceDebugSupport(RunControl *runControl)
addQmlServerInferiorCommandLineArgumentIfNeeded();
auto gdbServer = new GdbServerRunner(runControl, portsGatherer());
gdbServer->addStartDependency(portsGatherer());
addStartDependency(gdbServer);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment