diff options
author | hjk <hjk@qt.io> | 2018-11-30 14:05:18 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2018-11-30 13:51:47 +0000 |
commit | 185f8985c693195b2026b0504d02d8690fb04705 (patch) | |
tree | e3e31b2022d169e621173ac1aebcb6037ceb487d | |
parent | 35f5bcd432a60f9f2f88fde92aa103244335b5da (diff) | |
download | qt-creator-185f8985c693195b2026b0504d02d8690fb04705.tar.gz |
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>
-rw-r--r-- | src/plugins/debugger/gdb/gdbengine.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 723f508763..b4d104509e 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; } |