summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-05 11:03:19 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-05 11:11:45 +0900
commit26d02cc7cdb9fd2272a695083449824a3852717a (patch)
tree7a72fddc47e4597589b05645a770dd78049ca980 /tool
parent5859ea1b1b3f1ba23a15174c6bef4a2ecabafb2f (diff)
tool/runruby.rb: load the default lldb scripts
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)