ruby-changes:60843
From: Yusuke <ko1@a...>
Date: Tue, 21 Apr 2020 00:00:18 +0900 (JST)
Subject: [ruby-changes:60843] 6985bfb72c (master): vm_dump.c: Do not show C backtrace on riscv
https://git.ruby-lang.org/ruby.git/commit/?id=6985bfb72c From 6985bfb72c8d7e7d94f1aad1f0902b602bbfa6da Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Mon, 20 Apr 2020 23:59:05 +0900 Subject: vm_dump.c: Do not show C backtrace on riscv Currently, objdump -W miniruby emits some errors on riscv, so I guess that DWARF is corrupted. diff --git a/vm_dump.c b/vm_dump.c index ad965ca..01f5449 100644 --- a/vm_dump.c +++ b/vm_dump.c @@ -755,7 +755,7 @@ rb_print_backtrace(void) https://github.com/ruby/ruby/blob/trunk/vm_dump.c#L755 #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) +#if (defined(USE_ELF) || defined(HAVE_MACH_O_LOADER_H)) && defined(HAVE_DLADDR) && !defined(__sparc) && !defined(__riscv) rb_dump_backtrace_with_lines(n, trace); #else char **syms = backtrace_symbols(trace, n); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/