Notify gdb of signal-stops when the signal becomes pending, not after entering the sighandler frame.