* exceptions.cc (exception::handle): Resurrect accidentally lost

patch from 2009-07-22: Set si_addr according to POSIX for SIGSEGV.
This commit is contained in:
Corinna Vinschen 2013-06-02 09:11:09 +00:00
parent 01ab5147dd
commit fa35814af1
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-06-02 Corinna Vinschen <corinna@vinschen.de>
* exceptions.cc (exception::handle): Resurrect accidentally lost
patch from 2009-07-22: Set si_addr according to POSIX for SIGSEGV.
2013-05-31 Corinna Vinschen <corinna@vinschen.de>
* include/sys/socket.h: Move SHUT_xx definitoins from here...

View File

@ -753,7 +753,8 @@ exception::handle (EXCEPTION_RECORD *e, exception_list *frame, CONTEXT *in, void
}
cygwin_exception exc (framep, in, e);
si.si_cyg = (void *) &exc;
si.si_addr = (void *) in->_GR(ip);
si.si_addr = (si.si_signo == SIGSEGV || si.si_signo == SIGBUS)
? (void *) e->ExceptionInformation[1] : (void *) in->_GR(ip);
me.incyg++;
sig_send (NULL, si, &me); /* Signal myself */
me.incyg--;