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

ruby-changes:27252

From: naruse <ko1@a...>
Date: Tue, 19 Feb 2013 06:47:03 +0900 (JST)
Subject: [ruby-changes:27252] naruse:r39304 (trunk): Correct condition of r39302

naruse	2013-02-19 06:46:00 +0900 (Tue, 19 Feb 2013)

  New Revision: 39304

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

  Log:
    Correct condition of r39302

  Modified files:
    trunk/vm_dump.c

Index: vm_dump.c
===================================================================
--- vm_dump.c	(revision 39303)
+++ vm_dump.c	(revision 39304)
@@ -424,18 +424,18 @@ rb_vmdebug_thread_dump_state(VALUE self) https://github.com/ruby/ruby/blob/trunk/vm_dump.c#L424
     return Qnil;
 }
 
-#ifndef HAVE_BACKTRACE
-#define HAVE_BACKTRACE 0
-#endif
-#ifdef BROKEN_BACKTRACE
-# undef HAVE_BACKTRACE
+#if defined(HAVE_BACKTRACE)
+# if HAVE_LIBUNWIND
+#  undef backtrace
+#  define backtrace unw_backtrace
+# elif defined(BROKEN_BACKTRACE)
+#  undef HAVE_BACKTRACE
+#  define HAVE_BACKTRACE 0
+# endif
+#else
 # define HAVE_BACKTRACE 0
 #endif
-#if HAVE_LIBUNWIND
-# define HAVE_BACKTRACE 1
-# undef backtrace
-# define backtrace unw_backtrace
-#endif
+
 #if HAVE_BACKTRACE
 # include <execinfo.h>
 #elif defined(_WIN32)

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

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