Commit 78c8ed5b authored by hjk's avatar hjk Committed by hjk

debugger: add dumper for QFiniteStack

Change-Id: I5c90eaaf5d43d03118470b0247511e65b7336ea6
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent bdd09dd2
......@@ -316,6 +316,16 @@ def qdump__QFixed(d, value):
d.putNumChild(0)
def qdump__QFiniteStack(d, value):
alloc = value["_alloc"]
size = value["_size"]
check(0 <= size and size <= alloc and alloc <= 1000 * 1000 * 1000)
d.putItemCount(size)
d.putNumChild(size)
if d.isExpanded():
innerType = templateArgument(value.type, 0)
d.putArrayData(innerType, value["_array"], size)
# Stock gdb 7.2 seems to have a problem with types here:
#
# echo -e "namespace N { struct S { enum E { zero, one, two }; }; }\n"\
......
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