aboutsummaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2023-11-29 10:54:27 -0500
committerPeter Zhu <peter@peterzhu.ca>2023-11-29 17:54:58 -0500
commit128837e4a28bda89c6a6766b3f243b5a47910d9c (patch)
tree286229a2d64ce9c2986f3fbd85cce1afe1c2bad4 /tool
parentaee275165b35c75f7ba889752273844616a9c8f5 (diff)
downloadruby-128837e4a28bda89c6a6766b3f243b5a47910d9c.tar.gz
Support RUNRUBY_USE_RR for rr debugger
Diffstat (limited to 'tool')
-rwxr-xr-xtool/runruby.rb4
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)