diff options
author | Koichi Sasada <ko1@atdot.net> | 2019-12-05 14:39:03 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2019-12-05 14:47:31 +0900 |
commit | edb80dfe3e6086fb9d5d905a40cdd6ec61a2e1ee (patch) | |
tree | 356517e8c333b449e6200481d0a21a961d5c1399 /gc.c | |
parent | c88afd532895a8527f7c9fffb2c635805d01f626 (diff) |
add additional CF info for CI env
Introduce new RUBY_DEBUG option 'ci' to inform Ruby interpreter
that an interpreter is running on CI environment.
With this option, `rb_bug()` shows more information includes
method entry information, local variables information for each
control frame.
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -11344,8 +11344,8 @@ obj_type_name(VALUE obj) return type_name(TYPE(obj), obj); } -static const char * -method_type_name(rb_method_type_t type) +const char * +rb_method_type_name(rb_method_type_t type) { switch (type) { case VM_METHOD_TYPE_ISEQ: return "iseq"; @@ -11361,7 +11361,7 @@ method_type_name(rb_method_type_t type) case VM_METHOD_TYPE_UNDEF: return "undef"; case VM_METHOD_TYPE_NOTIMPLEMENTED: return "notimplemented"; } - rb_bug("method_type_name: unreachable (type: %d)", type); + rb_bug("rb_method_type_name: unreachable (type: %d)", type); } /* from array.c */ @@ -11564,7 +11564,7 @@ rb_raw_obj_info(char *buff, const int buff_size, VALUE obj) if (me->def) { APPENDF((BUFF_ARGS, "(called_id: %s, type: %s, alias: %d, owner: %s, defined_class: %s)", rb_id2name(me->called_id), - method_type_name(me->def->type), + rb_method_type_name(me->def->type), me->def->alias_count, obj_info(me->owner), obj_info(me->defined_class))); |