[前][次][番号順一覧][スレッド一覧]

ruby-changes:59217

From: Koichi <ko1@a...>
Date: Thu, 12 Dec 2019 17:09:01 +0900 (JST)
Subject: [ruby-changes:59217] 54e089df9e (master): show self on control frame dump.

https://git.ruby-lang.org/ruby.git/commit/?id=54e089df9e

From 54e089df9e37d438687effd092feda2442116c62 Mon Sep 17 00:00:00 2001
From: Koichi Sasada <ko1@a...>
Date: Thu, 12 Dec 2019 17:02:36 +0900
Subject: show self on control frame dump.

control frame detailed info on RUBY_DEBUG=ci should also show
self information.

diff --git a/vm_dump.c b/vm_dump.c
index a8d9af5..9ada7a9 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 https://github.com/ruby/ruby/blob/trunk/vm_dump.c#L172
             }
         }
 
+        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");
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]