forked from qt-creator/qt-creator
debugger: fix parsing of last sub-breakpoint of a breakpoint
Last chunk was not added properly. Change-Id: I3999650eabdedcebb412f84b530b5817f2ae1e0d Reviewed-on: http://codereview.qt.nokia.com/1070 Reviewed-by: hjk <qthjk@ovi.com> Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
This commit is contained in:
@@ -2848,7 +2848,7 @@ void GdbEngine::extractDataFromInfoBreak(const QString &output, BreakpointModelI
|
||||
sub.address = address;
|
||||
sub.functionName = QString::fromUtf8(function);
|
||||
sub.setLocation(location);
|
||||
sub.id = subId;
|
||||
sub.id = BreakpointResponseId(majorPart, minorPart);
|
||||
sub.type = response.type;
|
||||
sub.address = address;
|
||||
handler->insertSubBreakpoint(id, sub);
|
||||
@@ -2863,7 +2863,20 @@ void GdbEngine::extractDataFromInfoBreak(const QString &output, BreakpointModelI
|
||||
}
|
||||
}
|
||||
}
|
||||
// Commit main data.
|
||||
if (minorPart) {
|
||||
// Commit last chunk.
|
||||
BreakpointResponse sub;
|
||||
sub.address = address;
|
||||
sub.functionName = QString::fromUtf8(function);
|
||||
sub.setLocation(location);
|
||||
sub.id = BreakpointResponseId(majorPart, minorPart);
|
||||
sub.type = response.type;
|
||||
sub.address = address;
|
||||
handler->insertSubBreakpoint(id, sub);
|
||||
location.clear();
|
||||
function.clear();
|
||||
address = 0;
|
||||
}
|
||||
} else {
|
||||
qDebug() << "COULD NOT MATCH" << output;
|
||||
response.id = BreakpointResponseId(); // Unavailable.
|
||||
|
||||
Reference in New Issue
Block a user