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:
David Schulz
2019-01-08 08:41:58 +01:00
parent 2088121a5f
commit 6809848b23

View File

@@ -764,9 +764,9 @@ bool CdbEngine::hasCapability(unsigned cap) const
void CdbEngine::executeStepIn(bool byInstruction)
{
adjustOperateByInstruction(byInstruction);
if (!m_lastOperateByInstruction)
m_sourceStepInto = true; // See explanation at handleStackTrace().
adjustOperateByInstruction(byInstruction);
runCommand({"t", NoFlags}); // Step into-> t (trace)
STATE_DEBUG(state(), Q_FUNC_INFO, __LINE__, "notifyInferiorRunRequested")
notifyInferiorRunRequested();