diff options
Diffstat (limited to 'gdb/utils.c')
-rw-r--r-- | gdb/utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index c59c635..1c226d5 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -201,6 +201,11 @@ dump_core (void) setrlimit (RLIMIT_CORE, &rlim); #endif /* HAVE_SETRLIMIT */ + /* Ensure that the SIGABRT we're about to raise will immediately cause + GDB to exit and dump core, we don't want to trigger GDB's printing of + a backtrace to the console here. */ + signal (SIGABRT, SIG_DFL); + abort (); /* ARI: abort */ } |