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

ruby-changes:72175

From: Matt <ko1@a...>
Date: Thu, 16 Jun 2022 05:46:38 +0900 (JST)
Subject: [ruby-changes:72175] 9eabc57584 (master): [ci skip] [lldb] Ensure rbbt has loaded the globals

https://git.ruby-lang.org/ruby.git/commit/?id=9eabc57584

From 9eabc575849d00f2bf7c67db653d6a36453d33d4 Mon Sep 17 00:00:00 2001
From: Matt Valentine-House <matt@e...>
Date: Wed, 15 Jun 2022 21:41:15 +0100
Subject: [ci skip] [lldb] Ensure rbbt has loaded the globals

rb_backtrace relies on the existend of RUBY_T_MASK. This is set up by
the global loading code in lldb_init()

rb_backtrace does not call lldb_init previously, and therefore would
only work if called after another lldb function that _did_ load the
globals.
---
 misc/lldb_cruby.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/misc/lldb_cruby.py b/misc/lldb_cruby.py
index 46fb764104..ef4820b1a5 100755
--- a/misc/lldb_cruby.py
+++ b/misc/lldb_cruby.py
@@ -507,6 +507,8 @@ def dump_node(debugger, command, ctx, result, internal_dict): https://github.com/ruby/ruby/blob/trunk/misc/lldb_cruby.py#L507
     output_string(ctx, result, dump)
 
 def rb_backtrace(debugger, command, result, internal_dict):
+    if not ('RUBY_Qfalse' in globals()):
+        lldb_init(debugger)
     bt = BackTrace(debugger, command, result, internal_dict)
     frame = bt.frame
 
-- 
cgit v1.2.1


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

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