diff --git a/vm_dump.c b/vm_dump.c index 2374bccbd1..23f0e571cf 100644 --- a/vm_dump.c +++ b/vm_dump.c @@ -818,6 +818,15 @@ rb_vm_bugreport(void) fputs("\n", stderr); } +#if HAVE_BACKTRACE || defined(_WIN32) + fprintf(stderr, "-- C level backtrace information " + "-------------------------------------------\n"); + rb_print_backtrace(); + + + fprintf(stderr, "\n"); +#endif /* HAVE_BACKTRACE */ + if (other_runtime_info || vm) { fprintf(stderr, "-- Other runtime information " "-----------------------------------------------\n\n"); @@ -897,14 +906,5 @@ rb_vm_bugreport(void) fprintf(stderr, "\n"); } #endif /* __FreeBSD__ */ -#if HAVE_BACKTRACE || defined(_WIN32) - fprintf(stderr, "-- C level backtrace information " - "-------------------------------------------\n"); - rb_print_backtrace(); - - - fprintf(stderr, "\n"); -#endif /* HAVE_BACKTRACE */ - } }