Commit 074d477f authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Got the gdb engine to compile on Mac.

Reviewed by: Friedemann Kleint
parent 25ee70bb
......@@ -3497,8 +3497,11 @@ void GdbEngine::handleStackListLocals(const GdbResponse &response)
&uninitializedVariables);
}
QList<WatchData> list;
foreach (const GdbMi &item, locals)
list.push_back(localVariable(item, uninitializedVariables, &seen));
foreach (const GdbMi &item, locals) {
const WatchData data = localVariable(item, uninitializedVariables, &seen);
if (data.isValid())
list.push_back(data);
}
manager()->watchHandler()->insertBulkData(list);
manager()->watchHandler()->updateWatchers();
}
......@@ -3518,7 +3521,7 @@ WatchData GdbEngine::localVariable(const GdbMi &item,
foreach (const GdbMi &child, item.children())
numExps += int(child.name() == "exp");
if (numExps > 1)
continue;
return WatchData();
QByteArray name = item.findChild("exp").data();
#else
QByteArray name = item.findChild("name").data();
......
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