Search
lxdream.org :: lxdream :: r1148:8e75fab17be8
lxdream 0.9.1
released Jun 29
Download Now
changeset1148:8e75fab17be8
parent1147:e04e4af64626
child1149:da6124fceec6
authornkeynes
dateWed Nov 10 08:23:05 2010 +1000 (13 years ago)
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
src/util.c
1.1 --- a/src/util.c Mon Nov 08 22:10:47 2010 +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();
.