From efa62d54c756c9504eb36d0583c9ad8de5532a9d Mon Sep 17 00:00:00 2001 From: Tim Sander Date: Wed, 23 Jul 2014 17:25:41 +0200 Subject: [PATCH] RemoteLinux: Fix arguments for remote debugging. Was broken by 162d0e3d. Task-number: QTCREATORBUG-12718 Change-Id: I30cc8a8df89e4e0b0ffbd4c045a0b9d87abb8823 Reviewed-by: Christian Kandeler --- src/plugins/remotelinux/remotelinuxdebugsupport.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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)));