diff options
author | Peter Zhu <[email protected]> | 2023-11-29 10:54:27 -0500 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2023-11-29 17:54:58 -0500 |
commit | 128837e4a28bda89c6a6766b3f243b5a47910d9c (patch) | |
tree | 286229a2d64ce9c2986f3fbd85cce1afe1c2bad4 /tool/runruby.rb | |
parent | aee275165b35c75f7ba889752273844616a9c8f5 (diff) |
Support RUNRUBY_USE_RR for rr debugger
Diffstat (limited to 'tool/runruby.rb')
-rwxr-xr-x | tool/runruby.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tool/runruby.rb b/tool/runruby.rb index 4cd97ce99c..ec63d1008a 100755 --- a/tool/runruby.rb +++ b/tool/runruby.rb @@ -11,6 +11,8 @@ when ENV['RUNRUBY_USE_GDB'] == 'true' 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 @@ -156,6 +158,8 @@ if debugger debugger.push('-s', lldb) end debugger << '--' + when :rr + debugger = ['rr', 'record'] end if idx = precommand.index(:debugger) |