From 87e0e9253f1951ee4fb63b0f57daf8931ed0ca1c Mon Sep 17 00:00:00 2001 From: Friedemann Kleint <Friedemann.Kleint@nokia.com> Date: Fri, 16 Apr 2010 17:01:00 +0200 Subject: [PATCH] Debugger: Disable "Operate by instruction" when running. Preventing an the stack handler asserting on invalid index when requesting disassembling. Task-number: QTCREATORBUG-1173 Acked-by: hjk --- src/plugins/debugger/debuggermanager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/debugger/debuggermanager.cpp b/src/plugins/debugger/debuggermanager.cpp index a9bb69ccc69..76a60d09a07 100644 --- a/src/plugins/debugger/debuggermanager.cpp +++ b/src/plugins/debugger/debuggermanager.cpp @@ -1804,6 +1804,8 @@ void DebuggerManager::setState(DebuggerState state, bool forced) d->m_actions.snapshotAction-> setEnabled(stopped && (engineCapabilities & SnapshotCapability)); + theDebuggerAction(OperateByInstruction)->setEnabled(!running); + const bool interruptIsExit = !running; if (interruptIsExit) { d->m_actions.stopAction->setIcon(d->m_stopIcon); -- GitLab