From b61e32371f0552c5edb9f10d1c2ce25014bf1470 Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Wed, 26 May 2010 13:33:33 +0200 Subject: [PATCH] debugger: fix display of children of objects passed by reference. The value was adjusted to the referenced value but it was not used when dumping the members, basically leading to an empty child list in such cases. --- share/qtcreator/gdbmacros/dumper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/qtcreator/gdbmacros/dumper.py b/share/qtcreator/gdbmacros/dumper.py index e31b15471c7..2012cef8daa 100644 --- a/share/qtcreator/gdbmacros/dumper.py +++ b/share/qtcreator/gdbmacros/dumper.py @@ -1366,7 +1366,8 @@ class Dumper: if len(fields) == 1 and fields[0].name is None: innerType = value.type.target() with Children(self, 1, innerType): - self.putFields(item) + child = Item(value, item.iname, None, item.name) + self.putFields(child) def putFields(self, item, innerType = None): value = item.value -- GitLab