Ruby
2.5.0dev(2017-10-22revision60238)
|
#include "internal.h"
#include "ruby/debug.h"
#include "vm_core.h"
#include "eval_intern.h"
#include "iseq.h"
Go to the source code of this file.
Data Structures | |
struct | rb_backtrace_location_struct |
struct | valued_frame_info |
struct | rb_backtrace_struct |
struct | bt_iter_arg |
struct | oldbt_arg |
struct | print_to_arg |
struct | rb_debug_inspector_struct |
struct | collect_caller_bindings_data |
Macros | |
#define | rb_id2str(id) id2str(id) |
Typedefs | |
typedef struct rb_backtrace_location_struct | rb_backtrace_location_t |
typedef struct rb_backtrace_struct | rb_backtrace_t |
Enumerations | |
enum | { CALLER_BINDING_SELF, CALLER_BINDING_CLASS, CALLER_BINDING_BINDING, CALLER_BINDING_ISEQ, CALLER_BINDING_CFP } |
Definition at line 29 of file vm_backtrace.c.
Referenced by rb_define_class_id_under(), rb_define_module_id_under(), rb_id_quote_unprintable(), rb_insecure_operation(), rb_iseq_parameters(), rb_notimplement(), rb_secure(), rb_str_setter(), rb_thread_current_status(), and rsock_ipaddr().
typedef struct rb_backtrace_location_struct rb_backtrace_location_t |
typedef struct rb_backtrace_struct rb_backtrace_t |
anonymous enum |
Enumerator | |
---|---|
CALLER_BINDING_SELF | |
CALLER_BINDING_CLASS | |
CALLER_BINDING_BINDING | |
CALLER_BINDING_ISEQ | |
CALLER_BINDING_CFP |
Definition at line 1070 of file vm_backtrace.c.
void Init_vm_backtrace | ( | void | ) |
Definition at line 986 of file vm_backtrace.c.
void rb_backtrace | ( | void | ) |
Definition at line 770 of file vm_backtrace.c.
Definition at line 796 of file vm_backtrace.c.
int rb_backtrace_p | ( | VALUE | obj | ) |
Definition at line 410 of file vm_backtrace.c.
References rb_typeddata_is_kind_of().
Referenced by rb_check_backtrace().
void rb_backtrace_print_as_bugreport | ( | void | ) |
Definition at line 754 of file vm_backtrace.c.
References oldbt_arg::func.
Referenced by rb_vm_bugreport().
Definition at line 625 of file vm_backtrace.c.
References GetCoreDataFromValue, and rb_backtrace_struct::locary.
Definition at line 578 of file vm_backtrace.c.
References bt_iter_arg::bt, GetCoreDataFromValue, and rb_backtrace_struct::strary.
VALUE rb_debug_inspector_backtrace_locations | ( | const rb_debug_inspector_t * | dc | ) |
Definition at line 1240 of file vm_backtrace.c.
References rb_debug_inspector_struct::backtrace.
VALUE rb_debug_inspector_frame_binding_get | ( | const rb_debug_inspector_t * | dc, |
long | index | ||
) |
Definition at line 1224 of file vm_backtrace.c.
VALUE rb_debug_inspector_frame_class_get | ( | const rb_debug_inspector_t * | dc, |
long | index | ||
) |
Definition at line 1217 of file vm_backtrace.c.
VALUE rb_debug_inspector_frame_iseq_get | ( | const rb_debug_inspector_t * | dc, |
long | index | ||
) |
Definition at line 1231 of file vm_backtrace.c.
VALUE rb_debug_inspector_frame_self_get | ( | const rb_debug_inspector_t * | dc, |
long | index | ||
) |
Definition at line 1210 of file vm_backtrace.c.
VALUE rb_debug_inspector_open | ( | rb_debug_inspector_func_t | func, |
void * | data | ||
) |
Definition at line 1172 of file vm_backtrace.c.
References GET_THREAD, and MAYBE_UNUSED.
VALUE rb_make_backtrace | ( | void | ) |
Definition at line 813 of file vm_backtrace.c.
References GET_THREAD, and rb_threadptr_backtrace_str_ary().
Definition at line 1313 of file vm_backtrace.c.
References rb_backtrace_location_struct::iseq.
Definition at line 1327 of file vm_backtrace.c.
References rb_backtrace_location_struct::iseq.
Referenced by rb_profile_frame_full_label().
Definition at line 1356 of file vm_backtrace.c.
Definition at line 1334 of file vm_backtrace.c.
References rb_backtrace_location_struct::iseq.
Definition at line 1419 of file vm_backtrace.c.
References NIL_P, PRIsVALUE, rb_long2int, rb_profile_frame_base_label(), rb_profile_frame_label(), rb_profile_frame_qualified_method_name(), rb_sprintf(), RSTRING_LEN, and RSTRING_PTR.
Definition at line 1320 of file vm_backtrace.c.
References rb_backtrace_location_struct::iseq.
Referenced by rb_profile_frame_full_label().
Definition at line 1390 of file vm_backtrace.c.
References rb_backtrace_location_struct::iseq.
Definition at line 1306 of file vm_backtrace.c.
References rb_backtrace_location_struct::iseq.
Definition at line 1397 of file vm_backtrace.c.
Referenced by rb_profile_frame_full_label().
Definition at line 1377 of file vm_backtrace.c.
int rb_profile_frames | ( | int | start, |
int | limit, | ||
VALUE * | buff, | ||
int * | lines | ||
) |
Definition at line 1246 of file vm_backtrace.c.
References rb_execution_context_struct::cfp, rb_callable_method_entry_struct::def, rb_thread_struct::ec, GET_THREAD, rb_control_frame_struct::iseq, rb_control_frame_struct::pc, rb_vm_frame_method_entry(), RUBY_VM_END_CONTROL_FRAME, and VM_METHOD_TYPE_ISEQ.
VALUE rb_threadptr_backtrace_location_ary | ( | rb_thread_t * | th, |
long | lev, | ||
long | n | ||
) |
Definition at line 659 of file vm_backtrace.c.
VALUE rb_threadptr_backtrace_object | ( | rb_thread_t * | th | ) |
Definition at line 515 of file vm_backtrace.c.
References bt_iter_arg::prev_loc.
VALUE rb_threadptr_backtrace_str_ary | ( | rb_thread_t * | th, |
long | lev, | ||
long | n | ||
) |
Definition at line 653 of file vm_backtrace.c.
Referenced by rb_make_backtrace().
int rb_vm_get_sourceline | ( | const rb_control_frame_t * | cfp | ) |
Definition at line 38 of file vm_backtrace.c.
Referenced by rb_source_location(), rb_sourceline(), and rb_thread_current_status().
Definition at line 901 of file vm_backtrace.c.