This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
[PATCH 0/3] Make detailed exception information available to signal handlers (v4)
- From: Jon TURNEY <jon dot turney at dronecode dot org dot uk>
- To: cygwin-patches at cygwin dot com
- Cc: Jon TURNEY <jon dot turney at dronecode dot org dot uk>
- Date: Wed, 1 Apr 2015 14:19:30 +0100
- Subject: [PATCH 0/3] Make detailed exception information available to signal handlers (v4)
- Authentication-results: sourceware.org; auth=none
Thanks for your comments so far.
Changes since v3:
Rename cr2 member of struct __ucontext to ctxflags
Add cr2 member after oldmask to struct __ucontext
Keep __COPY_CONSTRUCT_SIZE as it's historical value
Add uc_flags member to ucontext_t in case of future need
Set uc_sigmask
Use RtlCopyContext() if we don't have a context
Add a FIXME for uc_stack mentioning sigaltstack
Simplify additions to call_signal_handler() since a ucontext_t is now always passed
Just include signal.h in sys/ucontext.h
Change CW_EXCEPTION_RECORD_FROM_SIGINFO_T to return a copy of the EXCEPTION_RECORD
#define CW_EXCEPTION_RECORD_FROM_SIGINFO_T
Jon TURNEY (3):
Rename struct ucontext to struct __mcontext
Provide ucontext to signal handlers
Add cygwin_internal() operation to retrieve the EXCEPTION_RECORD from
a siginfo_t *
winsup/cygwin/ChangeLog | 21 +++++++++++++++++++++
winsup/cygwin/exception.h | 1 +
winsup/cygwin/exceptions.cc | 22 ++++++++++++++++++++--
winsup/cygwin/external.cc | 14 ++++++++++++++
winsup/cygwin/include/cygwin/signal.h | 28 +++++++++++++++++++---------
winsup/cygwin/include/sys/cygwin.h | 5 ++++-
winsup/cygwin/include/sys/ucontext.h | 26 ++++++++++++++++++++++++++
winsup/cygwin/include/ucontext.h | 16 ++++++++++++++++
8 files changed, 121 insertions(+), 12 deletions(-)
create mode 100644 winsup/cygwin/include/sys/ucontext.h
create mode 100644 winsup/cygwin/include/ucontext.h
--
2.1.4