Push the debugging in zm_signal further down

This commit is contained in:
Kfir Itzhak 2013-10-07 11:27:53 +03:00
parent 2cb65c6430
commit 25297bde73
1 changed files with 6 additions and 9 deletions

View File

@ -50,20 +50,17 @@ RETSIGTYPE zm_die_handler(int signal)
void *cr2 = 0;
void *ip = 0;
// Print signal information
Error("Got signal %d (%s), crashing", signal, strsignal(signal));
#if ( HAVE_SIGINFO_T && HAVE_UCONTEXT_T )
Debug(1,
"Signal information: number %d code %d errno %d pid %d uid %d status %d",
signal, info->si_code, info->si_errno, info->si_pid, info->si_uid,
info->si_status);
#endif
// Get signal address and instruction pointer if available
// Get more information if available
#if ( HAVE_SIGINFO_T && HAVE_UCONTEXT_T )
if (info && context) {
Debug(1,
"Signal information: number %d code %d errno %d pid %d uid %d status %d",
signal, info->si_code, info->si_errno, info->si_pid,
info->si_uid, info->si_status);
ucontext_t *uc = (ucontext_t *) context;
#if defined(__x86_64__)
cr2 = info->si_addr;