Commit bad7b172 authored by Eike Ziller's avatar Eike Ziller Committed by hjk

LLDB: fix QHashIterator dumper for Qt4

Change-Id: I6743839cc54f81eb17125f2449dd1df391b9a1a4
Reviewed-by: default avatarhjk <>
parent ff3b32ac
......@@ -587,8 +587,13 @@ def qHashIteratorHelper(d, value):
# -> QHashNode<int, float> with 'proper' spacing,
# as space changes confuse LLDB.
innerTypeName = hashTypeName.replace("QHash", "QHashNode", 1)
node = value["i"].cast(d.lookupType(innerTypeName).pointer())
d.putSubItem("key", node["key"])
node = value["i"].cast(d.lookupType(innerTypeName).pointer()).dereference()
key = node["key"]
if not key:
# LLDB can't access directly since it's in anonymous union
# for Qt4 optimized int keytype
key = node[1]["key"]
d.putSubItem("key", key)
d.putSubItem("value", node["value"])
def qdump__QHash__const_iterator(d, value):
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