Ruby  2.0.0p247(2013-06-27revision41674)
Defines | Functions
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 428 of file vm_dump.c.

#define LIMITED_NAME_LENGTH (   s)    (((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_env_dump_raw ( rb_env_t env,
VALUE ep 
)

Definition at line 170 of file vm_dump.c.

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

Definition at line 217 of file vm_dump.c.

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

Definition at line 344 of file vm_dump.c.

References GetThreadPtr, and rb_vmdebug_debug_print_register().