Skip to content

Commit

Permalink
* .gdbinit (dummy_gdb_enums.special_consts): forces to load debug
Browse files Browse the repository at this point in the history
  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
  • Loading branch information
nobu committed Dec 27, 2008
1 parent aebfdbe commit d9be205
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gdbinit
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
if dummy_gdb_enums.special_consts
end

define rp
if (VALUE)$arg0 & RUBY_FIXNUM_FLAG
printf "FIXNUM: %ld\n", $arg0 >> 1
Expand Down Expand Up @@ -217,6 +220,9 @@ define rp
output (enum node_type)(($flags&RUBY_NODE_TYPEMASK)>>RUBY_NODE_TYPESHIFT)
printf "): "
print *(NODE *)$arg0
if ($flags & RUBY_T_MASK) == RUBY_T_ZOMBIE
printf "T_ZOMBIE: "
print (struct RData *)$arg0
else
printf "unknown: "
print (struct RBasic *)$arg0
Expand Down Expand Up @@ -251,6 +257,7 @@ define rp
end
end
end
end
end
document rp
Print a Ruby's VALUE.
Expand Down
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
Sat Dec 27 17:08:43 2008 Nobuyoshi Nakada <[email protected]>

* .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 <[email protected]>

* eval.c (rb_frame_callee, rb_frame_caller): rb_frame_callee()
Expand Down

0 comments on commit d9be205

Please sign in to comment.