summaryrefslogtreecommitdiff
path: root/src/plugins/remotelinux/remotelinuxdebugsupport.cpp
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2016-01-27 18:25:13 +0100
committerhjk <hjk@theqtcompany.com>2016-01-28 13:27:30 +0000
commit58be2708a353128fd83555d8e20b5a32d6efd6d7 (patch)
tree728838edc3ea87bd2f92cbde6e68f15463b05805 /src/plugins/remotelinux/remotelinuxdebugsupport.cpp
parent2a83564d6242e2b8500aee4392143bafc3de6de7 (diff)
downloadqt-creator-58be2708a353128fd83555d8e20b5a32d6efd6d7.tar.gz
ProjectExplorer: Use Runnable in DeviceProcess::start
Change-Id: I8ce5b536745db11980f43449a055b7ebf9da83d2 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com> Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'src/plugins/remotelinux/remotelinuxdebugsupport.cpp')
-rw-r--r--src/plugins/remotelinux/remotelinuxdebugsupport.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/plugins/remotelinux/remotelinuxdebugsupport.cpp b/src/plugins/remotelinux/remotelinuxdebugsupport.cpp
index 02c7c101ac..8316dbfedc 100644
--- a/src/plugins/remotelinux/remotelinuxdebugsupport.cpp
+++ b/src/plugins/remotelinux/remotelinuxdebugsupport.cpp
@@ -124,18 +124,25 @@ void LinuxDeviceDebugSupport::startExecution()
this, &LinuxDeviceDebugSupport::handleRemoteErrorOutput);
connect(runner, &DeviceApplicationRunner::remoteStdout,
this, &LinuxDeviceDebugSupport::handleRemoteOutput);
+ connect(runner, &DeviceApplicationRunner::finished,
+ this, &LinuxDeviceDebugSupport::handleAppRunnerFinished);
+ connect(runner, &DeviceApplicationRunner::reportProgress,
+ this, &LinuxDeviceDebugSupport::handleProgressReport);
+ connect(runner, &DeviceApplicationRunner::reportError,
+ this, &LinuxDeviceDebugSupport::handleAppRunnerError);
if (d->qmlDebugging && !d->cppDebugging)
connect(runner, &DeviceApplicationRunner::remoteProcessStarted,
this, &LinuxDeviceDebugSupport::handleRemoteProcessStarted);
- QStringList args = QtcProcess::splitArgs(runnable().commandLineArguments, OsTypeLinux);
+ StandardRunnable r = runnable();
+ QStringList args = QtcProcess::splitArgs(r.commandLineArguments, OsTypeLinux);
QString command;
if (d->qmlDebugging)
args.prepend(QmlDebug::qmlDebugTcpArguments(QmlDebug::QmlDebuggerServices, d->qmlPort));
if (d->qmlDebugging && !d->cppDebugging) {
- command = runnable().executable;
+ command = r.executable;
} else {
command = device()->debugServerPath();
if (command.isEmpty())
@@ -144,16 +151,9 @@ void LinuxDeviceDebugSupport::startExecution()
args.append(QString::fromLatin1("--multi"));
args.append(QString::fromLatin1(":%1").arg(d->gdbServerPort));
}
-
- connect(runner, &DeviceApplicationRunner::finished,
- this, &LinuxDeviceDebugSupport::handleAppRunnerFinished);
- connect(runner, &DeviceApplicationRunner::reportProgress,
- this, &LinuxDeviceDebugSupport::handleProgressReport);
- connect(runner, &DeviceApplicationRunner::reportError,
- this, &LinuxDeviceDebugSupport::handleAppRunnerError);
- runner->setEnvironment(runnable().environment);
- runner->setWorkingDirectory(runnable().workingDirectory);
- runner->start(device(), command, args);
+ r.executable = command;
+ r.commandLineArguments = QtcProcess::joinArgs(args, OsTypeLinux);
+ runner->start(device(), r);
}
void LinuxDeviceDebugSupport::handleAppRunnerError(const QString &error)