Commit c7faf7e5 authored by Kåre Särs's avatar Kåre Särs

GDB-plugin: Fix crash on unexpected locals value output

parent fa777d53
......@@ -152,7 +152,7 @@ void LocalsView::addStruct(QTreeWidgetItem *parent, const QString &vString)
end = vString.indexOf(" = ", start);
if (end < 0) {
// error situation -> bail out
createWrappedItem(parent, symbolAndValue[0], vString.right(start));
createWrappedItem(parent, QString(), vString.right(start));
break;
}
symbolAndValue << vString.mid(start, end-start);
......
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