Debugger: Fix decision between exec-run and continue.

In the remote gdb adapter.

Change-Id: I6f0d9a8d7198aac4d79bb6643ce67428350f1920
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Christian Kandeler
2016-04-21 14:59:00 +02:00
parent 396538dd36
commit cba8763f55

View File

@@ -404,12 +404,11 @@ void GdbRemoteServerEngine::runEngine()
{ {
QTC_ASSERT(state() == EngineRunRequested, qDebug() << state()); QTC_ASSERT(state() == EngineRunRequested, qDebug() << state());
const QString remoteExecutable = runParameters().inferior.executable; if (runParameters().useContinueInsteadOfRun) {
if (!remoteExecutable.isEmpty()) {
runCommand({"-exec-run", RunRequest, CB(handleExecRun)});
} else {
notifyEngineRunAndInferiorStopOk(); notifyEngineRunAndInferiorStopOk();
continueInferiorInternal(); continueInferiorInternal();
} else {
runCommand({"-exec-run", RunRequest, CB(handleExecRun)});
} }
} }