mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* .gdbinit (rp): mark singleton classes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
45f6fbf339
commit
480b4d0a78
1 changed files with 1 additions and 1 deletions
2
.gdbinit
2
.gdbinit
|
@ -105,7 +105,7 @@ define rp
|
||||||
print (struct RObject *)($arg0)
|
print (struct RObject *)($arg0)
|
||||||
else
|
else
|
||||||
if ($flags & RUBY_T_MASK) == RUBY_T_CLASS
|
if ($flags & RUBY_T_MASK) == RUBY_T_CLASS
|
||||||
printf "T_CLASS: "
|
printf "T_CLASS%s: ", ($flags & RUBY_FL_SINGLETON) ? "*" : ""
|
||||||
print (struct RClass *)($arg0)
|
print (struct RClass *)($arg0)
|
||||||
else
|
else
|
||||||
if ($flags & RUBY_T_MASK) == RUBY_T_ICLASS
|
if ($flags & RUBY_T_MASK) == RUBY_T_ICLASS
|
||||||
|
|
Loading…
Reference in a new issue