From 56c6d520a06c9bb502660e666358f89fe676860f Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 7 May 2020 14:19:08 -0700 Subject: [PATCH] Add T_MOVED support to lldb --- misc/lldb_cruby.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/misc/lldb_cruby.py b/misc/lldb_cruby.py index 88765813e4..4ed0250f1c 100755 --- a/misc/lldb_cruby.py +++ b/misc/lldb_cruby.py @@ -232,6 +232,10 @@ def lldb_inspect(debugger, target, result, val): append_command_output(debugger, "p (node_type) %d" % nd_type, result) val = val.Cast(tRTypedData) append_command_output(debugger, "p *(struct RNode *) %0#x" % val.GetValueAsUnsigned(), result) + elif flType == RUBY_T_MOVED: + tRTypedData = target.FindFirstType("struct RMoved").GetPointerType() + val = val.Cast(tRTypedData) + append_command_output(debugger, "p *(struct RMoved *) %0#x" % val.GetValueAsUnsigned(), result) else: print("Not-handled type %0#x" % flType, file=result) print(val, file=result)