mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 20:39:33 +08:00
Initialize context before RtlContextCapture
* exceptions.cc (call_signal_handler): Zero initialize context and set context flags, as RlCaptureContext doesn't. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
This commit is contained in:
parent
19dc6ee82c
commit
65c071bc4d
@ -1,3 +1,8 @@
|
|||||||
|
2015-04-04 Jon TURNEY <jon.turney@dronecode.org.uk>
|
||||||
|
|
||||||
|
* exceptions.cc (call_signal_handler): Zero initialize context and set
|
||||||
|
context flags, as RlCaptureContext doesn't.
|
||||||
|
|
||||||
2015-04-09 Corinna Vinschen <corinna@vinschen.de>
|
2015-04-09 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* fhandler_dsp.cc (fhandler_dev_dsp::open): Call open_null.
|
* fhandler_dsp.cc (fhandler_dev_dsp::open): Call open_null.
|
||||||
|
@ -1496,8 +1496,12 @@ _cygtls::call_signal_handler ()
|
|||||||
if (thissi.si_cyg)
|
if (thissi.si_cyg)
|
||||||
memcpy (&thiscontext.uc_mcontext, ((cygwin_exception *)thissi.si_cyg)->context(), sizeof(CONTEXT));
|
memcpy (&thiscontext.uc_mcontext, ((cygwin_exception *)thissi.si_cyg)->context(), sizeof(CONTEXT));
|
||||||
else
|
else
|
||||||
RtlCaptureContext ((CONTEXT *)&thiscontext.uc_mcontext);
|
{
|
||||||
/* FIXME: Really this should be the context which the signal interrupted? */
|
/* FIXME: Really this should be the context which the signal interrupted? */
|
||||||
|
memset(&thiscontext.uc_mcontext, 0, sizeof(struct __mcontext));
|
||||||
|
thiscontext.uc_mcontext.ctxflags = CONTEXT_FULL;
|
||||||
|
RtlCaptureContext ((CONTEXT *)&thiscontext.uc_mcontext);
|
||||||
|
}
|
||||||
|
|
||||||
/* FIXME: If/when sigaltstack is implemented, this will need to do
|
/* FIXME: If/when sigaltstack is implemented, this will need to do
|
||||||
something more complicated */
|
something more complicated */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user