From 269421084e630ab2b5ca1af4becb3ebbfdcdce29 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 17 Apr 2017 01:23:50 +0000 Subject: vm_backtrace.c: backtrace functions per threads * vm_backtrace.c (rb_threadptr_backtrace_object): rename and extern. * vm_backtrace.c (rb_threadptr_backtrace_str_ary): rename as threadptr since the parameter is rb_thread_t*. * vm_backtrace.c (rb_threadptr_backtrace_location_ary): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_eval.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'vm_eval.c') diff --git a/vm_eval.c b/vm_eval.c index 2713af0550..48b569e22b 100644 --- a/vm_eval.c +++ b/vm_eval.c @@ -28,9 +28,6 @@ static VALUE rb_eUncaughtThrow; static ID id_result, id_tag, id_value; #define id_mesg idMesg -/* vm_backtrace.c */ -VALUE rb_vm_backtrace_str_ary(rb_thread_t *th, int lev, int n); - typedef enum call_type { CALL_PUBLIC, CALL_FCALL, @@ -1269,7 +1266,7 @@ adjust_backtrace_in_eval(rb_thread_t *th, VALUE errinfo) VALUE errat = rb_get_backtrace(errinfo); VALUE mesg = rb_attr_get(errinfo, id_mesg); if (RB_TYPE_P(errat, T_ARRAY)) { - VALUE bt2 = rb_vm_backtrace_str_ary(th, 0, 0); + VALUE bt2 = rb_threadptr_backtrace_str_ary(th, 0, 0); if (RARRAY_LEN(bt2) > 0) { if (RB_TYPE_P(mesg, T_STRING) && !RSTRING_LEN(mesg)) { rb_ivar_set(errinfo, id_mesg, RARRAY_AREF(errat, 0)); -- cgit v1.2.3