diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-29 01:20:24 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-29 01:20:24 +0000 |
commit | 5c143c97efa8f62634709fc9eb2369d93a2bd8c4 (patch) | |
tree | 2a07c0d3050e3f85de9019b523ed975ce9d335dd /.gdbinit | |
parent | e1e46c0501ddde118c29cdf3ce9ced6ab444f5ca (diff) | |
download | ruby-5c143c97efa8f62634709fc9eb2369d93a2bd8c4.tar.gz |
.gdbinit: follow classname() change
* .gdbinit (rb_classname): follow classname() change at r36584, which
hash second argument now. reported by 36584 via IRC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to '.gdbinit')
-rw-r--r-- | .gdbinit | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -722,9 +722,14 @@ document rb_method_entry end define rb_classname - call classname($arg0) - rb_p $ - print *(struct RClass*)($arg0) + # up to 128bit int + set $rb_classname_permanent = "0123456789ABCDEF" + set $rb_classname = classname($arg0, $rb_classname_permanent) + if $rb_classname != RUBY_Qnil + rp $rb_classname + else + echo anonymous class/module\n + end end define rb_ancestors |