Debugger: Show index in std::__1::unordered_map entries

Change-Id: Iaaf2ad9e46c88302d523b879558f65b4a86b0e2c
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2014-01-14 19:14:22 +01:00
parent ef4e417b0c
commit f67fc91b4f

View File

@@ -640,16 +640,15 @@ def qform__std____1__unordered_map():
return mapForms()
def qdump__std____1__unordered_map(d, value):
n = int(value["__table_"]["__p2_"]["__first_"])
d.putItemCount(n)
size = int(value["__table_"]["__p2_"]["__first_"])
d.putItemCount(size)
if d.isExpanded():
node = value["__table_"]["__p1_"]["__first_"]["__next_"]
pairType = node["__value_"].type
with PairedChildren(d, n, pairType, maxNumChild=1000):
with PairedChildren(d, size, pairType, maxNumChild=1000):
for i in d.childRange():
with SubItem(d, i):
pair = node["__value_"]
d.putPair(pair)
d.putPair(node["__value_"], i)
node = node["__next_"]
def qdump__std____debug__unordered_set(d, value):