* thread.cc (thread_init_wrapper): Use _REENT_INIT to initialize the reent
structure of newlib. * sigproc.h (sig_send): Add exception parameter to sig_send. * sigproc.cc (sig_send): Ditto. Use it when setting frame info. * exceptions.cc (handle_exceptions): Use exception flag when calling sig_send.
This commit is contained in:
@@ -631,7 +631,7 @@ sigproc_terminate (void)
|
||||
* completed before returning.
|
||||
*/
|
||||
int __stdcall
|
||||
sig_send (_pinfo *p, int sig, DWORD ebp)
|
||||
sig_send (_pinfo *p, int sig, DWORD ebp, bool exception)
|
||||
{
|
||||
int rc = 1;
|
||||
DWORD tid = GetCurrentThreadId ();
|
||||
@@ -680,7 +680,7 @@ sig_send (_pinfo *p, int sig, DWORD ebp)
|
||||
{
|
||||
thiscatch = sigcatch_main;
|
||||
thiscomplete = sigcomplete_main;
|
||||
thisframe.set (mainthread, ebp, 1);
|
||||
thisframe.set (mainthread, ebp, exception);
|
||||
}
|
||||
}
|
||||
else if (!(thiscatch = getsem (p, "sigcatch", 0, 0)))
|
||||
|
Reference in New Issue
Block a user