* 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:
Christopher Faylor
2001-04-27 18:50:59 +00:00
parent 9572ecf979
commit cba63823f8
5 changed files with 18 additions and 11 deletions

View File

@@ -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)))