I was poking around in gdbstub.c, trying to get it to work a bit better. I managed to drastically reduce the time it takes GDB to attach, among other things, by not trying to send a stop reply packet (and so not responding to GDB's queries). The only reason it worked before is that, after all the other replies had timed out a few times each, it issued a `?' query, and finally interpreted the stop reply packet as the answer to that... there are some other changes, hopefully for the better.