Debugger: Fix unexpected state transitions with GDB

... for temporary stops.

The transition is not unexpected, we just failed to communicate the
expectation.

Change-Id: I30cdcffdcc3672e759023cd0c07de4bea11c2e32
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2018-11-30 14:05:18 +01:00
parent 35f5bcd432
commit 185f8985c6

View File

@@ -757,6 +757,7 @@ void GdbEngine::runCommand(const DebuggerCommand &command)
if (state() == InferiorRunOk) {
showStatusMessage(tr("Stopping temporarily."), 1000);
m_onStop.append(cmd, wantContinue);
setState(InferiorStopRequested);
interruptInferior();
return;
}