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

ruby-changes:61051

From: Aaron <ko1@a...>
Date: Fri, 8 May 2020 06:20:07 +0900 (JST)
Subject: [ruby-changes:61051] 56c6d520a0 (master): Add T_MOVED support to lldb

https://git.ruby-lang.org/ruby.git/commit/?id=56c6d520a0

From 56c6d520a06c9bb502660e666358f89fe676860f Mon Sep 17 00:00:00 2001
From: Aaron Patterson <tenderlove@r...>
Date: Thu, 7 May 2020 14:19:08 -0700
Subject: Add T_MOVED support to lldb


diff --git a/misc/lldb_cruby.py b/misc/lldb_cruby.py
index 8876581..4ed0250 100755
--- a/misc/lldb_cruby.py
+++ b/misc/lldb_cruby.py
@@ -232,6 +232,10 @@ def lldb_inspect(debugger, target, result, val): https://github.com/ruby/ruby/blob/trunk/misc/lldb_cruby.py#L232
             append_command_output(debugger, "p (node_type) %d" % nd_type, result)
             val = val.Cast(tRTypedData)
             append_command_output(debugger, "p *(struct RNode *) %0#x" % val.GetValueAsUnsigned(), result)
+        elif flType == RUBY_T_MOVED:
+            tRTypedData = target.FindFirstType("struct RMoved").GetPointerType()
+            val = val.Cast(tRTypedData)
+            append_command_output(debugger, "p *(struct RMoved *) %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/

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