Debugger: Suppress printing of name fields in LLDB

Brings it more in line with what we do on the GDB side
and makes a few more autotests pass.

Change-Id: I89fd7a9d5b7bfd6ffd68dcda824c95dd7a7a52b0
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2013-07-04 16:01:43 +02:00
parent a26c884b70
commit ea8ecfb890
+8
View File
@@ -1121,6 +1121,14 @@ class Dumper:
self.putFields(value)
def putFields(self, value):
# Suppress printing of 'name' field for arrays.
if value.GetType().GetTypeClass() == lldb.eTypeClassArray:
for i in xrange(value.GetNumChildren()):
child = value.GetChildAtIndex(i)
with UnnamedSubItem(self, "%d" % (i + 1)):
self.putItem(child)
return
n = value.GetNumChildren()
m = value.GetType().GetNumberOfDirectBaseClasses()
if n > 10000: