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-on: http://codereview.qt.nokia.com/366

Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarhjk <qthjk@ovi.com>
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;
else
it->data.lineNumber = lineNumber;
......
Markdown is supported
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