equal
deleted
inserted
replaced
692 struct sigaction oldAct; |
692 struct sigaction oldAct; |
693 sigaction(sig, (struct sigaction *)0, &oldAct); |
693 sigaction(sig, (struct sigaction *)0, &oldAct); |
694 if (oldAct.sa_sigaction != signalHandler) { |
694 if (oldAct.sa_sigaction != signalHandler) { |
695 void* sighand = oldAct.sa_sigaction ? CAST_FROM_FN_PTR(void*, oldAct.sa_sigaction) |
695 void* sighand = oldAct.sa_sigaction ? CAST_FROM_FN_PTR(void*, oldAct.sa_sigaction) |
696 : CAST_FROM_FN_PTR(void*, oldAct.sa_handler); |
696 : CAST_FROM_FN_PTR(void*, oldAct.sa_handler); |
697 warning("Unexpected Signal %d occured under user-defined signal handler %#lx", sig, (long)sighand); |
697 warning("Unexpected Signal %d occurred under user-defined signal handler %#lx", sig, (long)sighand); |
698 } |
698 } |
699 } |
699 } |
700 |
700 |
701 if (pc == NULL && uc != NULL) { |
701 if (pc == NULL && uc != NULL) { |
702 pc = (address) uc->uc_mcontext.gregs[REG_PC]; |
702 pc = (address) uc->uc_mcontext.gregs[REG_PC]; |