Handle SIGTRAP and notify gdb on signal-stop.

Aaaaand of course the most important part of this, being able to break on SIGTRAP-generating instructions, doesn't work because gdb is too dumb.  Will see what hackery is required in a followup.