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:
hjk
2013-07-08 16:24:34 +02:00
parent 5728f7e673
commit 39e44e2e66
+1 -2
View File
@@ -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