ruby-changes:51709
From: tenderlove <ko1@a...>
Date: Tue, 10 Jul 2018 02:49:36 +0900 (JST)
Subject: [ruby-changes:51709] tenderlove:r63921 (trunk): Add lldb as a debugger option
tenderlove 2018-07-10 02:49:21 +0900 (Tue, 10 Jul 2018) New Revision: 63921 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63921 Log: 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 Modified files: trunk/tool/runruby.rb Index: tool/runruby.rb =================================================================== --- tool/runruby.rb (revision 63920) +++ tool/runruby.rb (revision 63921) @@ -33,6 +33,8 @@ while arg = ARGV[0] https://github.com/ruby/ruby/blob/trunk/tool/runruby.rb#L33 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'] == https://github.com/ruby/ruby/blob/trunk/tool/runruby.rb#L141 end debugger << '--args' end + if debugger == :lldb + debugger = %w'lldb --' + end + if idx = precommand.index(:debugger) precommand[idx, 1] = debugger else -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/