Handle the gdb step-with-sig command as well as we can.

Resolves #503.