Thread with 8 posts

jump to expanded post

hereโ€™s my review of the GDB Remote Serial Protocol, having implemented a small subset of it:

itโ€™sโ€ฆ fine. the docs lack a few details, but you can figure them out from reading the GDB source code and from seeing how GDB responds to your packets. Iโ€™m glad itโ€™s all ASCII.

Iโ€™m also glad it gracefully degrades. it assumes only the absolute minimum feature set. every single modern fancy feature is optional, because itโ€™ll query or probe for support before trying to use those.

wellโ€ฆ GDB will, at least. LLDB is another story ^^;;;;

Open thread at this post

using a real debugger is amazing, I can effectively insert debug prints into a binary:

(gdb) b *0x29a88
Breakpoint 1 at 0x29a88
(gdb) commands
Type commands for breakpoint(s) 1, one per line.
End with a line saying just "end".
>p *(char**)$r0
>continue
>end
(gdb) c
Open thread at this post