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

ruby-changes:72280

From: Jemma <ko1@a...>
Date: Wed, 22 Jun 2022 10:16:22 +0900 (JST)
Subject: [ruby-changes:72280] 87a560a057 (master): Add T_STRUCT to lldb inspect helper

https://git.ruby-lang.org/ruby.git/commit/?id=87a560a057

From 87a560a0570adf51bd37f9d3da5086db3e3f27a0 Mon Sep 17 00:00:00 2001
From: Jemma Issroff <jemmaissroff@g...>
Date: Tue, 21 Jun 2022 16:12:27 -0400
Subject: Add T_STRUCT to lldb inspect helper

---
 misc/lldb_cruby.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/misc/lldb_cruby.py b/misc/lldb_cruby.py
index a752b98bb3..b146361a0f 100755
--- a/misc/lldb_cruby.py
+++ b/misc/lldb_cruby.py
@@ -418,6 +418,10 @@ def lldb_inspect(debugger, target, result, val): https://github.com/ruby/ruby/blob/trunk/misc/lldb_cruby.py#L418
             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_STRUCT:
+            tRTypedData = target.FindFirstType("struct RStruct").GetPointerType()
+            val = val.Cast(tRTypedData)
+            append_command_output(debugger, "p *(struct RStruct *) %0#x" % val.GetValueAsUnsigned(), result)
         elif flType == RUBY_T_ZOMBIE:
             tRZombie = target.FindFirstType("struct RZombie").GetPointerType()
             val = val.Cast(tRZombie)
-- 
cgit v1.2.1


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

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