aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/remotelinux/remotelinuxdebugsupport.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2017-10-19 14:24:33 +0200
committerhjk <hjk@qt.io>2017-10-19 16:02:42 +0000
commitf1a4a10cfea95833f5591b557357b23832d38a0d (patch)
tree87e715023e42496680794d6b6f39f8d9f6abe4c6 /src/plugins/remotelinux/remotelinuxdebugsupport.cpp
parentf521b2428d91486dbf30b849387b124e5dcd13fa (diff)
RemoteLinux: Use the optional PortGatherer from the DebuggerRunTool
Change-Id: I4a79abff197ea72df421fbafe11823480719f4a6 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/remotelinux/remotelinuxdebugsupport.cpp')
-rw-r--r--src/plugins/remotelinux/remotelinuxdebugsupport.cpp18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/plugins/remotelinux/remotelinuxdebugsupport.cpp b/src/plugins/remotelinux/remotelinuxdebugsupport.cpp
index 1687eb1808..cf12971ec7 100644
--- a/src/plugins/remotelinux/remotelinuxdebugsupport.cpp
+++ b/src/plugins/remotelinux/remotelinuxdebugsupport.cpp
@@ -39,12 +39,11 @@ LinuxDeviceDebugSupport::LinuxDeviceDebugSupport(RunControl *runControl)
{
setDisplayName("LinuxDeviceDebugSupport");
- m_portsGatherer = new GdbServerPortsGatherer(runControl);
- m_portsGatherer->setUseGdbServer(isCppDebugging());
- m_portsGatherer->setUseQmlServer(isQmlDebugging());
+ setUsePortsGatherer(isCppDebugging(), isQmlDebugging());
+ addQmlServerInferiorCommandLineArgumentIfNeeded();
- auto gdbServer = new GdbServerRunner(runControl, m_portsGatherer);
- gdbServer->addStartDependency(m_portsGatherer);
+ auto gdbServer = new GdbServerRunner(runControl, portsGatherer());
+ gdbServer->addStartDependency(portsGatherer());
addStartDependency(gdbServer);
@@ -59,14 +58,5 @@ LinuxDeviceDebugSupport::LinuxDeviceDebugSupport(RunControl *runControl)
setSymbolFile(rlrc->localExecutableFilePath());
}
-void LinuxDeviceDebugSupport::start()
-{
- setRemoteChannel(m_portsGatherer->gdbServerChannel());
- setQmlServer(m_portsGatherer->qmlServer());
- addQmlServerInferiorCommandLineArgumentIfNeeded();
-
- DebuggerRunTool::start();
-}
-
} // namespace Internal
} // namespace RemoteLinux