OSDN Git Service

debugger: fix display of C style 'typedef struct X { ... } X;' types.
authorhjk <qtc-committer@nokia.com>
Thu, 16 Dec 2010 12:32:47 +0000 (13:32 +0100)
committerhjk <qtc-committer@nokia.com>
Thu, 16 Dec 2010 12:35:41 +0000 (13:35 +0100)
share/qtcreator/gdbmacros/dumper.py

index 3600ecb..3699fc3 100644 (file)
@@ -928,6 +928,9 @@ def extractFields(type):
     # This seems to work.
     #warn("TYPE 0: %s" % type)
     type = stripTypedefs(type)
+    fields = type.fields()
+    if len(fields):
+        return fields
     #warn("TYPE 1: %s" % type)
     # This fails for arrays. See comment in lookupType.
     type0 = lookupType(str(type))