forked from qt-creator/qt-creator
debugger: rewrite parser for cli sub-breakpoint notifications
Change-Id: I971a2af2534bc650e8c604a5c2dc2e1846dbb045 Reviewed-on: http://codereview.qt.nokia.com/592 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -302,9 +302,11 @@ BreakpointId parseBreakPoint(const GdbMi &gdbmi, BreakpointResponse *r,
|
||||
QString *expression /* = 0 */)
|
||||
{
|
||||
BreakpointId id = BreakpointId(-1);
|
||||
gdbmiChildToInt(gdbmi, "number", &(r->number));
|
||||
int majorPart = 0;
|
||||
gdbmiChildToInt(gdbmi, "number", &majorPart);
|
||||
gdbmiChildToBool(gdbmi, "enabled", &(r->enabled));
|
||||
gdbmiChildToBool(gdbmi, "deferred", &(r->pending));
|
||||
r->id = BreakpointId(majorPart);
|
||||
const GdbMi idG = gdbmi.findChild("id");
|
||||
if (idG.isValid()) { // Might not be valid if there is not id
|
||||
bool ok;
|
||||
|
||||
Reference in New Issue
Block a user