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

Fix crash on unexpected gdb output

parent 9aee37f9
......@@ -170,6 +170,10 @@ void LocalsView::addStruct(QTreeWidgetItem *parent, const QString &vString)
// Value
start = end + 3;
end = start;
if (start < 0 || start > vString.size()) {
kDebug() << vString << start;
break;
}
if (vString[start] == '{') {
start++;
end++;
......
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