summaryrefslogtreecommitdiff
path: root/tool/runruby.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-05 11:01:23 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-05 11:11:44 +0900
commit5859ea1b1b3f1ba23a15174c6bef4a2ecabafb2f (patch)
tree1fe8bf158bd2f3758adf4b0f2157906ed4772c94 /tool/runruby.rb
parent6b66a76f43038eb4b789f0f94729ddcc233d9c56 (diff)
tool/runruby.rb: load .gdbinit explicitly
Diffstat (limited to 'tool/runruby.rb')
-rwxr-xr-xtool/runruby.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/runruby.rb b/tool/runruby.rb
index d240914f3c..1f5ca2fb7f 100755
--- a/tool/runruby.rb
+++ b/tool/runruby.rb
@@ -134,7 +134,7 @@ ENV.update env
if debugger or ENV['RUNRUBY_USE_GDB'] == 'true'
if debugger == :gdb or !debugger
- debugger = %w'gdb'
+ debugger = %W'gdb -x #{srcdir}/.gdbinit'
if File.exist?(gdb = 'run.gdb') or
File.exist?(gdb = File.join(abs_archdir, 'run.gdb'))
debugger.push('-x', gdb)