Commit f9e6a963 authored by hjk's avatar hjk
Browse files

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

parent e6dc3fbf
......@@ -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))
......
......@@ -1200,6 +1200,7 @@ void testQStringList()
l << "Hello ";
l << " big, ";
l << " fat ";
l.takeFirst();
l << " World ";
}
......
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