From 739144ce91feaeed5c456d88021487de6aee3c53 Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 1 Dec 2010 11:43:48 +0100 Subject: [PATCH] debugger: re-enable breakpoint updates after library loading --- src/plugins/debugger/gdb/gdbengine.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 1dfe0e063c1..d7d9e3dfe1e 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -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()));