mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* .gdbinit (rp): supports rational and complex numbers. it's
cheating since it uses rb_p(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a4d6f2265a
commit
339dca41fc
2 changed files with 15 additions and 0 deletions
10
.gdbinit
10
.gdbinit
|
@ -143,6 +143,14 @@ define rp
|
|||
((struct RBignum*)$arg0)->as.ary : \
|
||||
((struct RBignum*)$arg0)->as.heap.digits)
|
||||
else
|
||||
if ($flags & RUBY_T_MASK) == RUBY_T_RATIONAL
|
||||
printf "T_RATIONAL: "
|
||||
rb_p $arg0
|
||||
else
|
||||
if ($flags & RUBY_T_MASK) == RUBY_T_COMPLEX
|
||||
printf "T_COMPLEX: "
|
||||
rb_p $arg0
|
||||
else
|
||||
if ($flags & RUBY_T_MASK) == RUBY_T_FILE
|
||||
printf "T_FILE: "
|
||||
print (struct RFile *)$arg0
|
||||
|
@ -220,6 +228,8 @@ define rp
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
document rp
|
||||
Print a Ruby's VALUE.
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
Wed Apr 2 06:52:31 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* .gdbinit (rp): supports rational and complex numbers. it's
|
||||
cheating since it uses rb_p().
|
||||
|
||||
Wed Apr 2 06:24:06 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* include/ruby/node.h: add new constants for rb_call()'s scope.
|
||||
|
|
Loading…
Reference in a new issue