Revert "vm_dump.c: Do not show C backtrace on riscv"

This reverts commit 6985bfb72c.

Now it should work on riscv by the previous commit. [Bug #17609]
This commit is contained in:
Yusuke Endoh 2021-02-04 17:47:12 +09:00
Родитель 7d22060c14
Коммит f71659d47b
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);