diff options
-rw-r--r-- | libc/unistd/abort.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/unistd/abort.c b/libc/unistd/abort.c index a3f8c54..58d620d 100644 --- a/libc/unistd/abort.c +++ b/libc/unistd/abort.c @@ -79,7 +79,12 @@ abort(void) /* temporary, for bug hunting */ /* seg fault seems to produce better debuggerd results than SIGABRT */ +#ifdef __mips__ + /* An access that will generate SIGSEGV rather than SIGBUS. */ + *((char*)0xdeadc0c0) = 39; +#else *((char*)0xdeadbaad) = 39; +#endif /* -- */ (void)kill(getpid(), SIGABRT); |