This commit is contained in:
Jan Nieuwenhuizen 2017-11-15 20:35:03 +01:00
parent f8747a9f08
commit 84834f2793
1 changed files with 2 additions and 0 deletions

View File

@ -521,6 +521,7 @@ static void sig_error(int signum, siginfo_t *siginf, void *puc)
/* Generate a stack backtrace when a CPU exception occurs. */
static void set_exception_handler(void)
{
#if !__MESC__
struct sigaction sigact;
/* install TCC signal handlers to print debug info on fatal
runtime errors */
@ -532,6 +533,7 @@ static void set_exception_handler(void)
sigaction(SIGSEGV, &sigact, NULL);
sigaction(SIGBUS, &sigact, NULL);
sigaction(SIGABRT, &sigact, NULL);
#endif
}
/* ------------------------------------------------------------- */