summaryrefslogtreecommitdiff
path: root/.gdbinit
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-26 06:30:15 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-26 06:30:15 (GMT)
commit3f8d0777449049406fac927ae275ccbd46400eab (patch)
tree05ef07acf140f7ac86d59938736ac9905c8fe34b /.gdbinit
parentbad657e8b6f9617664e103b04b70de62b15267ae (diff)
.gdbinit: T_IMEMO
* .gdbinit (rp): add support of T_IMEMO. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50097 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 f0d1680..4d44527 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -245,6 +245,12 @@ define rp
printf "%sT_UNDEF%s: ", $color_type, $color_end
print (struct RBasic *)($arg0)
else
+ if ($flags & RUBY_T_MASK) == RUBY_T_IMEMO
+ printf "%sT_IMEMO%s(", $color_type, $color_end
+ output (enum imemo_type)(($flags>>RUBY_FL_USHIFT)&imemo_mask)
+ printf "): "
+ print *((VALUE (*)[4])($arg0))
+ else
if ($flags & RUBY_T_MASK) == RUBY_T_NODE
printf "%sT_NODE%s(", $color_type, $color_end
output (enum node_type)(($flags&RUBY_NODE_TYPEMASK)>>RUBY_NODE_TYPESHIFT)
@@ -289,6 +295,7 @@ define rp
end
end
end
+ end
end
document rp
Print a Ruby's VALUE.