diff options
author | Christopher Faylor <me@cgf.cx> | 2010-02-26 21:36:31 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2010-02-26 21:36:31 +0000 |
commit | d5d5bf4dd5609dd29e511d688e317b2f0f1987ca (patch) | |
tree | 01fa2b080346cfda5b393bc54c0ab387524c2f33 /winsup/cygwin/exceptions.cc | |
parent | b6336c95b4c1d512d4cb139e7b97ec4d1ef843fc (diff) | |
download | cygnal-d5d5bf4dd5609dd29e511d688e317b2f0f1987ca.tar.gz cygnal-d5d5bf4dd5609dd29e511d688e317b2f0f1987ca.tar.bz2 cygnal-d5d5bf4dd5609dd29e511d688e317b2f0f1987ca.zip |
* cygtls.h (_cygtls::init_exception_handler): Eliminate argument.
(_cygtls::andreas): Convert to a pointer.
(san): Convert to a real class with methods. Use a linked list to keep track
of previous handlers on the "stack".
(myfault): Rewrite to use new san class rather than calling directly into
_cygtls.
* cygtls.cc (_cygtls::init_exception_handler): Just assume that we're always
using the standard exception handler.
(_cygtls::init_thread): Reflect loss of argument to init_exception_handler.
* dcrt0.cc (dll_crt0_1): Ditto.
* dfcn.cc (dlopen): Ditto.
(dlclose): Reset the exception handler after FreeLibrary.
* dll_init.cc (dll_list::detach): Make sure that the exception handler is
initialized before calling destructors.
* exceptions.cc (_cygtls::handle_exceptions): Accommodate new andreas pointer.
* thread.cc (verifyable_object_isvalid): Pass objectptr to faulted for explicit
NULL pointer checking.
* tlsoffsets.h: Regenerate.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r-- | winsup/cygwin/exceptions.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index e1bb7056c..978fd7729 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -622,8 +622,8 @@ _cygtls::handle_exceptions (EXCEPTION_RECORD *e, exception_list *frame, CONTEXT break; } - if (me.fault_guarded ()) - me.return_from_fault (); + if (me.andreas) + me.andreas->leave (); /* Return from a "san" caught fault */ me.copy_context (in); |