The attached patch implements the GDB Remote Serial Protocol for command receive as per the documentation provided at https://sourceware.org/gdb/onlinedocs/gdb/Remote-Protocol.html#Remote-Protocol and from inspection of remote.c in the gdb source (the documentation didn't clearly document whether the packet or the unescaped data were used for the checksum, turns out the packet data is used for the checksum, as expected).
get_maintainer.pl didn't find a maintainer for gdbstub.c, so I didn't cc any maintainers.
patch
Description: Binary data