ruby-changes:27378
From: zzak <ko1@a...>
Date: Sat, 23 Feb 2013 17:02:45 +0900 (JST)
Subject: [ruby-changes:27378] zzak:r39430 (trunk): * thread.c: Documentation for Thread#backtrace_locations
zzak 2013-02-23 16:52:46 +0900 (Sat, 23 Feb 2013) New Revision: 39430 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39430 Log: * thread.c: Documentation for Thread#backtrace_locations Modified files: trunk/ChangeLog trunk/thread.c Index: ChangeLog =================================================================== --- ChangeLog (revision 39429) +++ ChangeLog (revision 39430) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Feb 23 16:51:00 2013 Zachary Scott <zachary@z...> + + * thread.c: Documentation for Thread#backtrace_locations + Sat Feb 23 16:05:00 2013 Zachary Scott <zachary@z...> * vm.c: Typo in ObjectSpace::WeakMap overview Index: thread.c =================================================================== --- thread.c (revision 39429) +++ thread.c (revision 39430) @@ -4833,9 +4833,10 @@ rb_exec_recursive_outer(VALUE (*func) (V https://github.com/ruby/ruby/blob/trunk/thread.c#L4833 /* * call-seq: - * thr.backtrace -> array + * thread.backtrace -> array + * + * Returns the current backtrace of the target thread. * - * Returns the current back trace of the _thr_. */ static VALUE @@ -4844,6 +4845,17 @@ rb_thread_backtrace_m(int argc, VALUE *a https://github.com/ruby/ruby/blob/trunk/thread.c#L4845 return vm_thread_backtrace(argc, argv, thval); } +/* call-seq: + * thread.backtrace_locations(*args) -> array or nil + * + * Returns the execution stack for the target thread---an array containing + * backtrace location objects. + * + * See Thread::Backtrace::Location for more information. + * + * This method behaves similarly to Kernel#caller_locations except for a + * specific thread. + */ static VALUE rb_thread_backtrace_locations_m(int argc, VALUE *argv, VALUE thval) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/