Defines | Functions

vm_dump.c File Reference

#include "ruby/ruby.h"
#include "vm_core.h"
Include dependency graph for vm_dump.c:

Go to the source code of this file.

Defines

#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)

Define Documentation

#define MAX_POSBUF   128

Definition at line 15 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 17 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 569 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   ) 

Definition at line 590 of file vm_dump.c.

References bugreport_backtrace(), free, GET_THREAD, rb_backtrace_each(), and SDR.

Referenced by report_bug(), and sdr().

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 182 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 231 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 351 of file vm_dump.c.

References GetThreadPtr, and rb_vmdebug_debug_print_register().

VALUE rb_vmdebug_thread_dump_state ( VALUE  self  )