Commit 0614587e authored by hjk's avatar hjk
Browse files

Debugger: Use more robust way to look up QMapNode types

LLDB needs exactly the same spacing as in the debug info.

Change-Id: I8a2e17cd4c6a167d273f31f4e7ff63c149a5d34b
Reviewed-by: default avatarhjk <>
parent 120d56c1
......@@ -878,9 +878,11 @@ def qdumpHelper__Qt5_QMap(d, value, forceLong):
keyType = d.templateArgument(value.type, 0)
valueType = d.templateArgument(value.type, 1)
isCompact = d.isMapCompact(keyType, valueType)
# Note: The space in the QMapNode lookup below is
# important for LLDB.
nodeType = d.lookupType(d.ns + "QMapNode<%s, %s>" % (keyType, valueType))
# Note: Keeping the spacing in the type lookup
# below is important for LLDB.
needle = str(d_ptr.type).replace("QMapData", "QMapNode", 1)
nodeType = d.lookupType(needle)
if isCompact:
innerType = valueType
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