Commit ada42e7e authored by hjk's avatar hjk

debugger: merge 'enum' handling with that of simple types if appropriate

parent e38dc516
......@@ -565,7 +565,7 @@ def isSimpleType(typeobj):
or code == gdb.TYPE_CODE_CHAR \
or code == gdb.TYPE_CODE_INT \
or code == gdb.TYPE_CODE_FLT \
or code == gdb.TYPE_CODE_INT
or code == gdb.TYPE_CODE_ENUM
def isStringType(d, typeobj):
type = str(typeobj)
......@@ -1382,14 +1382,6 @@ class Dumper:
qqDumpers[nsStrippedType](self, item)
#warn(" RESULT: %s " % self.output)
elif typedefStrippedType.code == gdb.TYPE_CODE_ENUM:
#warn("GENERIC ENUM: %s" % value)
#self.putAddress(value.address)
self.putType(item.value.type)
self.putValue(value)
self.putNumChild(0)
elif typedefStrippedType.code == gdb.TYPE_CODE_PTR:
#warn("POINTER: %s" % format)
isHandled = False
......
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