RemoteLinux: Fix arguments for remote debugging.

Was broken by 162d0e3d.

Task-number: QTCREATORBUG-12718
Change-Id: I30cc8a8df89e4e0b0ffbd4c045a0b9d87abb8823
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
This commit is contained in:
Tim Sander
2014-07-23 17:25:41 +02:00
committed by hjk
parent 06bb01249b
commit efa62d54c7

View File

@@ -178,9 +178,10 @@ void LinuxDeviceDebugSupport::startExecution()
command = device()->debugServerPath();
if (command.isEmpty())
command = QLatin1String("gdbserver");
args.prepend(QString::fromLatin1(":%1").arg(d->gdbServerPort));
args.prepend(QString::fromLatin1("--multi"));
args.prepend(QString::fromLatin1("--once"));
args.clear();
args.append(QString::fromLatin1("--once"));
args.append(QString::fromLatin1("--multi"));
args.append(QString::fromLatin1(":%1").arg(d->gdbServerPort));
}
connect(runner, SIGNAL(finished(bool)), SLOT(handleAppRunnerFinished(bool)));