Commit 82ab15e4 authored by hjk's avatar hjk

Debugger: Avoid endless loop when setting breakpoint on functions

Change-Id: I3ead86ba50d1d68a46cdc58c06684b2ac8c091c0
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@digia.com>
parent 174baf5e
......@@ -1439,8 +1439,13 @@ bool BreakHandler::BreakpointItem::needsChange() const
return true;
if (data.command != response.command)
return true;
if (data.lineNumber != response.lineNumber)
if (data.type == BreakpointByFileAndLine && data.lineNumber != response.lineNumber)
return true;
// FIXME: Too strict, functions may have parameter lists, or not.
// if (data.type == BreakpointByFunction && data.functionName != response.functionName)
// return true;
// if (data.type == BreakpointByAddress && data.address != response.address)
// return true;
return false;
}
......
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