forked from qt-creator/qt-creator
Debugger: Move breakpoint back from corrected location.
Reviewed-by: hjk Rubber-stamped-by: Task-number: QTCREATORBUG-3912
This commit is contained in:
@@ -1095,9 +1095,6 @@ void BreakHandler::setResponse(BreakpointId id,
|
|||||||
item.destroyMarker();
|
item.destroyMarker();
|
||||||
// Take over corrected values from response.
|
// Take over corrected values from response.
|
||||||
if (takeOver) {
|
if (takeOver) {
|
||||||
if (item.data.type == BreakpointByFileAndLine
|
|
||||||
&& response.correctedLineNumber > 0)
|
|
||||||
item.data.lineNumber = response.correctedLineNumber;
|
|
||||||
if ((item.data.type == BreakpointByFileAndLine
|
if ((item.data.type == BreakpointByFileAndLine
|
||||||
|| item.data.type == BreakpointByFunction)
|
|| item.data.type == BreakpointByFunction)
|
||||||
&& !response.module.isEmpty())
|
&& !response.module.isEmpty())
|
||||||
|
Reference in New Issue
Block a user