Commit 87e0e925 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

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
parent f069f1a6
...@@ -1804,6 +1804,8 @@ void DebuggerManager::setState(DebuggerState state, bool forced) ...@@ -1804,6 +1804,8 @@ void DebuggerManager::setState(DebuggerState state, bool forced)
d->m_actions.snapshotAction-> d->m_actions.snapshotAction->
setEnabled(stopped && (engineCapabilities & SnapshotCapability)); setEnabled(stopped && (engineCapabilities & SnapshotCapability));
theDebuggerAction(OperateByInstruction)->setEnabled(!running);
const bool interruptIsExit = !running; const bool interruptIsExit = !running;
if (interruptIsExit) { if (interruptIsExit) {
d->m_actions.stopAction->setIcon(d->m_stopIcon); d->m_actions.stopAction->setIcon(d->m_stopIcon);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment