Commit 39e44e2e authored by hjk's avatar hjk

Debugger: Fix inames of array items with LLDB

Harmless, but needlessly breaks auto tests.

Change-Id: Iee470411c02686b6975c1e7efd79ac802eb37037
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 5728f7e6
...@@ -1102,7 +1102,6 @@ class Dumper: ...@@ -1102,7 +1102,6 @@ class Dumper:
# Normal value # Normal value
#numchild = 1 if value.MightHaveChildren() else 0 #numchild = 1 if value.MightHaveChildren() else 0
numchild = value.GetNumChildren() numchild = value.GetNumChildren()
self.put('iname="%s",' % self.currentIName)
self.putType(typeName) self.putType(typeName)
if typeClass == lldb.eTypeClassStruct or typeClass == lldb.eTypeClassClass: if typeClass == lldb.eTypeClassStruct or typeClass == lldb.eTypeClassClass:
if self.isQObject(value): if self.isQObject(value):
...@@ -1129,7 +1128,7 @@ class Dumper: ...@@ -1129,7 +1128,7 @@ class Dumper:
if value.GetType().GetTypeClass() == lldb.eTypeClassArray: if value.GetType().GetTypeClass() == lldb.eTypeClassArray:
for i in xrange(value.GetNumChildren()): for i in xrange(value.GetNumChildren()):
child = value.GetChildAtIndex(i) child = value.GetChildAtIndex(i)
with UnnamedSubItem(self, "%d" % (i + 1)): with UnnamedSubItem(self, str(i)):
self.putItem(child) self.putItem(child)
return return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment