forked from qt-creator/qt-creator
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
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user