File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -585,6 +585,7 @@ objspace_dump.o: $(top_srcdir)/ccan/container_of/container_of.h
585
585
objspace_dump.o: $(top_srcdir)/ccan/list/list.h
586
586
objspace_dump.o: $(top_srcdir)/ccan/str/str.h
587
587
objspace_dump.o: $(top_srcdir)/constant.h
588
+ objspace_dump.o: $(top_srcdir)/debug_counter.h
588
589
objspace_dump.o: $(top_srcdir)/id_table.h
589
590
objspace_dump.o: $(top_srcdir)/internal.h
590
591
objspace_dump.o: $(top_srcdir)/internal/array.h
@@ -610,6 +611,7 @@ objspace_dump.o: $(top_srcdir)/rubyparser.h
610
611
objspace_dump.o: $(top_srcdir)/shape.h
611
612
objspace_dump.o: $(top_srcdir)/symbol.h
612
613
objspace_dump.o: $(top_srcdir)/thread_pthread.h
614
+ objspace_dump.o: $(top_srcdir)/vm_callinfo.h
613
615
objspace_dump.o: $(top_srcdir)/vm_core.h
614
616
objspace_dump.o: $(top_srcdir)/vm_opts.h
615
617
objspace_dump.o: objspace.h
Original file line number Diff line number Diff line change 28
28
#include "ruby/debug.h"
29
29
#include "ruby/util.h"
30
30
#include "ruby/io.h"
31
+ #include "vm_callinfo.h"
31
32
#include "vm_core.h"
32
33
33
34
RUBY_EXTERN const char ruby_hexdigits [];
@@ -429,6 +430,17 @@ dump_object(VALUE obj, struct dump_config *dc)
429
430
dump_append (dc , ", \"imemo_type\":\"" );
430
431
dump_append (dc , rb_imemo_name (imemo_type (obj )));
431
432
dump_append (dc , "\"" );
433
+
434
+ switch (imemo_type (obj )) {
435
+ case imemo_callinfo :
436
+ dump_append (dc , ", \"mid\":\"" );
437
+ dump_append (dc , RSTRING_PTR (rb_id2str (vm_ci_mid ((const struct rb_callinfo * )obj ))));
438
+ dump_append (dc , "\"" );
439
+ break ;
440
+
441
+ default :
442
+ break ;
443
+ }
432
444
break ;
433
445
434
446
case T_SYMBOL :
You can’t perform that action at this time.
0 commit comments