Commit 6331b689 authored by hjk's avatar hjk
Browse files

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

parent 725fb153
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment