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:
parent
aebfdbeea5
commit
d9be2059e5
2 changed files with 14 additions and 0 deletions
7
.gdbinit
7
.gdbinit
|
@ -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.
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue