Commit c1fc3e5d authored by hjk's avatar hjk

Debugger: Also display addresses of base classes

Rarely needed, but cheap to produce and nice-to-have in some cases.

Change-Id: Ib28e34a8085a4e0ed943646321843eea1bf4e138
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent a47dba7f
......@@ -1507,9 +1507,11 @@ class Dumper(DumperBase):
if dumpBase:
baseNumber += 1
with UnnamedSubItem(self, "@%d" % baseNumber):
baseValue = value.cast(field.type)
self.put('iname="%s",' % self.currentIName)
self.put('name="[%s]",' % field.name)
self.putItem(value.cast(field.type), False)
self.putAddress(baseValue.address)
self.putItem(baseValue, False)
elif len(field.name) == 0:
# Anonymous union. We need a dummy name to distinguish
# multiple anonymous unions in the struct.
......
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