diff --git a/src/plugins/remotelinux/remotelinuxdebugsupport.cpp b/src/plugins/remotelinux/remotelinuxdebugsupport.cpp index 11a5f0df529..58cd4e5c131 100644 --- a/src/plugins/remotelinux/remotelinuxdebugsupport.cpp +++ b/src/plugins/remotelinux/remotelinuxdebugsupport.cpp @@ -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)));