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

ruby-changes:71005

From: Koichi <ko1@a...>
Date: Tue, 25 Jan 2022 16:44:20 +0900 (JST)
Subject: [ruby-changes:71005] a51e1cd682 (master): enable `RUBY_ON_BUG` on release build

https://git.ruby-lang.org/ruby.git/commit/?id=a51e1cd682

From a51e1cd682daeb76f201e62eaedcf6d51a18cffe Mon Sep 17 00:00:00 2001
From: Koichi Sasada <ko1@a...>
Date: Tue, 25 Jan 2022 15:44:38 +0900
Subject: enable `RUBY_ON_BUG` on release build

[Feature #18483]
---
 vm_dump.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/vm_dump.c b/vm_dump.c
index a98f5aaceee..a8bfbe97f2a 100644
--- a/vm_dump.c
+++ b/vm_dump.c
@@ -1008,7 +1008,6 @@ rb_dump_machine_register(const ucontext_t *ctx) https://github.com/ruby/ruby/blob/trunk/vm_dump.c#L1008
 void
 rb_vm_bugreport(const void *ctx)
 {
-#if RUBY_DEVEL
     const char *cmd = getenv("RUBY_ON_BUG");
     if (cmd) {
         char buf[0x100];
@@ -1018,7 +1017,6 @@ rb_vm_bugreport(const void *ctx) https://github.com/ruby/ruby/blob/trunk/vm_dump.c#L1017
             snprintf(buf, sizeof(buf), "Launching RUBY_ON_BUG command failed.");
         }
     }
-#endif
 
 #ifdef __linux__
 # define PROC_MAPS_NAME "/proc/self/maps"
-- 
cgit v1.2.1


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

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