summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
Diffstat (limited to 'tool')
-rwxr-xr-xtool/runruby.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/tool/runruby.rb b/tool/runruby.rb
index 1f5ca2fb7f..a15c038809 100755
--- a/tool/runruby.rb
+++ b/tool/runruby.rb
@@ -142,7 +142,12 @@ if debugger or ENV['RUNRUBY_USE_GDB'] == 'true'
debugger << '--args'
end
if debugger == :lldb
- debugger = %w'lldb --'
+ debugger = ['lldb', '-O', "command script import #{srcdir}/misc/lldb_cruby.py"]
+ if File.exist?(lldb = 'run.lldb') or
+ File.exist?(lldb = File.join(abs_archdir, 'run.lldb'))
+ debugger.push('-s', lldb)
+ end
+ debugger << '--'
end
if idx = precommand.index(:debugger)