debugger: fix display of C style 'typedef struct X { ... } X;' types.

This commit is contained in:
hjk
2010-12-16 13:32:47 +01:00
parent f0b6bce057
commit 8062222e0f

View 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))