From d146dd67f3e0c60a3bfe3e96a7864ab9bb039b50 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 13 Apr 2011 12:56:42 +0200 Subject: [PATCH] Debugger[CDB]: Fix assembly mode stepping. Snapped back to source mode as the pending variable was not set. Reviewed-by: hjk --- src/plugins/debugger/cdb/cdbengine.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/plugins/debugger/cdb/cdbengine.cpp b/src/plugins/debugger/cdb/cdbengine.cpp index 3c2a284fc26..2b60634ffc1 100644 --- a/src/plugins/debugger/cdb/cdbengine.cpp +++ b/src/plugins/debugger/cdb/cdbengine.cpp @@ -486,12 +486,10 @@ CdbEngine::~CdbEngine() void CdbEngine::operateByInstructionTriggered(bool operateByInstruction) { - if (state() == InferiorStopOk) { + // To be set next time session becomes accessible + m_operateByInstructionPending = operateByInstruction; + if (state() == InferiorStopOk) syncOperateByInstruction(operateByInstruction); - } else { - // To be set next time session becomes accessible - m_operateByInstructionPending = operateByInstruction; - } } void CdbEngine::syncOperateByInstruction(bool operateByInstruction)