revision 1148:8e75fab17be8
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 1148:8e75fab17be8 |
parent | 1147:e04e4af64626 |
child | 1149:da6124fceec6 |
author | nkeynes |
date | Wed 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
TODO: detect gdb version at configure time and work off that instead
src/util.c | view | annotate | diff | log |
1.1 --- a/src/util.c Mon Nov 08 22:10:47 2010 +10001.2 +++ b/src/util.c Wed Nov 10 08:23:05 2010 +10001.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 us1.7 +#ifdef APPLE_BUILD1.8 + snprintf( buf, 128, "echo bt | gdb --quiet --pid=%d", getpid() );1.9 +#else1.10 snprintf( buf, 128, "gdb -batch -f --quiet --pid=%d -ex bt", getpid() );1.11 +#endif1.12 system(buf);1.14 abort();
.