Commit ef9623d3 authored by hjk's avatar hjk Committed by hjk
Browse files

debugger: fix a case of "overcompensation" when correcting breakpoint lines

Change-Id: Idfca9513926004f5ab67c29838fc18c963a57a4b

Reviewed-by: default avatarQt Sanity Bot <>
Reviewed-by: default avatarhjk <>
parent 16a1b2c1
......@@ -1051,7 +1051,9 @@ void BreakHandler::updateLineNumberFromMarker(BreakpointId id, int lineNumber)
// Ignore updates to the "real" line number while the debugger is
// running, as this can be triggered by moving the breakpoint to
// the next line that generated code.
if (isEngineRunning(id))
if (it->data.lineNumber == lineNumber)
; // Nothing
else if (isEngineRunning(id))
it->data.lineNumber += lineNumber - it->response.lineNumber;
it->data.lineNumber = lineNumber;
Supports Markdown
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