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

ruby-changes:9272

From: yugui <ko1@a...>
Date: Wed, 17 Dec 2008 15:15:18 +0900 (JST)
Subject: [ruby-changes:9272] Ruby:r20809 (ruby_1_9_1): merges r20742 from trunk into ruby_1_9_1.

yugui	2008-12-17 15:14:59 +0900 (Wed, 17 Dec 2008)

  New Revision: 20809

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

  Log:
    merges r20742 from trunk into ruby_1_9_1.
    * vm.c (vm_backtrace): defaults to script name for C functions.

  Modified files:
    branches/ruby_1_9_1/ChangeLog
    branches/ruby_1_9_1/vm.c

Index: ruby_1_9_1/ChangeLog
===================================================================
--- ruby_1_9_1/ChangeLog	(revision 20808)
+++ ruby_1_9_1/ChangeLog	(revision 20809)
@@ -1,3 +1,7 @@
+Mon Dec 15 11:35:27 2008  Nobuyoshi Nakada  <nobu@r...>
+
+	* vm.c (vm_backtrace): defaults to script name for C functions.
+
 Mon Dec 15 11:32:18 2008  Nobuyoshi Nakada  <nobu@r...>
 
 	* ruby.c (rubylib_mangled_path, rubylib_mangled_path2): cannot use
Index: ruby_1_9_1/vm.c
===================================================================
--- ruby_1_9_1/vm.c	(revision 20808)
+++ ruby_1_9_1/vm.c	(revision 20809)
@@ -704,7 +704,7 @@
     }
 
     ary = vm_backtrace_each(th, RUBY_VM_NEXT_CONTROL_FRAME(cfp),
-			    top_of_cfp, "", 0, ary);
+			    top_of_cfp, RSTRING_PTR(th->vm->progname), 0, ary);
     return ary;
 }
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

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