mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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.
This commit is contained in:
parent
847e25975c
commit
6985bfb72c
1 changed files with 1 additions and 1 deletions
|
@ -755,7 +755,7 @@ rb_print_backtrace(void)
|
|||
#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);
|
||||
|
|
Loading…
Reference in a new issue