aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2020-08-27 09:00:14 -0700
committerAaron Patterson <tenderlove@ruby-lang.org>2020-08-27 09:00:19 -0700
commit5483bf8fa4bc62239341e7ff08f6e104258ca7a7 (patch)
tree35adaf1a2132bff2c52653144ba929e989d90ccd /misc
parentc60aaed1856b2b6f90de0992c34771830019e021 (diff)
downloadruby-5483bf8fa4bc62239341e7ff08f6e104258ca7a7.tar.gz
add T_ZOMBIE support to lldb scripts
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/lldb_cruby.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/misc/lldb_cruby.py b/misc/lldb_cruby.py
index 73916713e9..b7d8711c68 100755
--- a/misc/lldb_cruby.py
+++ b/misc/lldb_cruby.py
@@ -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)