summaryrefslogtreecommitdiff
path: root/vm_dump.c
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2019-12-12 17:02:36 +0900
committerKoichi Sasada <ko1@atdot.net>2019-12-12 17:03:47 +0900
commit54e089df9e37d438687effd092feda2442116c62 (patch)
tree5d474164b4fafab5d029ea1c446d36ae078fd644 /vm_dump.c
parent55b7ba368696033f2e89b77cbcd4a05dec97b139 (diff)
downloadruby-54e089df9e37d438687effd092feda2442116c62.tar.gz
show self on control frame dump.
control frame detailed info on RUBY_DEBUG=ci should also show self information.
Diffstat (limited to 'vm_dump.c')
-rw-r--r--vm_dump.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm_dump.c b/vm_dump.c
index a8d9af5a82..9ada7a959f 100644
--- a/vm_dump.c
+++ b/vm_dump.c
@@ -172,6 +172,8 @@ control_frame_dump(const rb_execution_context_t *ec, const rb_control_frame_t *c
}
}
+ fprintf(stderr, " self: %s\n", rb_raw_obj_info(buff, 0x100, cfp->self));
+
if (iseq) {
if (iseq->body->local_table_size > 0) {
fprintf(stderr, " lvars:\n");