debugger: fix display of QStringList after a takeFirst();

This commit is contained in:
hjk
2010-05-06 16:23:18 +02:00
parent e6dc3fbf4c
commit f9e6a96395
2 changed files with 2 additions and 0 deletions

View File

@@ -1421,6 +1421,7 @@ def qdump__QStringList(d, item):
if d.isExpanded(item):
innerType = gdb.lookup_type(d.ns + "QString")
ptr = gdb.Value(d_ptr["array"]).cast(innerType.pointer())
ptr += d_ptr["begin"]
with Children(d, [size, 1000], innerType):
for i in d.childRange():
d.putItem(Item(ptr.dereference(), item.iname, i))