forked from qt-creator/qt-creator
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:
@@ -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)});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user