summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/exception.h
Commit message (Collapse)AuthorAgeFilesLines
* * exceptions.h (cygwin_exception::open_stackdumpfile): Move old function intoChristopher Faylor2014-01-081-2/+4
| | | | | | | | | class. (cygwin_exception::h): New member. (cygwin_exception::cygwin_exception): Initialize h to NULL. * exceptions.cc (cygwin_exception::open_stackdumpfile): Move into cygwin_exception class. Use 'h' class member. (cygwin_exception::dumpstack): Close stack dump file handle if opened.
* * exception.h: Fold in content of include/exceptions.h.Corinna Vinschen2013-10-271-7/+99
| | | | * include/exceptions.h: Remove.
* * exception.h (_exception_list): Drop redefinition for x86_64.Corinna Vinschen2013-10-261-4/+0
| | | | | * include/exceptions.h: Disable content for x86_64 since it's not using frame based exception handling anymore.
* * Merge in cygwin-64bit-branch.Corinna Vinschen2013-04-231-3/+29
|
* * cygtls.h (_cygtls::signal_exit): Delete from class.Christopher Faylor2013-01-021-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * exception.h (cygwin_exception): New class. (cygwin_exception::dumpstack): Declare new function. (cygwin_exception::context): Ditto. (cygwin_exception::dump_exception): Ditto. * exceptions.cc (cygwin_exception::dump_exception): Move into cygwin_exception class. Accommodate new variable names. (cygwin_exception::dumpstack): Ditto stackdump -> dumpstack. (exception::handle): Move andreas processing earlier. Defer signal processing decisions to the signal thread where they belong. Pass exception information to sig_send via new siginfo_t si_cyg field. (ctrl_c_handler): Wait for SIGHUP signal to be processed since it could cause a process exit and we don't want races with thread exit lock. (signal_exit): Move back here from sigproc.cc. Modify arguments and remove from sigpacket class. Decide when to dump core based on signal type. (sigpacket::process): Handle exiting signals in context of threads rather than in the signal thread. Signal debugger on non-Windows signals. Remove setup_signal_exit call. * sigproc.cc (no_signals_available): Remove argument. (signal_exit_code): Delete. (close_my_readsig): Ditto. (_cygtls::signal_exit): Move to exceptions.cc. (sigproc_terminate): Don't attempt to terminate signal thread. (setup_signal_exit): Delete. (exit_thread): Use new si_cyg entry in siginfo_t. (sig_send): Just use empty initializer for si. Accommodate change in no_signals_available argument. (wait_sig): Remove attempt to "go asynchronous" on process exit. Delete __SIGEXIT handling. Don't ever exit. * sigproc.h: Remove __SIGEXIT from signal enum. Renumber. * include/cygwin/signal.h (siginfo_t): Add si_cyg entry.
* * exception.h (stackdump): Declare.Christopher Faylor2012-02-121-4/+8
| | | | | | | * exceptions.cc (stackdump): Rework to perform all operations needed for a stackdump and to avoid recursion. (exception::handle): Use simplified stackdump interface. * sigproc.cc (signal::exit): Ditto. Delete now, uneeded declaration.
* * exception.h: Remove DEBUG_EXCEPTION left over debugging ifdef.Christopher Faylor2011-02-091-6/+1
| | | | * dll_init.cc: Fix typo in comment.
* * exception.h: Fix copyright.Christopher Faylor2010-03-011-1/+1
|
* Fix/delete inaccurate comments.Christopher Faylor2010-03-011-1/+1
|
* Update some copyrights.Christopher Faylor2010-02-281-0/+38
* cygtls.cc (_cygtls::call): Invoke new exception protection here. (_cygtls::init_thread): Remove conditionalized exception handler setup. (exception_list): Delete declaration. (_cygtls::init_exception_handler): Delete obsolete function. * cygtls.h: Remove (now) unneeded include. (_cygtls): Make this a real C++ class. (_cygtls::handle_exceptions): Remove. (_cygtls::init_exception_handler): Remove. (_cygtls::call2): Make private. (myfault::faulted): Remove unneeded parentheses. * dcrt0.cc (dll_crt0_1): Remove exception handler setup. * dlfcn.cc (dlopen): Ditto. (dlclose): Ditto. * dll_init.cc (dll_dllcrt0_1): Ditto. (dll_list::detach): Use new exception handler protection. * exceptions.cc (dump_exception): Rename to prevent confusion with new class. (exception::handle): Rename from _cygtls::handle_exceptions. Accommodate new exception class. Accommodate rename to dump_exception. * tlsoffsets.h: Regenerate.