summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorMatt Valentine-House <matt@eightbitraptor.com>2022-06-15 21:41:15 +0100
committerAaron Patterson <aaron.patterson@gmail.com>2022-06-15 13:46:23 -0700
commit9eabc575849d00f2bf7c67db653d6a36453d33d4 (patch)
treecaf086b342904a004169fce5adc7d364ec7a5386 /misc
parentacee714ce0b6af0375be5d38293010a688b617e6 (diff)
downloadruby-9eabc575849d00f2bf7c67db653d6a36453d33d4.tar.gz
[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.
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/lldb_cruby.py2
1 files changed, 2 insertions, 0 deletions
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):
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