diff options
author | hjk <hjk@qt.io> | 2017-04-21 17:20:57 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2017-04-24 14:48:35 +0000 |
commit | 07884645af8fb449d6b1343d33b734925588768a (patch) | |
tree | 59d84632e36a60492ec719da9980c61602286f37 /src/plugins/remotelinux/remotelinuxdebugsupport.cpp | |
parent | e720e72a258122d2db15ec3b1b75699fe133184b (diff) |
Debugger et al: Move code from DebuggerRunControl to DebuggerRunTool
It's tool specific, so put it into the tool (only) related code.
The additional level of indirection will go again, plus the original
one will be removed once the *DebugSupport classes can directly
use DebuggerRunTool as base.
Change-Id: Ieaa386a0f7d724b09cedaaba8fb7d1e6dc4ad55b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/remotelinux/remotelinuxdebugsupport.cpp')
-rw-r--r-- | src/plugins/remotelinux/remotelinuxdebugsupport.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/remotelinux/remotelinuxdebugsupport.cpp b/src/plugins/remotelinux/remotelinuxdebugsupport.cpp index 5e2443a23e..b5b8924cc2 100644 --- a/src/plugins/remotelinux/remotelinuxdebugsupport.cpp +++ b/src/plugins/remotelinux/remotelinuxdebugsupport.cpp @@ -101,7 +101,7 @@ bool LinuxDeviceDebugSupport::isQmlDebugging() const void LinuxDeviceDebugSupport::showMessage(const QString &msg, int channel) { if (state() != Inactive) - runControl()->showMessage(msg, channel); + runControl()->toolRunner()->showMessage(msg, channel); } DebuggerRunControl *LinuxDeviceDebugSupport::runControl() const @@ -185,7 +185,7 @@ void LinuxDeviceDebugSupport::handleAppRunnerError(const QString &error) { if (state() == Running) { showMessage(error, AppError); - runControl()->notifyInferiorIll(); + runControl()->toolRunner()->notifyInferiorIll(); } else if (state() != Inactive) { handleAdapterSetupFailed(error); } @@ -199,15 +199,15 @@ void LinuxDeviceDebugSupport::handleAppRunnerFinished(bool success) if (state() == Running) { // The QML engine does not realize on its own that the application has finished. if (d->qmlDebugging && !d->cppDebugging) - runControl()->quitDebugger(); + runControl()->toolRunner()->quitDebugger(); else if (!success) - runControl()->notifyInferiorIll(); + runControl()->toolRunner()->notifyInferiorIll(); } else if (state() == StartingRunner) { RemoteSetupResult result; result.success = false; result.reason = tr("Debugging failed."); - runControl()->notifyEngineRemoteSetupFinished(result); + runControl()->toolRunner()->notifyEngineRemoteSetupFinished(result); } reset(); } @@ -251,7 +251,7 @@ void LinuxDeviceDebugSupport::handleAdapterSetupFailed(const QString &error) RemoteSetupResult result; result.success = false; result.reason = tr("Initial setup failed: %1").arg(error); - runControl()->notifyEngineRemoteSetupFinished(result); + runControl()->toolRunner()->notifyEngineRemoteSetupFinished(result); } void LinuxDeviceDebugSupport::handleAdapterSetupDone() @@ -262,7 +262,7 @@ void LinuxDeviceDebugSupport::handleAdapterSetupDone() result.success = true; result.gdbServerPort = d->gdbServerPort; result.qmlServerPort = d->qmlPort; - runControl()->notifyEngineRemoteSetupFinished(result); + runControl()->toolRunner()->notifyEngineRemoteSetupFinished(result); } void LinuxDeviceDebugSupport::handleRemoteProcessStarted() |