Search
lxdream.org :: lxdream/src/util.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/util.c
changeset 1148:8e75fab17be8
prev1092:7c4ffe27e7b5
next1239:be3121267597
author nkeynes
date Wed Nov 10 08:23:05 2010 +1000 (13 years ago)
permissions -rw-r--r--
last change 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
file annotate diff log raw
1.1 --- a/src/util.c Sun Dec 20 21:01:03 2009 +1000
1.2 +++ b/src/util.c Wed Nov 10 08:23:05 2010 +1000
1.3 @@ -44,7 +44,11 @@
1.4 fprintf( stderr, "--- Aborting with signal %d ---\n", signo );
1.5 sh4_crashdump();
1.6 // Get gdb to print a nice backtrace for us
1.7 +#ifdef APPLE_BUILD
1.8 + snprintf( buf, 128, "echo bt | gdb --quiet --pid=%d", getpid() );
1.9 +#else
1.10 snprintf( buf, 128, "gdb -batch -f --quiet --pid=%d -ex bt", getpid() );
1.11 +#endif
1.12 system(buf);
1.13
1.14 abort();
.