1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* .gdbinit (dummy_gdb_enums.special_consts): forces to load debug

info on Mac OS X.

* .gdbinit (rp): added T_ZOMBIE.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-12-27 08:08:44 +00:00
parent aebfdbeea5
commit d9be2059e5
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,6 @@
if dummy_gdb_enums.special_consts
end
define rp define rp
if (VALUE)$arg0 & RUBY_FIXNUM_FLAG if (VALUE)$arg0 & RUBY_FIXNUM_FLAG
printf "FIXNUM: %ld\n", $arg0 >> 1 printf "FIXNUM: %ld\n", $arg0 >> 1
@ -217,6 +220,9 @@ define rp
output (enum node_type)(($flags&RUBY_NODE_TYPEMASK)>>RUBY_NODE_TYPESHIFT) output (enum node_type)(($flags&RUBY_NODE_TYPEMASK)>>RUBY_NODE_TYPESHIFT)
printf "): " printf "): "
print *(NODE *)$arg0 print *(NODE *)$arg0
if ($flags & RUBY_T_MASK) == RUBY_T_ZOMBIE
printf "T_ZOMBIE: "
print (struct RData *)$arg0
else else
printf "unknown: " printf "unknown: "
print (struct RBasic *)$arg0 print (struct RBasic *)$arg0
@ -251,6 +257,7 @@ define rp
end end
end end
end end
end
end end
document rp document rp
Print a Ruby's VALUE. Print a Ruby's VALUE.

View file

@ -1,3 +1,10 @@
Sat Dec 27 17:08:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* .gdbinit (dummy_gdb_enums.special_consts): forces to load debug
info on Mac OS X.
* .gdbinit (rp): added T_ZOMBIE.
Sat Dec 27 16:18:02 2008 Koichi Sasada <ko1@atdot.net> Sat Dec 27 16:18:02 2008 Koichi Sasada <ko1@atdot.net>
* eval.c (rb_frame_callee, rb_frame_caller): rb_frame_callee() * eval.c (rb_frame_callee, rb_frame_caller): rb_frame_callee()