diff options
author | Koichi Sasada <[email protected]> | 2019-08-09 13:57:47 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2019-08-09 14:01:15 +0900 |
commit | 6bf8db9a07e95820705f7ec119f4038a529182ef (patch) | |
tree | b5165573ca3ca4e4106754901d843d71545cf474 /vm_debug.h | |
parent | cb390e87dc682a277579f44fac6aea57e16e5f7a (diff) |
add rp() and bp() in internal.h.
debug utility macro rp() (rp_m()) and bp() are introduced.
* rp(obj) shows obj information w/o any side-effect to STDERR.
* rp_m(m, obj) is similar to rp(obj), but show m before.
* bp() is alias of ruby_debug_breakpoint(), which is registered
as a breakpoint in run.gdb (used by `make gdb` or make gdb-ruby`).
Diffstat (limited to 'vm_debug.h')
-rw-r--r-- | vm_debug.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/vm_debug.h b/vm_debug.h index 32e060732c..8e0350d147 100644 --- a/vm_debug.h +++ b/vm_debug.h @@ -22,13 +22,10 @@ RUBY_SYMBOL_EXPORT_BEGIN #define dpi(i) ruby_debug_print_id(-1, 0, "", (i)) #define dpn(n) ruby_debug_print_node(-1, 0, "", (n)) -#define bp() ruby_debug_breakpoint() - VALUE ruby_debug_print_value(int level, int debug_level, const char *header, VALUE v); ID ruby_debug_print_id(int level, int debug_level, const char *header, ID id); NODE *ruby_debug_print_node(int level, int debug_level, const char *header, const NODE *node); int ruby_debug_print_indent(int level, int debug_level, int indent_level); -void ruby_debug_breakpoint(void); void ruby_debug_gc_check_func(void); void ruby_set_debug_option(const char *str); |