forked from qt-creator/qt-creator
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user