diff options
author | Matt Valentine-House <matt@eightbitraptor.com> | 2021-04-28 14:56:02 +0100 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2021-05-06 09:18:17 -0400 |
commit | b0b7751f3b94e7983d124e43102f76ff598caabd (patch) | |
tree | ff8eea92ef20e645cdb2aa4810a01d9c8e90648c /misc | |
parent | d1bd4e233cd4c06734173d532eb2215140b26357 (diff) |
lldb: teach rp about T_PAYLOAD
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4391
Diffstat (limited to 'misc')
-rwxr-xr-x | misc/lldb_cruby.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/misc/lldb_cruby.py b/misc/lldb_cruby.py index b694313ff4..d16937191f 100755 --- a/misc/lldb_cruby.py +++ b/misc/lldb_cruby.py @@ -330,6 +330,9 @@ def lldb_inspect(debugger, target, result, val): elif flType == RUBY_T_HASH: result.write("T_HASH: %s" % flaginfo) append_command_output(debugger, "p *(struct RHash *) %0#x" % val.GetValueAsUnsigned(), result) + elif flType == RUBY_T_PAYLOAD: + result.write("T_PAYLOAD: %s" % flaginfo) + append_command_output(debugger, "p *(struct RPayload *) %0#x" % val.GetValueAsUnsigned(), result) elif flType == RUBY_T_BIGNUM: tRBignum = target.FindFirstType("struct RBignum").GetPointerType() val = val.Cast(tRBignum) |