[前][次][番号順一覧][スレッド一覧]

ruby-changes:62731

From: Aaron <ko1@a...>
Date: Fri, 28 Aug 2020 01:00:52 +0900 (JST)
Subject: [ruby-changes:62731] 5483bf8fa4 (master): add T_ZOMBIE support to lldb scripts

https://git.ruby-lang.org/ruby.git/commit/?id=5483bf8fa4

From 5483bf8fa4bc62239341e7ff08f6e104258ca7a7 Mon Sep 17 00:00:00 2001
From: Aaron Patterson <tenderlove@r...>
Date: Thu, 27 Aug 2020 09:00:14 -0700
Subject: add T_ZOMBIE support to lldb scripts


diff --git a/misc/lldb_cruby.py b/misc/lldb_cruby.py
index 7391671..b7d8711 100755
--- a/misc/lldb_cruby.py
+++ b/misc/lldb_cruby.py
@@ -243,6 +243,10 @@ def lldb_inspect(debugger, target, result, val): https://github.com/ruby/ruby/blob/trunk/misc/lldb_cruby.py#L243
             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)
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]