985d0e68c5
* 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.
134 lines
3.5 KiB
C
134 lines
3.5 KiB
C
//;# autogenerated: Do not edit.
|
|
|
|
//; $tls::sizeof__cygtls = 4212;
|
|
//; $tls::func = -4212;
|
|
//; $tls::pfunc = 0;
|
|
//; $tls::saved_errno = -4208;
|
|
//; $tls::psaved_errno = 4;
|
|
//; $tls::sa_flags = -4204;
|
|
//; $tls::psa_flags = 8;
|
|
//; $tls::oldmask = -4200;
|
|
//; $tls::poldmask = 12;
|
|
//; $tls::deltamask = -4196;
|
|
//; $tls::pdeltamask = 16;
|
|
//; $tls::event = -4192;
|
|
//; $tls::pevent = 20;
|
|
//; $tls::errno_addr = -4188;
|
|
//; $tls::perrno_addr = 24;
|
|
//; $tls::initialized = -4184;
|
|
//; $tls::pinitialized = 28;
|
|
//; $tls::sigmask = -4180;
|
|
//; $tls::psigmask = 32;
|
|
//; $tls::sigwait_mask = -4176;
|
|
//; $tls::psigwait_mask = 36;
|
|
//; $tls::sigwait_info = -4172;
|
|
//; $tls::psigwait_info = 40;
|
|
//; $tls::thread_context = -4168;
|
|
//; $tls::pthread_context = 44;
|
|
//; $tls::thread_id = -3956;
|
|
//; $tls::pthread_id = 256;
|
|
//; $tls::threadkill = -3952;
|
|
//; $tls::pthreadkill = 260;
|
|
//; $tls::infodata = -3948;
|
|
//; $tls::pinfodata = 264;
|
|
//; $tls::tid = -3800;
|
|
//; $tls::ptid = 412;
|
|
//; $tls::local_clib = -3796;
|
|
//; $tls::plocal_clib = 416;
|
|
//; $tls::__dontuse = -3796;
|
|
//; $tls::p__dontuse = 416;
|
|
//; $tls::locals = -2732;
|
|
//; $tls::plocals = 1480;
|
|
//; $tls::_ctinfo = -1100;
|
|
//; $tls::p_ctinfo = 3112;
|
|
//; $tls::el = -1096;
|
|
//; $tls::pel = 3116;
|
|
//; $tls::andreas = -1088;
|
|
//; $tls::pandreas = 3124;
|
|
//; $tls::wq = -1080;
|
|
//; $tls::pwq = 3132;
|
|
//; $tls::prev = -1052;
|
|
//; $tls::pprev = 3160;
|
|
//; $tls::next = -1048;
|
|
//; $tls::pnext = 3164;
|
|
//; $tls::sig = -1044;
|
|
//; $tls::psig = 3168;
|
|
//; $tls::incyg = -1040;
|
|
//; $tls::pincyg = 3172;
|
|
//; $tls::spinning = -1036;
|
|
//; $tls::pspinning = 3176;
|
|
//; $tls::stacklock = -1032;
|
|
//; $tls::pstacklock = 3180;
|
|
//; $tls::stackptr = -1028;
|
|
//; $tls::pstackptr = 3184;
|
|
//; $tls::stack = -1024;
|
|
//; $tls::pstack = 3188;
|
|
//; $tls::padding = 0;
|
|
//; $tls::ppadding = 4212;
|
|
//; __DATA__
|
|
|
|
#define tls_func (-4212)
|
|
#define tls_pfunc (0)
|
|
#define tls_saved_errno (-4208)
|
|
#define tls_psaved_errno (4)
|
|
#define tls_sa_flags (-4204)
|
|
#define tls_psa_flags (8)
|
|
#define tls_oldmask (-4200)
|
|
#define tls_poldmask (12)
|
|
#define tls_deltamask (-4196)
|
|
#define tls_pdeltamask (16)
|
|
#define tls_event (-4192)
|
|
#define tls_pevent (20)
|
|
#define tls_errno_addr (-4188)
|
|
#define tls_perrno_addr (24)
|
|
#define tls_initialized (-4184)
|
|
#define tls_pinitialized (28)
|
|
#define tls_sigmask (-4180)
|
|
#define tls_psigmask (32)
|
|
#define tls_sigwait_mask (-4176)
|
|
#define tls_psigwait_mask (36)
|
|
#define tls_sigwait_info (-4172)
|
|
#define tls_psigwait_info (40)
|
|
#define tls_thread_context (-4168)
|
|
#define tls_pthread_context (44)
|
|
#define tls_thread_id (-3956)
|
|
#define tls_pthread_id (256)
|
|
#define tls_threadkill (-3952)
|
|
#define tls_pthreadkill (260)
|
|
#define tls_infodata (-3948)
|
|
#define tls_pinfodata (264)
|
|
#define tls_tid (-3800)
|
|
#define tls_ptid (412)
|
|
#define tls_local_clib (-3796)
|
|
#define tls_plocal_clib (416)
|
|
#define tls___dontuse (-3796)
|
|
#define tls_p__dontuse (416)
|
|
#define tls_locals (-2732)
|
|
#define tls_plocals (1480)
|
|
#define tls__ctinfo (-1100)
|
|
#define tls_p_ctinfo (3112)
|
|
#define tls_el (-1096)
|
|
#define tls_pel (3116)
|
|
#define tls_andreas (-1088)
|
|
#define tls_pandreas (3124)
|
|
#define tls_wq (-1080)
|
|
#define tls_pwq (3132)
|
|
#define tls_prev (-1052)
|
|
#define tls_pprev (3160)
|
|
#define tls_next (-1048)
|
|
#define tls_pnext (3164)
|
|
#define tls_sig (-1044)
|
|
#define tls_psig (3168)
|
|
#define tls_incyg (-1040)
|
|
#define tls_pincyg (3172)
|
|
#define tls_spinning (-1036)
|
|
#define tls_pspinning (3176)
|
|
#define tls_stacklock (-1032)
|
|
#define tls_pstacklock (3180)
|
|
#define tls_stackptr (-1028)
|
|
#define tls_pstackptr (3184)
|
|
#define tls_stack (-1024)
|
|
#define tls_pstack (3188)
|
|
#define tls_padding (0)
|
|
#define tls_ppadding (4212)
|