Permalink
Browse files

* ruby.rb: include arguments in --gdb option.

  • Loading branch information...
nobu committed May 16, 2012
1 parent d15d6be commit 481a6fa6c26044a9170b921971d72c1901e7fbc8
Showing with 7 additions and 1 deletion.
  1. +7 −1 ruby.rb
View
@@ -22,7 +22,13 @@
require 'shellwords'
command.concat(Shellwords.shellwords(value))
when re =~ "gdb"
- command.unshift(value || "gdb", "--args")
+ command.unshift("--args")
+ if value
+ require 'shellwords'
+ command.unshift(*Shellwords.shellwords(value))
+ else
+ command.unshift("gdb")
+ end
when re =~ "rubyopt"
rubyopt = value
when re =~ "print-libraries"

0 comments on commit 481a6fa

Please sign in to comment.