tool/runruby.rb: load the default lldb scripts

This commit is contained in:
Nobuyoshi Nakada 2019-06-05 11:03:19 +09:00
parent 5859ea1b1b
commit 26d02cc7cd
No known key found for this signature in database
GPG Key ID: 4BC7D6DF58D8DF60

View File

@ -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)