From 185f8985c693195b2026b0504d02d8690fb04705 Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 30 Nov 2018 14:05:18 +0100 Subject: [PATCH] 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 Reviewed-by: Eike Ziller --- src/plugins/debugger/gdb/gdbengine.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 723f508763c..b4d104509e8 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -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; }