[前][次][番号順一覧][スレッド一覧]

ruby-changes:27402

From: zzak <ko1@a...>
Date: Sun, 24 Feb 2013 13:48:46 +0900 (JST)
Subject: [ruby-changes:27402] zzak:r39453 (ruby_2_0_0): * thread.c: Documentation for Thread#backtrace_locations

zzak	2013-02-24 13:43:37 +0900 (Sun, 24 Feb 2013)

  New Revision: 39453

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39453

  Log:
    * thread.c: Documentation for Thread#backtrace_locations
      [Backport #7932]

  Modified files:
    branches/ruby_2_0_0/ChangeLog
    branches/ruby_2_0_0/thread.c

Index: ruby_2_0_0/ChangeLog
===================================================================
--- ruby_2_0_0/ChangeLog	(revision 39452)
+++ ruby_2_0_0/ChangeLog	(revision 39453)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ChangeLog#L1
+Sat Feb 23 16:51:00 2013  Zachary Scott  <zachary@z...>
+
+	* thread.c: Documentation for Thread#backtrace_locations
+	  [Backport #7932]
+
 Sat Feb 23 16:05:00 2013  Zachary Scott  <zachary@z...>
 
 	* vm.c: Typo in ObjectSpace::WeakMap overview [Backport #7933]
Index: ruby_2_0_0/thread.c
===================================================================
--- ruby_2_0_0/thread.c	(revision 39452)
+++ ruby_2_0_0/thread.c	(revision 39453)
@@ -4833,9 +4833,10 @@ rb_exec_recursive_outer(VALUE (*func) (V https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/thread.c#L4833
 
 /*
  *  call-seq:
- *     thr.backtrace    -> array
+ *     thr.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/ruby_2_0_0/thread.c#L4845
     return vm_thread_backtrace(argc, argv, thval);
 }
 
+/* call-seq:
+ *  thr.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/

[前][次][番号順一覧][スレッド一覧]