Thread with 10 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

the return on investment from implementing a GDB server in your emulator is incredible. my implementation is like 300 lines and does the bare minimum (memory and register read/write, step and continue), and now I have breakpoints, arbitrary C expression prints, disassembly view…

Open thread at this post