Notify gdb of signal-stops when the signal becomes pending, not after en...

...tering the sighandler frame.

Resolves #108.