--- a/src/util.c Sun Dec 20 21:01:03 2009 +1000 +++ b/src/util.c Wed Dec 08 18:33:23 2010 +1000 @@ -44,7 +44,11 @@ fprintf( stderr, "--- Aborting with signal %d ---\n", signo ); sh4_crashdump(); // Get gdb to print a nice backtrace for us +#ifdef APPLE_BUILD + snprintf( buf, 128, "echo bt | gdb --quiet --pid=%d", getpid() ); +#else snprintf( buf, 128, "gdb -batch -f --quiet --pid=%d -ex bt", getpid() ); +#endif system(buf); abort();