Skip to content

Commit

Permalink
Revert "vm_dump.c: Do not show C backtrace on riscv"
Browse files Browse the repository at this point in the history
This reverts commit 6985bfb.

Now it should work on riscv by the previous commit. [Bug #17609]
  • Loading branch information
mame committed Feb 4, 2021
1 parent 7d22060 commit f71659d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm_dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,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) && !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);
Expand Down

0 comments on commit f71659d

Please sign in to comment.