.gdbinit: update for r47913

* .gdbinit (rp): update for r47913.  RSymbol has id, so needs mask
  by scope mask.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-11-17 21:08:23 +00:00
parent 88212206f6
commit 9763fb84b5
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ define rp
if ($flags & RUBY_T_MASK) == RUBY_T_SYMBOL if ($flags & RUBY_T_MASK) == RUBY_T_SYMBOL
printf "%sT_SYMBOL%s: ", $color_type, $color_end printf "%sT_SYMBOL%s: ", $color_type, $color_end
print (struct RSymbol *)($arg0) print (struct RSymbol *)($arg0)
set $id_type = ((struct RSymbol *)($arg0))->type set $id_type = ((struct RSymbol *)($arg0))->id & RUBY_ID_SCOPE_MASK
if $id_type == RUBY_ID_LOCAL if $id_type == RUBY_ID_LOCAL
printf "l" printf "l"
else else