diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-09 02:09:24 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-09 02:09:24 +0000 |
commit | 650c05ae40b541f731452019fb08cbe6a666c858 (patch) | |
tree | e5694c947a8818b660bd11a38f07acb4c2bd2666 | |
parent | c1e6048357479699d6dd48739720d81cf79e5ac7 (diff) | |
download | bundler-650c05ae40b541f731452019fb08cbe6a666c858.tar.gz |
.gdbinit: improve rb_imemo [ci skip]
* .gdbinit (rp_imemo): support imemo_ment and imemo_iseq.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | .gdbinit | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -468,7 +468,7 @@ document rp_class end define rp_imemo - set $flags = (((struct RBasic *)($arg0))->flags >> RUBY_FL_USHIFT) & imemo_mask + set $flags = (enum imemo_type)((((struct RBasic *)($arg0))->flags >> RUBY_FL_USHIFT) & imemo_mask) if $flags == imemo_cref printf "(rb_cref_t *) %p\n", (void*)$arg0 print *(rb_cref_t *)$arg0 @@ -489,6 +489,14 @@ define rp_imemo printf "(struct MEMO *) %p\n", (void*)$arg0 print *(struct MEMO *)$arg0 else + if $flags == imemo_ment + printf "(rb_method_entry_t *) %p\n", (void*)$arg0 + print *(rb_method_entry_t *)$arg0 + else + if $flags == imemo_iseq + printf "(rb_iseq_t *) %p\n", (void*)$arg0 + print *(rb_iseq_t *)$arg0 + else printf "(struct RIMemo *) %p\n", (void*)$arg0 print *(struct RIMemo *)$arg0 end @@ -496,6 +504,8 @@ define rp_imemo end end end + end + end end document rp_imemo Print the content of a memo |