Commit 7158f374 authored by Alexandru Croitor's avatar Alexandru Croitor Committed by hjk

Fix reference values to be shown in debugger view.

Change-Id: Ia8e6da004ea22515fccf4292cc3ddd8c530040c2
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent 5e32183c
......@@ -1040,13 +1040,13 @@ class Dumper(DumperBase):
# Works:
#item = self.currentThread().GetSelectedFrame().EvaluateExpression(
# "(%s*)0x%x" % (type, addr)).Dereference()
# Works:
item = value.CreateValueFromExpression(None,
"(%s*)0x%x" % (type, addr), lldb.SBExpressionOptions()).Dereference()
# Does not work on lldb-350.0.21.3:
#item = value.CreateValueFromExpression(None,
# "(%s*)0x%x" % (type, addr), lldb.SBExpressionOptions()).Dereference()
# Does not work:
#item = value.CreateValueFromAddress(None, addr, type)
# Does not work:
#item = value.Cast(type.GetPointerType()).Dereference()
# Works:
item = value.Cast(type.GetPointerType()).Dereference()
#warn("TOOO: %s" % item)
self.putItem(item)
self.putBetterType(value.GetTypeName())
......
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