forked from qt-creator/qt-creator
Debugger: Fix inames of array items with LLDB
Harmless, but needlessly breaks auto tests. Change-Id: Iee470411c02686b6975c1e7efd79ac802eb37037 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -1102,7 +1102,6 @@ class Dumper:
|
||||
# Normal value
|
||||
#numchild = 1 if value.MightHaveChildren() else 0
|
||||
numchild = value.GetNumChildren()
|
||||
self.put('iname="%s",' % self.currentIName)
|
||||
self.putType(typeName)
|
||||
if typeClass == lldb.eTypeClassStruct or typeClass == lldb.eTypeClassClass:
|
||||
if self.isQObject(value):
|
||||
@@ -1129,7 +1128,7 @@ class Dumper:
|
||||
if value.GetType().GetTypeClass() == lldb.eTypeClassArray:
|
||||
for i in xrange(value.GetNumChildren()):
|
||||
child = value.GetChildAtIndex(i)
|
||||
with UnnamedSubItem(self, "%d" % (i + 1)):
|
||||
with UnnamedSubItem(self, str(i)):
|
||||
self.putItem(child)
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user