mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
.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
This commit is contained in:
parent
bad657e8b6
commit
3f8d077744
1 changed files with 7 additions and 0 deletions
7
.gdbinit
7
.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.
|
||||
|
|
Loading…
Reference in a new issue