summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Valentine-House <matt@eightbitraptor.com>2021-04-28 14:56:02 +0100
committerPeter Zhu <peter@peterzhu.ca>2021-05-06 09:18:17 -0400
commitb0b7751f3b94e7983d124e43102f76ff598caabd (patch)
treeff8eea92ef20e645cdb2aa4810a01d9c8e90648c
parentd1bd4e233cd4c06734173d532eb2215140b26357 (diff)
lldb: teach rp about T_PAYLOAD
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4391
-rwxr-xr-xmisc/lldb_cruby.py3
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)