1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

add T_ZOMBIE support to lldb scripts

This commit is contained in:
Aaron Patterson 2020-08-27 09:00:14 -07:00
parent c60aaed185
commit 5483bf8fa4
No known key found for this signature in database
GPG key ID: 953170BCB4FFAFC6

View file

@ -243,6 +243,10 @@ def lldb_inspect(debugger, target, result, val):
print("T_IMEMO: ", file=result)
append_command_output(debugger, "p (enum imemo_type) %d" % imemo_type, result)
append_command_output(debugger, "p *(struct MEMO *) %0#x" % val.GetValueAsUnsigned(), result)
elif flType == RUBY_T_ZOMBIE:
tRZombie = target.FindFirstType("struct RZombie").GetPointerType()
val = val.Cast(tRZombie)
append_command_output(debugger, "p *(struct RZombie *) %0#x" % val.GetValueAsUnsigned(), result)
else:
print("Not-handled type %0#x" % flType, file=result)
print(val, file=result)