Commit 057e5d91 authored by hjk's avatar hjk
Browse files

Debugger: Show item count with Qt4's QMap

Contents is still wrong for Clang builds as the
debug information recorded for the node types
is insufficient.

Change-Id: I4c694e5010ade7f3ebbb4a94163d7b44da13c10d
Reviewed-by: default avatarChristian Stenger <>
Reviewed-by: default avatarEike Ziller <>
parent 8eefc344
......@@ -940,8 +940,9 @@ def qdump__QMapNode(d, value):
def qdumpHelper__Qt4_QMap(d, value):
d_ptr = value["d"].dereference()
e_ptr = value["e"].dereference()
anon = d.childAt(value, 0)
d_ptr = anon["d"].dereference()
e_ptr = anon["e"].dereference()
n = int(d_ptr["size"])
d.check(0 <= n and n <= 100*1000*1000)
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