Commit 476eb8f7 authored by hjk's avatar hjk

Debugger: Remove workaround for GDB 6.8.50

Not supported anymore anyway, and gets in the way of the
refactoring for the LLDB backend. Might even save cycles.

Change-Id: I3fbffd1818ed044974e321078d46e5d3b592fa6b
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent e59ad83d
......@@ -1768,28 +1768,14 @@ class Dumper:
#warn("INAME: %s " % self.currentIName)
#warn("INAMES: %s " % self.expandedINames)
#warn("EXPANDED: %s " % (self.currentIName in self.expandedINames))
fields = extractFields(type)
#fields = type.fields()
numfields = len(extractFields(type))
self.tryPutObjectNameValue(value) # Is this too expensive?
self.putType(typeName)
self.putEmptyValue()
if False:
numfields = 0
for field in fields:
bitpos = getattr(field, "bitpos", None)
if not bitpos is None:
++numfields
else:
numfields = len(fields)
self.putNumChild(numfields)
if self.currentIName in self.expandedINames:
innerType = None
if len(fields) == 1 and fields[0].name is None:
innerType = type.target()
with Children(self, 1, childType=innerType):
self.putFields(value)
......
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