summaryrefslogtreecommitdiffstats
path: root/.gdbinit
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-27 08:08:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-27 08:08:44 +0000
commit25512694c54373064d6ff6a4c6b55c5805e49d58 (patch)
tree200a8a7110d1d801581b3e953271ce25be035670 /.gdbinit
parent4fd40f77e57a1e38c05c8a8c58cc5f68ea3c1525 (diff)
downloadruby-25512694c54373064d6ff6a4c6b55c5805e49d58.tar.gz
ruby-25512694c54373064d6ff6a4c6b55c5805e49d58.tar.xz
ruby-25512694c54373064d6ff6a4c6b55c5805e49d58.zip
* .gdbinit (dummy_gdb_enums.special_consts): forces to load debug
info on Mac OS X. * .gdbinit (rp): added T_ZOMBIE. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to '.gdbinit')
-rw-r--r--.gdbinit7
1 files changed, 7 insertions, 0 deletions
diff --git a/.gdbinit b/.gdbinit
index 2e882cd19..3ecc8f5a8 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -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
@@ -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
@@ -251,6 +257,7 @@ define rp
end
end
end
+ end
end
document rp
Print a Ruby's VALUE.