diff options
author | Christopher Faylor <me@cgf.cx> | 2006-04-22 23:09:44 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2006-04-22 23:09:44 +0000 |
commit | bdcec0d9792584a0ca985f9cf829be5779c6ca19 (patch) | |
tree | 6439fdf2f5912b04def274c220cb8312a4f4dcef /winsup/cygwin/signal.cc | |
parent | 3a83d3a84947cb4774b3590eb96f019811ec5f0d (diff) | |
download | newlib-bdcec0d9792584a0ca985f9cf829be5779c6ca19.zip newlib-bdcec0d9792584a0ca985f9cf829be5779c6ca19.tar.gz newlib-bdcec0d9792584a0ca985f9cf829be5779c6ca19.tar.bz2 |
* abort.cc (abort): Set incyg manually to help get a reliable gdb stack trace.
* cygwin.din (abort): Make NOSIGFE.
Diffstat (limited to 'winsup/cygwin/signal.cc')
-rw-r--r-- | winsup/cygwin/signal.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/cygwin/signal.cc b/winsup/cygwin/signal.cc index bcaf6ed..75eea49 100644 --- a/winsup/cygwin/signal.cc +++ b/winsup/cygwin/signal.cc @@ -25,6 +25,7 @@ details. */ #include "fhandler.h" #include "dtable.h" #include "cygheap.h" +#include "cygtls.h" int sigcatchers; /* FIXME: Not thread safe. */ @@ -343,7 +344,9 @@ abort (void) sigdelset (&sig_mask, SIGABRT); set_signal_mask (sig_mask, myself->getsigmask ()); + _my_tls.incyg++; raise (SIGABRT); + _my_tls.incyg--; _my_tls.call_signal_handler (); /* Call any signal handler */ do_exit (SIGABRT); /* signal handler didn't exit. Goodbye. */ } |