summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/lldb_cruby.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/misc/lldb_cruby.py b/misc/lldb_cruby.py
index 049f920bdb..d0a0031642 100755
--- a/misc/lldb_cruby.py
+++ b/misc/lldb_cruby.py
@@ -56,6 +56,9 @@ def flonum_p(x):
return (x&RUBY_FLONUM_MASK) == RUBY_FLONUM_FLAG
def lldb_rp(debugger, command, result, internal_dict):
+ if not ('RUBY_Qfalse' in globals()):
+ lldb_init(debugger)
+
target = debugger.GetSelectedTarget()
process = target.GetProcess()
thread = process.GetSelectedThread()