debugger: (gdb, non-Mac) also print numeric values for enums

This commit is contained in:
hjk
2011-05-09 14:29:40 +02:00
parent 725fb153b7
commit 6331b68943

View File

@@ -1673,6 +1673,12 @@ class Dumper:
self.putFields(child)
return
if typedefStrippedType.code == gdb.TYPE_CODE_ENUM:
self.putType(realtype)
self.putValue("%s (%d)" % (value, value))
self.putNumChild(0)
return
if isSimpleType(typedefStrippedType):
#warn("IS SIMPLE: %s " % type)
#self.putAddress(value.address)