# HG changeset patch # User nkeynes # Date 1289341385 -36000 # Node ID 8e75fab17be898f6f8dfb8f1c5700f259bc9d494 # Parent e04e4af646263765c171e8cbefdb6453862e8b8d Add variant gdb invocation for OS X (which ships with a much older gdb). TODO: detect gdb version at configure time and work off that instead --- a/src/util.c Mon Nov 08 22:10:47 2010 +1000 +++ b/src/util.c Wed Nov 10 08:23:05 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();