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

ruby-changes:17472

From: nobu <ko1@a...>
Date: Wed, 13 Oct 2010 11:04:18 +0900 (JST)
Subject: [ruby-changes:17472] Ruby:r29477 (trunk): * debug.c (ruby_set_debug_option): define always for binary

nobu	2010-10-13 11:04:10 +0900 (Wed, 13 Oct 2010)

  New Revision: 29477

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

  Log:
    * debug.c (ruby_set_debug_option): define always for binary
      compatibility with debug env enabled binary.
    
    * signal.c (ruby_enable_coredump): ditto.

  Modified files:
    trunk/ChangeLog
    trunk/debug.c
    trunk/debug.h
    trunk/signal.c

Index: debug.c
===================================================================
--- debug.c	(revision 29476)
+++ debug.c	(revision 29477)
@@ -136,7 +136,6 @@
     /* */
 }
 
-#ifdef RUBY_DEBUG_ENV
 static void
 set_debug_option(const char *str, int len, void *arg)
 {
@@ -161,4 +160,3 @@
 {
     ruby_each_words(str, set_debug_option, 0);
 }
-#endif
Index: debug.h
===================================================================
--- debug.h	(revision 29476)
+++ debug.h	(revision 29477)
@@ -32,10 +32,7 @@
 int   ruby_debug_print_indent(int level, int debug_level, int indent_level);
 void  ruby_debug_breakpoint(void);
 void  ruby_debug_gc_check_func(void);
-
-#ifdef RUBY_DEBUG_ENV
 void ruby_set_debug_option(const char *str);
-#endif
 
 #if defined __GNUC__ && __GNUC__ >= 4
 #pragma GCC visibility pop
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 29476)
+++ ChangeLog	(revision 29477)
@@ -1,3 +1,10 @@
+Wed Oct 13 11:04:03 2010  Nobuyoshi Nakada  <nobu@r...>
+
+	* debug.c (ruby_set_debug_option): define always for binary
+	  compatibility with debug env enabled binary.
+
+	* signal.c (ruby_enable_coredump): ditto.
+
 Wed Oct 13 10:52:51 2010  Nobuyoshi Nakada  <nobu@r...>
 
 	* include/ruby/ruby.h (ruby_executable_node): missing prototype.
Index: signal.c
===================================================================
--- signal.c	(revision 29476)
+++ signal.c	(revision 29477)
@@ -1041,8 +1041,9 @@
 }
 
 
-#ifdef RUBY_DEBUG_ENV
 int ruby_enable_coredump = 0;
+#ifndef RUBY_DEBUG_ENV
+#define ruby_enable_coredump 0
 #endif
 
 /*
@@ -1116,18 +1117,15 @@
     install_sighandler(SIGUSR2, sighandler);
 #endif
 
-#ifdef RUBY_DEBUG_ENV
-    if (!ruby_enable_coredump)
-#endif
-    {
+    if (!ruby_enable_coredump) {
 #ifdef SIGBUS
-    install_sighandler(SIGBUS, sigbus);
+	install_sighandler(SIGBUS, sigbus);
 #endif
 #ifdef SIGSEGV
 # ifdef USE_SIGALTSTACK
-    rb_register_sigaltstack(GET_THREAD());
+	rb_register_sigaltstack(GET_THREAD());
 # endif
-    install_sighandler(SIGSEGV, (sighandler_t)sigsegv);
+	install_sighandler(SIGSEGV, (sighandler_t)sigsegv);
 #endif
     }
 #ifdef SIGPIPE

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

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