forked from qt-creator/qt-creator
Debugger: Fix step into after switching operate by instruction
Update m_lastOperateByInstruction by calling adjustOperateByInstruction before checking before checking the value. Change-Id: Ic58da417f83381d9a2300ac0e5fcd2c06f41fc34 Fixes: QTCREATORBUG-21708 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -764,9 +764,9 @@ bool CdbEngine::hasCapability(unsigned cap) const
|
|||||||
|
|
||||||
void CdbEngine::executeStepIn(bool byInstruction)
|
void CdbEngine::executeStepIn(bool byInstruction)
|
||||||
{
|
{
|
||||||
|
adjustOperateByInstruction(byInstruction);
|
||||||
if (!m_lastOperateByInstruction)
|
if (!m_lastOperateByInstruction)
|
||||||
m_sourceStepInto = true; // See explanation at handleStackTrace().
|
m_sourceStepInto = true; // See explanation at handleStackTrace().
|
||||||
adjustOperateByInstruction(byInstruction);
|
|
||||||
runCommand({"t", NoFlags}); // Step into-> t (trace)
|
runCommand({"t", NoFlags}); // Step into-> t (trace)
|
||||||
STATE_DEBUG(state(), Q_FUNC_INFO, __LINE__, "notifyInferiorRunRequested")
|
STATE_DEBUG(state(), Q_FUNC_INFO, __LINE__, "notifyInferiorRunRequested")
|
||||||
notifyInferiorRunRequested();
|
notifyInferiorRunRequested();
|
||||||
|
|||||||
Reference in New Issue
Block a user