New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using gdbstub
for enhanced GDB server functionality?
#608
Comments
Thanks for reaching out! Using gdbstub for the protocol sounds interesting, and would make our life easier. From a quick look at the API, it seems that the |
Thanks for the quick response! Given that the most common use-case of That said, you're not the first to bring up the need for more dynamic In a nutshell, the current Most of these caveats are relatively minor perf-related issues (which should be totally acceptable unless you really care about squeezing every last drop of performance out of the GDB RSP). The most unfortunate caveat is that you'll be losing those ergonomic benefits I mentioned above, and will require that GDB raw register data is de/serialized at the |
I use |
1125: Port gdb-server to use the gdbstub crate r=Yatekii a=thefaxman * Replace existing GDB parsing logic with gdbstub * Add support for multi-core debugging via the multi-threaded gdbstub interfaces * Fix session setup to run DebugCoreStart on each core instead of just the first one Closes #608 Signed-off-by: Ryan Fairfax <ryan@thefaxman.net> Co-authored-by: Ryan Fairfax <ryan@thefaxman.net>
Disclaimer: I am the author of the
gdbstub
crate, so this is a totally shameless plug.Right at the tail end of one of Ferrous Systems most recent blog posts, it mentioned that
probe-rs
's GDB server functionality is somewhat immature.Might I suggest swapping out
probe-rs
's home-grown GDB Remote Serial Protocol implementation with thegdbstub
crate? It implements substantially more of the GDB RSP thanprobe-rs
's current in-tree implementation, and is already being used by several other projects. A full list of supported GDB protocol features can be found here.I wasn't sure if
gdbstub
was on your radar, so I thought I'd file an issue just in case!Oh, and please let me know if there are any glaring issues with the
gdbstub
API / functionality that would preclude it from being used inprobe-rs
. I'm very open to feedback, since my long-term goal is to makegdbstub
the "go to" GDB RSP crate in the Rust ecosystem!The text was updated successfully, but these errors were encountered: