Ruby  1.9.3p551(2014-11-13revision48407)
Macros | Functions
vm_dump.c File Reference
#include "ruby/ruby.h"
#include "addr2line.h"
#include "vm_core.h"

Go to the source code of this file.

Macros

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

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 *lfp, VALUE *dfp)
 
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)
 
static int bugreport_backtrace (void *arg, VALUE file, int line, VALUE method)
 
void rb_vm_bugreport (void)
 

Macro Definition Documentation

#define MAX_POSBUF   128

Definition at line 16 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 18 of file vm_dump.c.

Referenced by rb_vmdebug_debug_print_pre().

Function Documentation

static int bugreport_backtrace ( void *  arg,
VALUE  file,
int  line,
VALUE  method 
)
static

Definition at line 571 of file vm_dump.c.

References NIL_P, and RSTRING_PTR.

Referenced by rb_vm_bugreport().

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 lfp,
VALUE dfp 
)
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 184 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 233 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 353 of file vm_dump.c.

References GetThreadPtr, and rb_vmdebug_debug_print_register().

VALUE rb_vmdebug_thread_dump_state ( VALUE  self)