summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-09 17:49:21 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-09 17:49:21 +0000
commitb46ef9d634e252d1792fb5aaafb6aac17b79d34c (patch)
treee0a3024c7123913e96f6eae5ac863b5cd8cedc41 /tool
parent7aab72f7367b81fa76fcb4e9281012134495d6cf (diff)
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
Diffstat (limited to 'tool')
-rwxr-xr-xtool/runruby.rb6
1 files changed, 6 insertions, 0 deletions
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