Commit 739144ce authored by hjk's avatar hjk
Browse files

debugger: re-enable breakpoint updates after library loading

parent bc53ce72
......@@ -2224,11 +2224,9 @@ void GdbEngine::handleBreakInsert2(const GdbResponse &response)
void GdbEngine::reloadBreakListInternal()
{
/*
postCommand("-break-list",
NeedsStop | RebuildBreakpointModel,
CB(handleBreakList));
*/
}
void GdbEngine::handleBreakList(const GdbResponse &response)
......@@ -2265,19 +2263,14 @@ void GdbEngine::handleBreakList(const GdbMi &table)
if (num <= 0)
bkpts.removeAt(i);
}
//qDebug() << "LEFT" << bkpts.size() << "BREAKPOINTS";
}
foreach (const GdbMi &bkpt, bkpts) {
BreakpointResponse needle;
needle.fileName = _("xx");
needle.number = bkpt.findChild("number").data().toInt();
BreakpointId id = breakHandler()->findSimilarBreakpoint(needle);
//qDebug() << "\n\nGOT: " << bkpt.toString() << '\n' << temp.toString();
// FIXME: use updateBreakpointDataFromOutput()
if (id != BreakpointId(-1)) {
//qDebug() << " FROM: " << data->toString();
updateBreakpointDataFromOutput(id, bkpt);
//qDebug() << " TO: " << data->toString();
} else {
qDebug() << " NOTHING SUITABLE FOUND";
showMessage(_("CANNOT FIND BP: " + bkpt.toString()));
......
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