vm_dump.c File Reference

#include "ruby/ruby.h"
#include "addr2line.h"
#include "vm_core.h"
#include "internal.h"

Go to the source code of this file.

Defines

#define VMDEBUG   0
#define MAX_POSBUF   128
#define VM_CFP_CNT(th, cfp)   ((rb_control_frame_t *)((th)->stack + (th)->stack_size) - (rb_control_frame_t *)(cfp))
#define HAVE_BACKTRACE   0
#define LIMITED_NAME_LENGTH(s)   (((len = RSTRING_LEN(s)) > max_name_length) ? max_name_length : (int)len)

Functions

static void control_frame_dump (rb_thread_t *th, rb_control_frame_t *cfp)
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 (rb_env_t *env, 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)
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_vm_bugreport (void)

Define Documentation

#define HAVE_BACKTRACE   0

Definition at line 433 of file vm_dump.c.

#define LIMITED_NAME_LENGTH (  )     (((len = RSTRING_LEN(s)) > max_name_length) ? max_name_length : (int)len)

Referenced by rb_vm_bugreport().

#define MAX_POSBUF   128

Definition at line 22 of file vm_dump.c.

Referenced by control_frame_dump().

#define VM_CFP_CNT ( th,
cfp   )     ((rb_control_frame_t *)((th)->stack + (th)->stack_size) - (rb_control_frame_t *)(cfp))

Definition at line 24 of file vm_dump.c.

Referenced by rb_vmdebug_debug_print_pre().

#define VMDEBUG   0

Definition at line 19 of file vm_dump.c.

Referenced by rb_vm_make_proc(), vm_pop_frame(), and vm_push_frame().


Function Documentation

static void control_frame_dump ( rb_thread_t th,
rb_control_frame_t cfp 
) [static]
void rb_vm_bugreport ( void   ) 
void rb_vmdebug_debug_print_post ( rb_thread_t th,
rb_control_frame_t cfp 
)
void rb_vmdebug_debug_print_pre ( rb_thread_t th,
rb_control_frame_t cfp 
)
void rb_vmdebug_debug_print_register ( rb_thread_t th  ) 
void rb_vmdebug_env_dump_raw ( rb_env_t env,
VALUE *  ep 
)
void rb_vmdebug_proc_dump_raw ( rb_proc_t proc  ) 
void rb_vmdebug_stack_dump_raw ( rb_thread_t th,
rb_control_frame_t cfp 
)
void rb_vmdebug_stack_dump_raw_current ( void   ) 

Definition at line 173 of file vm_dump.c.

References rb_thread_struct::cfp, GET_THREAD(), and rb_vmdebug_stack_dump_raw().

void rb_vmdebug_stack_dump_th ( VALUE  thval  ) 

Definition at line 220 of file vm_dump.c.

References rb_thread_struct::cfp, GetThreadPtr, and rb_vmdebug_stack_dump_raw().

void rb_vmdebug_thread_dump_regs ( VALUE  thval  ) 

Definition at line 349 of file vm_dump.c.

References GetThreadPtr, and rb_vmdebug_debug_print_register().

VALUE rb_vmdebug_thread_dump_state ( VALUE  self  ) 

Generated on 18 May 2020 for Ruby by  doxygen 1.6.1