Skip to content

Commit

Permalink
Support RUNRUBY_USE_RR for rr debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzhu2118 committed Nov 29, 2023
1 parent aee2751 commit 128837e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tool/runruby.rb
Expand Up @@ -11,6 +11,8 @@
debugger = :gdb
when ENV['RUNRUBY_USE_LLDB'] == 'true'
debugger = :lldb
when ENV['RUNRUBY_USE_RR'] == 'true'
debugger = :rr
when ENV['RUNRUBY_YJIT_STATS']
use_yjit_stat = true
end
Expand Down Expand Up @@ -156,6 +158,8 @@ def File.realpath(*args)
debugger.push('-s', lldb)
end
debugger << '--'
when :rr
debugger = ['rr', 'record']
end

if idx = precommand.index(:debugger)
Expand Down

0 comments on commit 128837e

Please sign in to comment.