diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-08-01 03:04:42 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-09-25 22:57:28 +0900 |
commit | ac244938e8b97c8bd42d1dc8ed820091e6ef5537 (patch) | |
tree | d31693cc37095ca9f6a21092e8c254273b05915c /internal | |
parent | acd44902b917230066b4fc7ea6c7e12556274512 (diff) | |
download | ruby-ac244938e8b97c8bd42d1dc8ed820091e6ef5537.tar.gz |
Dump backtraces to an arbitrary stream
Diffstat (limited to 'internal')
-rw-r--r-- | internal/vm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/vm.h b/internal/vm.h index a89af3d9a9..571cf73c52 100644 --- a/internal/vm.h +++ b/internal/vm.h @@ -95,7 +95,7 @@ int rb_ec_obj_respond_to(struct rb_execution_context_struct *ec, VALUE obj, ID i void rb_clear_constant_cache(void); /* vm_dump.c */ -void rb_print_backtrace(void); +void rb_print_backtrace(FILE *); /* vm_backtrace.c */ VALUE rb_vm_thread_backtrace(int argc, const VALUE *argv, VALUE thval); @@ -103,7 +103,7 @@ VALUE rb_vm_thread_backtrace_locations(int argc, const VALUE *argv, VALUE thval) VALUE rb_vm_backtrace(int argc, const VALUE * argv, struct rb_execution_context_struct * ec); VALUE rb_vm_backtrace_locations(int argc, const VALUE * argv, struct rb_execution_context_struct * ec); VALUE rb_make_backtrace(void); -void rb_backtrace_print_as_bugreport(void); +void rb_backtrace_print_as_bugreport(FILE*); int rb_backtrace_p(VALUE obj); VALUE rb_backtrace_to_str_ary(VALUE obj); VALUE rb_backtrace_to_location_ary(VALUE obj); |