ruby-changes:65139
From: Yusuke <ko1@a...>
Date: Thu, 4 Feb 2021 17:48:20 +0900 (JST)
Subject: [ruby-changes:65139] f71659d47b (master): Revert "vm_dump.c: Do not show C backtrace on riscv"
https://git.ruby-lang.org/ruby.git/commit/?id=f71659d47b From f71659d47bacdaeb57689de7274413e64937637c Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Thu, 4 Feb 2021 17:47:12 +0900 Subject: Revert "vm_dump.c: Do not show C backtrace on riscv" This reverts commit 6985bfb72c8d7e7d94f1aad1f0902b602bbfa6da. Now it should work on riscv by the previous commit. [Bug #17609] --- vm_dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm_dump.c b/vm_dump.c index ae3cbb4..279164c 100644 --- a/vm_dump.c +++ b/vm_dump.c @@ -756,7 +756,7 @@ rb_print_backtrace(void) https://github.com/ruby/ruby/blob/trunk/vm_dump.c#L756 #define MAX_NATIVE_TRACE 1024 static void *trace[MAX_NATIVE_TRACE]; int n = (int)backtrace(trace, MAX_NATIVE_TRACE); -#if (defined(USE_ELF) || defined(HAVE_MACH_O_LOADER_H)) && defined(HAVE_DLADDR) && !defined(__sparc) && !defined(__riscv) +#if (defined(USE_ELF) || defined(HAVE_MACH_O_LOADER_H)) && defined(HAVE_DLADDR) && !defined(__sparc) rb_dump_backtrace_with_lines(n, trace); #else char **syms = backtrace_symbols(trace, n); -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/