diff options
| author | Aaron Patterson <tenderlove@ruby-lang.org> | 2020-05-07 14:19:08 -0700 |
|---|---|---|
| committer | Aaron Patterson <tenderlove@ruby-lang.org> | 2020-05-07 14:19:45 -0700 |
| commit | 56c6d520a06c9bb502660e666358f89fe676860f (patch) | |
| tree | 38cafb641055b8ab23280f7b16bf37542b095550 | |
| parent | 2d27632c3c6a0a6a3be5a27f1ec8b1061fcb370e (diff) | |
Add T_MOVED support to lldb
| -rwxr-xr-x | misc/lldb_cruby.py | 4 |
1 files changed, 4 insertions, 0 deletions
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) |
