Commit 1711dadb authored by hjk's avatar hjk
Browse files

Debugger: Shift typedef stripping into the only branch that needs it



Change-Id: I683d808059a82b7a80465a94cddb7b3b4a6af1b7
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent ec7738df
......@@ -136,8 +136,7 @@ try:
return gdb.history(0)
def extractFields(value):
type = stripTypedefs(value.type)
return type.fields()
return value.type.fields()
## Insufficient, see http://sourceware.org/bugzilla/show_bug.cgi?id=10953:
##fields = type.fields()
## Insufficient, see http://sourceware.org/bugzilla/show_bug.cgi?id=11777:
......
......@@ -1019,6 +1019,7 @@ class Dumper:
self.useDynamicType = "dyntype" in options
self.useFancy = "fancy" in options
self.passExceptions = "pe" in options
#self.passExceptions = True
self.autoDerefPointers = "autoderef" in options
self.partialUpdate = "partial" in options
self.tooltipOnly = "tooltiponly" in options
......@@ -1808,6 +1809,7 @@ class Dumper:
#warn(" ARTIFICIAL: %s" % field.artificial)
if field.name is None:
type = stripTypedefs(value.type)
innerType = type.target()
p = value.cast(innerType.pointer())
for i in xrange(type.sizeof / innerType.sizeof):
......
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