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: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2013-04-04 16:59:40 +02:00
parent e59ad83d53
commit 476eb8f72a

View File

@@ -1768,28 +1768,14 @@ class Dumper:
#warn("INAME: %s " % self.currentIName) #warn("INAME: %s " % self.currentIName)
#warn("INAMES: %s " % self.expandedINames) #warn("INAMES: %s " % self.expandedINames)
#warn("EXPANDED: %s " % (self.currentIName in self.expandedINames)) #warn("EXPANDED: %s " % (self.currentIName in self.expandedINames))
fields = extractFields(type) numfields = len(extractFields(type))
#fields = type.fields()
self.tryPutObjectNameValue(value) # Is this too expensive? self.tryPutObjectNameValue(value) # Is this too expensive?
self.putType(typeName) self.putType(typeName)
self.putEmptyValue() 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) self.putNumChild(numfields)
if self.currentIName in self.expandedINames: if self.currentIName in self.expandedINames:
innerType = None innerType = None
if len(fields) == 1 and fields[0].name is None:
innerType = type.target()
with Children(self, 1, childType=innerType): with Children(self, 1, childType=innerType):
self.putFields(value) self.putFields(value)