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