From b46ef9d634e252d1792fb5aaafb6aac17b79d34c Mon Sep 17 00:00:00 2001 From: tenderlove Date: Mon, 9 Jul 2018 17:49:21 +0000 Subject: Add lldb as a debugger option This adds support for lldb as a debugger so that tests can be run under lldb like this: $ make test-all TESTS=test/some_test.rb RUNRUBYOPT=--debugger=lldb git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/runruby.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tool') diff --git a/tool/runruby.rb b/tool/runruby.rb index a5aa3e7d8d..d240914f3c 100755 --- a/tool/runruby.rb +++ b/tool/runruby.rb @@ -33,6 +33,8 @@ while arg = ARGV[0] case value when nil debugger = :gdb + when "lldb" + debugger = :lldb when "no" else debugger = Shellwords.shellwords(value) @@ -139,6 +141,10 @@ if debugger or ENV['RUNRUBY_USE_GDB'] == 'true' end debugger << '--args' end + if debugger == :lldb + debugger = %w'lldb --' + end + if idx = precommand.index(:debugger) precommand[idx, 1] = debugger else -- cgit v1.2.3