diff --git a/share/qtcreator/gdbmacros/dumper.py b/share/qtcreator/gdbmacros/dumper.py index 7b1cb9a0a0d..79402c00f48 100644 --- a/share/qtcreator/gdbmacros/dumper.py +++ b/share/qtcreator/gdbmacros/dumper.py @@ -1190,7 +1190,7 @@ class Dumper: # Anonymous union. We need a dummy name to distinguish # multiple anonymous unions in the struct. anonNumber += 1 - self.listAnonymous(item, "#%d" % anonNumber, type) + self.listAnonymous(item, "#%d" % anonNumber, field.type) else: # Named field. self.beginHash() diff --git a/share/qtcreator/gdbmacros/gdbmacros.py b/share/qtcreator/gdbmacros/gdbmacros.py index 35e94a0946a..6f93b10487b 100644 --- a/share/qtcreator/gdbmacros/gdbmacros.py +++ b/share/qtcreator/gdbmacros/gdbmacros.py @@ -558,8 +558,8 @@ def qdump__QObject(d, item): #warn("OBJECT: %s " % item.value) staticMetaObject = item.value["staticMetaObject"] #warn("SMO: %s " % staticMetaObject) - privateType = gdb.lookup_type(d.ns + "QObjectPrivate") - d_ptr = item.value["d_ptr"]["d"].dereference().cast(privateType) + privateType = gdb.lookup_type(d.ns + "QObjectPrivate").pointer() + d_ptr = item.value["d_ptr"]["d"].cast(privateType).dereference() #warn("D_PTR: %s " % d_ptr) objectName = d_ptr["objectName"] #warn("OBJECTNAME: %s " % objectName)