summaryrefslogtreecommitdiff
path: root/misc/lldb_rb/rb_base_command.py
diff options
context:
space:
mode:
authorMatt Valentine-House <[email protected]>2023-02-22 19:26:28 +0000
committerGitHub <[email protected]>2023-02-22 14:26:28 -0500
commit220cdbeea52c4681fb0ba52d24e5b28a0b877e0f (patch)
treef670b47822009b3d41f377e0ac0fbaab7116b4e2 /misc/lldb_rb/rb_base_command.py
parent4edb2a29f67957fc7027eaad0c08e8003cfde609 (diff)
[lldb] Add a print_flags command (#7358)
Notes
Notes: Merged-By: peterzhu2118 <[email protected]>
Diffstat (limited to 'misc/lldb_rb/rb_base_command.py')
-rw-r--r--misc/lldb_rb/rb_base_command.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/misc/lldb_rb/rb_base_command.py b/misc/lldb_rb/rb_base_command.py
index de90a1617c..dd58d59b97 100644
--- a/misc/lldb_rb/rb_base_command.py
+++ b/misc/lldb_rb/rb_base_command.py
@@ -34,14 +34,13 @@ class RbBaseCommand:
if name.startswith("RUBY_T_"):
value_types.append(name)
g["value_types"] = value_types
+ return g
def __init__(self, debugger, _internal_dict):
+ self.ruby_globals = RbBaseCommand.lldb_init(debugger)
self.internal_dict = _internal_dict
def __call__(self, debugger, command, exe_ctx, result):
- if not ("RUBY_Qfalse" in globals()):
- RbBaseCommand.lldb_init(debugger)
-
self.build_environment(debugger)
self.call(debugger, command, exe_ctx, result)