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)
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())
......@@ -3518,7 +3521,7 @@ WatchData GdbEngine::localVariable(const GdbMi &item,
foreach (const GdbMi &child, item.children())
numExps += int( == "exp");
if (numExps > 1)
return WatchData();
QByteArray name = item.findChild("exp").data();
QByteArray name = item.findChild("name").data();
Supports Markdown
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