src/os_cpu/solaris_x86/vm/os_solaris_x86.cpp

changeset 1040
98cb887364d3
parent 1020
22e09c0f4b47
child 1063
7bb995fbd3c0
equal deleted inserted replaced
1039:ec59443af135 1040:98cb887364d3
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];

mercurial