forked from qt-creator/qt-creator
Debugger: Update breakpoint pending state with LLDB properly
A breakpoint with known locations is not pending. Change-Id: I4da7b60b6771bbea40ce74d44518c26e6214ba6c Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -638,10 +638,12 @@ void LldbEngine::updateBreakpointData(Breakpoint bp, const GdbMi &bkpt, bool add
|
|||||||
sub.lineNumber = location["line"].toInt();
|
sub.lineNumber = location["line"].toInt();
|
||||||
bp.insertSubBreakpoint(sub);
|
bp.insertSubBreakpoint(sub);
|
||||||
}
|
}
|
||||||
|
response.pending = false;
|
||||||
} else if (numChild == 1) {
|
} else if (numChild == 1) {
|
||||||
const GdbMi location = locations.childAt(0);
|
const GdbMi location = locations.childAt(0);
|
||||||
response.address = location["addr"].toAddress();
|
response.address = location["addr"].toAddress();
|
||||||
response.functionName = location["func"].toUtf8();
|
response.functionName = location["func"].toUtf8();
|
||||||
|
response.pending = false;
|
||||||
} else {
|
} else {
|
||||||
// This can happen for pending breakpoints.
|
// This can happen for pending breakpoints.
|
||||||
showMessage(_("NO LOCATIONS (YET) FOR BP %1").arg(response.toString()));
|
showMessage(_("NO LOCATIONS (YET) FOR BP %1").arg(response.toString()));
|
||||||
|
Reference in New Issue
Block a user