-
Notifications
You must be signed in to change notification settings - Fork 165
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
Support attaching to QEMU, kgdb, and other gdbstub targets #172
Comments
This would also likely unlock support for https://github.com/rr-debugger/rr, which I have found to be an invaluable tool when debugging user-space issues. |
One of the open questions for many of these options is going to be, how can we get the vmcoreinfo metadata for these targets. With #396, we will be able to let people manually set the vmcoreinfo prior to attaching, but it would be better if drgn could get that information automatically from the target. Maybe a good place to get started is to add the ability to get vmcoreinfo from some of these backends where possible? EG QEMU's gdbstub could be extended to provide the cached vmcoreinfo if the guest was started with It may be possible to get kgdb to provide a similar management command too? |
Yeah, exactly, I was hoping that it'd be possible to add a custom GDB protocol message for this. In the meantime, in addition to manually providing the |
The GDB Remote Serial Protocol is implemented by several debugging targets, including kgdb for the Linux kernel and QEMU. These targets are especially useful for development workflows (as opposed to debugging in production).
Basic support will require implementing alternate backends for at least the following components of drgn:
The more exciting features will require new interfaces:
The text was updated successfully, but these errors were encountered: