[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.
This commit is contained in:
parent
acee714ce0
commit
9eabc57584
Notes:
git
2022-06-16 05:46:44 +09:00
@ -507,6 +507,8 @@ def dump_node(debugger, command, ctx, result, internal_dict):
|
|||||||
output_string(ctx, result, dump)
|
output_string(ctx, result, dump)
|
||||||
|
|
||||||
def rb_backtrace(debugger, command, result, internal_dict):
|
def rb_backtrace(debugger, command, result, internal_dict):
|
||||||
|
if not ('RUBY_Qfalse' in globals()):
|
||||||
|
lldb_init(debugger)
|
||||||
bt = BackTrace(debugger, command, result, internal_dict)
|
bt = BackTrace(debugger, command, result, internal_dict)
|
||||||
frame = bt.frame
|
frame = bt.frame
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user