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

ruby-changes:17965

From: naruse <ko1@a...>
Date: Tue, 30 Nov 2010 17:06:31 +0900 (JST)
Subject: [ruby-changes:17965] Ruby:r29982 (trunk): * vm_dump.c: undef HAVE_BACKTRACE when the OS is FreeBSD (in other

naruse	2010-11-30 17:06:22 +0900 (Tue, 30 Nov 2010)

  New Revision: 29982

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

  Log:
    * vm_dump.c: undef HAVE_BACKTRACE when the OS is FreeBSD (in other
      words backtrace() is libexecinfo) and it is optimized.
      This temporary hack should be also applied to other libexecinfo
      environments.

  Modified files:
    trunk/ChangeLog
    trunk/vm_dump.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 29981)
+++ ChangeLog	(revision 29982)
@@ -1,3 +1,10 @@
+Tue Nov 30 16:29:19 2010  NARUSE, Yui  <naruse@r...>
+
+	* vm_dump.c: undef HAVE_BACKTRACE when the OS is FreeBSD (in other
+	  words backtrace() is libexecinfo) and it is optimized.
+	  This temporary hack should be also applied to other libexecinfo
+	  environments.
+
 Tue Nov 30 16:23:23 2010  NARUSE, Yui  <naruse@r...>
 
 	* lib/net/http.rb: improve rdoc.
Index: vm_dump.c
===================================================================
--- vm_dump.c	(revision 29981)
+++ vm_dump.c	(revision 29982)
@@ -585,6 +585,9 @@
     return 0;
 }
 
+#if defined(__FreeBSD__) && defined(__OPTIMIZE__)
+#undef HAVE_BACKTRACE
+#endif
 #if HAVE_BACKTRACE
 # include <execinfo.h>
 #elif defined(_WIN32)

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

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