Commit a3c4fe1f authored by Eike Ziller's avatar Eike Ziller Committed by hjk
Browse files

dumpers: Fix QHash<int,...> dumper for Qt4

In Qt4 (u)int hashs are optimized and the key is inside an
anonymous union, so, at least with LLDB, we cannot reference
"key" directly as a child of the QHashNode

Change-Id: Id7cac3d08fa85af599f2b2564a6b1f11b465c7b2
Reviewed-by: default avatarhjk <>
parent 1ca3da61
......@@ -527,7 +527,10 @@ def qdump__QHash(d, value):
it = nodePtr.dereference().cast(innerType)
with SubItem(d, i):
if isCompact:
# cannot reference "key" directly because it is inside
# anonymous union for (u)int key in Qt4
keyAddress = d.addressOf(it) + d.ptrSize() # addr + QHashNode*
d.putMapName(d.createValue(keyAddress, keyType))
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