diff options
author | Christopher Faylor <me@cgf.cx> | 2006-02-06 18:24:11 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2006-02-06 18:24:11 +0000 |
commit | 985d0e68c5f100a6996e43a08eff82981b558ec9 (patch) | |
tree | 295dce16374bf028f98c64d09bb3ef61fa89b9ad /winsup/cygwin/cygtls.h | |
parent | 125ff9be63714e51d9668a100193d1e63e645281 (diff) | |
download | cygnal-985d0e68c5f100a6996e43a08eff82981b558ec9.tar.gz cygnal-985d0e68c5f100a6996e43a08eff82981b558ec9.tar.bz2 cygnal-985d0e68c5f100a6996e43a08eff82981b558ec9.zip |
Always zero all elements of siginfo_t throughout.
* cygtls.h (_cygtls::thread_context): Declare new field.
(_cygtls::thread_id): Ditto.
(_cygtls::signal_exit): Move into this class.
(_cygtls::copy_context): Declare new function.
(_cygtls::signal_debugger): Ditto.
* cygtls.cc (_cygtls::init_thread): Fill out thread id field.
* exceptions.cc (exception): Change message when exception info is unknown.
Copy context to thread local storage.
(_cygtls::handle_exceptions): Avoid double test for fault_guarded. Reflect
move of signal_exit to _cygtls class.
(sigpacket::process): Copy context to thread local storage.
(_cygtls::signal_exit): Move to _cygtls class. Call signal_debugger to notify
debugger of exiting signal (WIP). Call stackdump here (WIP).
(_cygtls::copy_context): Define new function.
(_cygtls::signal_debugger): Ditto.
* tlsoffsets.h: Regenerate.
* include/cygwin.h (_fpstate): New internal structure.
(ucontext): Declare new structure (WIP).
(__COPY_CONTEXT_SIZE): New define.
* exceptions.cc (_cygtls::interrupt_setup): Clear "threadkill" field when there
is no sigwaiting thread.
(setup_handler): Move event handling into interrupt_setup.
Diffstat (limited to 'winsup/cygwin/cygtls.h')
-rw-r--r-- | winsup/cygwin/cygtls.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/winsup/cygwin/cygtls.h b/winsup/cygwin/cygtls.h index 6feee64d0..609eb9697 100644 --- a/winsup/cygwin/cygtls.h +++ b/winsup/cygwin/cygtls.h @@ -149,6 +149,8 @@ struct _cygtls sigset_t sigmask; sigset_t sigwait_mask; siginfo_t *sigwait_info; + struct ucontext thread_context; + DWORD thread_id; unsigned threadkill; siginfo_t infodata; struct pthread *tid; @@ -193,6 +195,9 @@ struct _cygtls static int handle_threadlist_exception (EXCEPTION_RECORD *e, exception_list *frame, CONTEXT *c, void *); void init_exception_handler (int (*) (EXCEPTION_RECORD *, exception_list *, CONTEXT *, void*)); void init_threadlist_exceptions (); + void signal_exit (int) __attribute__ ((noreturn, regparm(2))); + void copy_context (CONTEXT *) __attribute__ ((regparm(2))); + void signal_debugger (int) __attribute__ ((regparm(2))); #ifdef _THREAD_H operator HANDLE () const {return tid->win32_obj_id;} |