Debugger: Support gdbservers that don't have --once again

There are too many setup without support for --once.

Change-Id: I172b8b8d58a3960d9d93b48e692e612b7627ba56
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Reviewed-by: Tim Sander <tim@krieglstein.org>
This commit is contained in:
hjk
2014-10-02 17:29:31 +02:00
parent 6157b2a72a
commit 5bb8134ec1
2 changed files with 1 additions and 1 deletions

View File

@@ -1945,6 +1945,7 @@ void GdbEngine::notifyAdapterShutdownOk()
m_commandsDoneCallback = 0;
switch (m_gdbProc->state()) {
case QProcess::Running:
postCommand("monitor exit");
postCommand("-gdb-exit", GdbEngine::ExitRequest, CB(handleGdbExit));
break;
case QProcess::NotRunning:

View File

@@ -182,7 +182,6 @@ void LinuxDeviceDebugSupport::startExecution()
if (command.isEmpty())
command = QLatin1String("gdbserver");
args.clear();
args.append(QString::fromLatin1("--once"));
args.append(QString::fromLatin1("--multi"));
args.append(QString::fromLatin1(":%1").arg(d->gdbServerPort));
}