summaryrefslogtreecommitdiff
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
commitd9be2059e55f50fb4d51f753d7b992e59f98d042 (patch)
tree200a8a7110d1d801581b3e953271ce25be035670 /.gdbinit
parentaebfdbeea573c031ea690ee93f816a53ac27ca51 (diff)
downloadruby-d9be2059e55f50fb4d51f753d7b992e59f98d042.tar.gz
* .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
Diffstat (limited to '.gdbinit')
-rw-r--r--.gdbinit7
1 files changed, 7 insertions, 0 deletions
diff --git a/.gdbinit b/.gdbinit
index 2e882cd19b..3ecc8f5a8c 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.