Commit 9ed664c8 authored by hjk's avatar hjk
Browse files

Debugger: Fix QVariant indirect access with LLDB



We need explicit toInteger() when operation on SBValues.

Change-Id: Ibc74b59e971933fef8ef94c20333035188d33a57
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 3db46e71
...@@ -2086,7 +2086,7 @@ def qdump__QVariant(d, value): ...@@ -2086,7 +2086,7 @@ def qdump__QVariant(d, value):
inner = d.qtNamespace() + innert inner = d.qtNamespace() + innert
innerType = d.lookupType(inner) innerType = d.lookupType(inner)
if value["d"]["is_shared"]: if toInteger(value["d"]["is_shared"]):
val = data["ptr"].cast(innerType.pointer().pointer()).dereference().dereference() val = data["ptr"].cast(innerType.pointer().pointer()).dereference().dereference()
else: else:
val = data.cast(innerType) val = data.cast(innerType)
......
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