Ruby
2.7.2p137(2020-10-01revision5445e0435260b449decf2ac16f9d09bae3cafe72)
|
Go to the source code of this file.
Macros | |
#define | MAX_POSBUF 128 |
#define | VM_CFP_CNT(ec, cfp) |
#define | RUBY_VM_IFUNC_P(ptr) imemo_type_p((VALUE)ptr, imemo_ifunc) |
#define | HAVE_BACKTRACE 0 |
#define | rb_dump_machine_register(ctx) ((void)0) |
#define | LIMITED_NAME_LENGTH(s) (((len = RSTRING_LEN(s)) > max_name_length) ? max_name_length : (int)len) |
Variables | |
int | ruby_on_ci |
#define LIMITED_NAME_LENGTH | ( | s | ) | (((len = RSTRING_LEN(s)) > max_name_length) ? max_name_length : (int)len) |
#define RUBY_VM_IFUNC_P | ( | ptr | ) | imemo_type_p((VALUE)ptr, imemo_ifunc) |
#define VM_CFP_CNT | ( | ec, | |
cfp | |||
) |
const char* rb_method_type_name | ( | rb_method_type_t | type | ) |
Definition at line 11406 of file gc.c.
References rb_bug(), VM_METHOD_TYPE_ALIAS, VM_METHOD_TYPE_ATTRSET, VM_METHOD_TYPE_BMETHOD, VM_METHOD_TYPE_CFUNC, VM_METHOD_TYPE_ISEQ, VM_METHOD_TYPE_IVAR, VM_METHOD_TYPE_MISSING, VM_METHOD_TYPE_NOTIMPLEMENTED, VM_METHOD_TYPE_OPTIMIZED, VM_METHOD_TYPE_REFINED, VM_METHOD_TYPE_UNDEF, and VM_METHOD_TYPE_ZSUPER.
Definition at line 750 of file vm_dump.c.
References fprintf(), free, i, int, n, and stderr.
Referenced by rb_fatal(), and rb_vm_bugreport().
Definition at line 918 of file vm_dump.c.
References CLASS_OF, count, fclose(), feof(), fopen(), fprintf(), fputs(), fread(), fwrite(), GET_VM, getpid(), i, klass, len, LIMITED_NAME_LENGTH, rb_vm_struct::loaded_features, name, NULL, PATH_MAX, perror(), procstat_vm(), rb_vm_struct::progname, RARRAY_AREF, RARRAY_LEN, rb_backtrace_print_as_bugreport(), rb_class_real(), rb_dump_machine_register, rb_obj_class(), rb_print_backtrace(), rb_search_class_path(), RB_TYPE_P, RSTRING_PTR, SDR, size, stderr, T_CLASS, T_MODULE, and T_STRING.
void rb_vmdebug_debug_print_post | ( | const rb_execution_context_t * | ec, |
const rb_control_frame_t * | cfp | ||
) |
Definition at line 414 of file vm_dump.c.
References cfp, rb_execution_context_struct::cfp, rb_trace_arg_struct::ec, fprintf(), printf(), rb_inspect(), rb_vmdebug_debug_print_register(), SDR2, stderr, and StringValueCStr.
void rb_vmdebug_debug_print_pre | ( | const rb_execution_context_t * | ec, |
const rb_control_frame_t * | cfp, | ||
const VALUE * | _pc | ||
) |
Definition at line 385 of file vm_dump.c.
References rb_iseq_struct::body, cfp, rb_trace_arg_struct::ec, fprintf(), i, int, iseq, rb_control_frame_struct::iseq, rb_iseq_constant_body::iseq_encoded, pc, printf(), rb_iseq_disasm_insn(), rb_iseq_original_iseq(), rb_vmdebug_debug_print_register(), rb_control_frame_struct::sp, stderr, VM_CFP_CNT, and rb_execution_context_struct::vm_stack.
void rb_vmdebug_debug_print_register | ( | const rb_execution_context_t * | ec | ) |
Definition at line 358 of file vm_dump.c.
References cfp, rb_execution_context_struct::cfp, rb_trace_arg_struct::ec, rb_control_frame_struct::ep, pc, and rb_execution_context_struct::vm_stack.
Referenced by rb_vmdebug_debug_print_post(), rb_vmdebug_debug_print_pre(), and rb_vmdebug_thread_dump_regs().
Definition at line 251 of file vm_dump.c.
References env, and rb_inspect().
Definition at line 1079 of file vm_dump.c.
References buf, fprintf(), GET_VM, list_for_each, rb_vm_struct::living_threads, NULL, rb_vmdebug_stack_dump_raw(), stderr, and rb_thread_struct::thread_id.
void rb_vmdebug_stack_dump_raw | ( | const rb_execution_context_t * | ec, |
const rb_control_frame_t * | cfp | ||
) |
Definition at line 192 of file vm_dump.c.
References cfp, rb_trace_arg_struct::ec, rb_control_frame_struct::ep, fprintf(), GC_GUARDED_PTR_REF, PRIxVALUE, rb_control_frame_struct::sp, st, stderr, rb_execution_context_struct::vm_stack, and rb_execution_context_struct::vm_stack_size.
Referenced by rb_vmdebug_stack_dump_all_threads(), and rb_vmdebug_stack_dump_raw_current().
Definition at line 225 of file vm_dump.c.
References rb_execution_context_struct::cfp, rb_trace_arg_struct::ec, GET_EC, and rb_vmdebug_stack_dump_raw().
Definition at line 379 of file vm_dump.c.
References rb_vmdebug_debug_print_register().
int ruby_on_ci |
Definition at line 44 of file vm_dump.c.
Referenced by ruby_env_debug_option().