diff options
author | Christopher Faylor <me@cgf.cx> | 2002-08-11 19:19:29 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-08-11 19:19:29 +0000 |
commit | 3cb62bd614c2960567f8b6ea643427daa39e8650 (patch) | |
tree | cad4777be13b616c13d5e4b9c7321d73339fdb61 /winsup/cygwin/assert.cc | |
parent | 2324fd5b91a7e9a50b3e2f494f02a7204720df9f (diff) | |
download | cygnal-3cb62bd614c2960567f8b6ea643427daa39e8650.tar.gz cygnal-3cb62bd614c2960567f8b6ea643427daa39e8650.tar.bz2 cygnal-3cb62bd614c2960567f8b6ea643427daa39e8650.zip |
* assert.cc (__assert): Call debugger on assertion failure if debugging.
* dcrt0.cc (dll_crt0_1): Just wait for signal thread to go live rather than
going through the overhead of invoking it.
* fork.cc (fork_child): Ditto.
* exceptions.cc (signal_fixup_after_fork): Call sigproc_init here.
* sigproc.cc (proc_can_be_signalled): Assume that the signal thread is live.
(sig_dispatch): Ditto.
(sig_send): Ditto.
(wait_for_sigthread): Renamed from "wait_for_me". Assume that wait_sig_inited
has been set and that this function is only called from the main thread.
* winsup.h (wait_for_sigthread): Declare new function.
Diffstat (limited to 'winsup/cygwin/assert.cc')
-rw-r--r-- | winsup/cygwin/assert.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/cygwin/assert.cc b/winsup/cygwin/assert.cc index 4c5a3b08f..fbce8753e 100644 --- a/winsup/cygwin/assert.cc +++ b/winsup/cygwin/assert.cc @@ -46,6 +46,9 @@ __assert (const char *file, int line, const char *failedexpr) failedexpr, file, line); } +#ifdef DEBUGGING + try_to_debug (); +#endif abort (); // FIXME: Someday this should work. /* NOTREACHED */ |