diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | gc.c | 7 | ||||
-rw-r--r-- | gc.h | 1 |
3 files changed, 13 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Wed Oct 7 01:20:46 2015 Koichi Sasada <[email protected]> + + * gc.h, gc.c: introduce new debug function rb_obj_info_dump(VALUE obj) + which prints the result of rb_raw_obj_info(..., obj). + Wed Oct 7 01:16:11 2015 Koichi Sasada <[email protected]> * vm_args.c: remove an unused field args_info::calling. @@ -9049,6 +9049,13 @@ rb_obj_info(VALUE obj) } } +void +rb_obj_info_dump(VALUE obj) +{ + char buff[0x100]; + fprintf(stderr, "rb_obj_info_dump: %s\n", rb_raw_obj_info(buff, 0x100, obj)); +} + #if GC_DEBUG void @@ -88,6 +88,7 @@ int ruby_get_stack_grow_direction(volatile VALUE *addr); const char *rb_obj_info(VALUE obj); const char *rb_raw_obj_info(char *buff, const int buff_size, VALUE obj); +void rb_obj_info_dump(VALUE obj); RUBY_SYMBOL_EXPORT_BEGIN |