Ruby
2.5.0dev(2017-10-22revision60238)
|
Go to the source code of this file.
Macros | |
#define | MAX_POSBUF 128 |
#define | VM_CFP_CNT(th, 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) |
Functions | |
void | rb_vmdebug_stack_dump_raw (rb_thread_t *th, rb_control_frame_t *cfp) |
void | rb_vmdebug_stack_dump_raw_current (void) |
void | rb_vmdebug_env_dump_raw (const rb_env_t *env, const VALUE *ep) |
void | rb_vmdebug_proc_dump_raw (rb_proc_t *proc) |
void | rb_vmdebug_stack_dump_th (VALUE thval) |
void | rb_vmdebug_debug_print_register (rb_thread_t *th) |
void | rb_vmdebug_thread_dump_regs (VALUE thval) |
void | rb_vmdebug_debug_print_pre (rb_thread_t *th, rb_control_frame_t *cfp, const VALUE *_pc) |
void | rb_vmdebug_debug_print_post (rb_thread_t *th, rb_control_frame_t *cfp) |
VALUE | rb_vmdebug_thread_dump_state (VALUE self) |
void | rb_print_backtrace (void) |
void | rb_vm_bugreport (const void *ctx) |
void | rb_vmdebug_stack_dump_all_threads (void) |
#define LIMITED_NAME_LENGTH | ( | s | ) | (((len = RSTRING_LEN(s)) > max_name_length) ? max_name_length : (int)len) |
Referenced by rb_vm_bugreport().
#define rb_dump_machine_register | ( | ctx | ) | ((void)0) |
Definition at line 946 of file vm_dump.c.
Referenced by rb_print_backtrace(), and rb_vm_bugreport().
#define RUBY_VM_IFUNC_P | ( | ptr | ) | imemo_type_p((VALUE)ptr, imemo_ifunc) |
#define VM_CFP_CNT | ( | th, | |
cfp | |||
) |
Definition at line 24 of file vm_dump.c.
Referenced by rb_vmdebug_debug_print_pre().
void rb_print_backtrace | ( | void | ) |
Definition at line 698 of file vm_dump.c.
References buf, cnt, ERR, free(), NULL, rb_dump_machine_register, and snprintf.
Referenced by rb_vm_bugreport(), and ruby_deprecated_internal_feature().
void rb_vm_bugreport | ( | const void * | ctx | ) |
Definition at line 950 of file vm_dump.c.
References buf, CLASS_OF, feof, GET_VM, rb_trace_arg_struct::klass, len, LIMITED_NAME_LENGTH, rb_vm_struct::loaded_features, name, NULL, 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, T_CLASS, T_MODULE, and T_STRING.
void rb_vmdebug_debug_print_post | ( | rb_thread_t * | th, |
rb_control_frame_t * | cfp | ||
) |
Definition at line 362 of file vm_dump.c.
References rb_execution_context_struct::cfp, rb_thread_struct::ec, rb_inspect(), rb_vmdebug_debug_print_register(), SDR2, and StringValueCStr.
void rb_vmdebug_debug_print_pre | ( | rb_thread_t * | th, |
rb_control_frame_t * | cfp, | ||
const VALUE * | _pc | ||
) |
Definition at line 333 of file vm_dump.c.
References rb_iseq_struct::body, rb_thread_struct::ec, rb_control_frame_struct::iseq, rb_iseq_constant_body::iseq_encoded, rb_iseq_disasm_insn(), rb_iseq_original_iseq(), rb_vmdebug_debug_print_register(), rb_control_frame_struct::sp, VM_CFP_CNT, and rb_execution_context_struct::vm_stack.
void rb_vmdebug_debug_print_register | ( | rb_thread_t * | th | ) |
Definition at line 306 of file vm_dump.c.
References rb_execution_context_struct::cfp, rb_thread_struct::ec, rb_control_frame_struct::ep, 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 180 of file vm_dump.c.
References rb_env_t::env, rb_env_t::env_size, PRIxVALUE, and rb_vm_env_prev_env().
void rb_vmdebug_proc_dump_raw | ( | rb_proc_t * | proc | ) |
Definition at line 199 of file vm_dump.c.
References env, rb_inspect(), and val.
void rb_vmdebug_stack_dump_all_threads | ( | void | ) |
Definition at line 1075 of file vm_dump.c.
References buf, rb_execution_context_struct::cfp, rb_thread_struct::ec, GET_THREAD, rb_vm_struct::living_threads, NULL, rb_vmdebug_stack_dump_raw(), and rb_thread_struct::thread_id.
void rb_vmdebug_stack_dump_raw | ( | rb_thread_t * | th, |
rb_control_frame_t * | cfp | ||
) |
Definition at line 141 of file vm_dump.c.
References rb_thread_struct::ec, rb_control_frame_struct::ep, GC_GUARDED_PTR_REF, PRIxVALUE, rb_control_frame_struct::sp, 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().
void rb_vmdebug_stack_dump_raw_current | ( | void | ) |
Definition at line 173 of file vm_dump.c.
References rb_execution_context_struct::cfp, rb_thread_struct::ec, GET_THREAD, rb_vmdebug_stack_dump_raw(), and rb_trace_arg_struct::th.
void rb_vmdebug_thread_dump_regs | ( | VALUE | thval | ) |
Definition at line 327 of file vm_dump.c.
References rb_vmdebug_debug_print_register().