debugger: make auto-deref display the pointer properly on toplevel entries on mac

Change-Id: I98644761466731286d89f296a8eeefab3425501f
Reviewed-on: http://codereview.qt.nokia.com/1359
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
hjk
2011-07-08 12:09:50 +02:00
committed by hjk
parent c47b2aeda4
commit fdcd6dc2fb

View File

@@ -864,6 +864,8 @@ void GdbEngine::updateSubItemClassic(const WatchData &data0)
// Try automatic dereferentiation // Try automatic dereferentiation
data.exp = "(*(" + data.exp + "))"; data.exp = "(*(" + data.exp + "))";
data.type = data.type + '.'; // FIXME: fragile HACK to avoid recursion data.type = data.type + '.'; // FIXME: fragile HACK to avoid recursion
if (data.value.startsWith("0x"))
data.value = "@" + data.value;
insertData(data); insertData(data);
} else { } else {
data.setChildrenUnneeded(); data.setChildrenUnneeded();