Skip to content

Commit b0b7751

Browse files
eightbitraptorpeterzhu2118
authored andcommitted
lldb: teach rp about T_PAYLOAD
1 parent d1bd4e2 commit b0b7751

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

misc/lldb_cruby.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,9 @@ def lldb_inspect(debugger, target, result, val):
330330
elif flType == RUBY_T_HASH:
331331
result.write("T_HASH: %s" % flaginfo)
332332
append_command_output(debugger, "p *(struct RHash *) %0#x" % val.GetValueAsUnsigned(), result)
333+
elif flType == RUBY_T_PAYLOAD:
334+
result.write("T_PAYLOAD: %s" % flaginfo)
335+
append_command_output(debugger, "p *(struct RPayload *) %0#x" % val.GetValueAsUnsigned(), result)
333336
elif flType == RUBY_T_BIGNUM:
334337
tRBignum = target.FindFirstType("struct RBignum").GetPointerType()
335338
val = val.Cast(tRBignum)

0 commit comments

Comments
 (0)