Skip to content
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

proposal: allow starting the QEMU gdbserver #4

Open
lmb opened this issue May 10, 2023 · 3 comments
Open

proposal: allow starting the QEMU gdbserver #4

lmb opened this issue May 10, 2023 · 3 comments

Comments

@lmb
Copy link

lmb commented May 10, 2023

It would be nice if it was possible to invoke vmtest like so:

$ vmtest --debug

Which would then proceed to start the qemu GDB server. (Preferably bound to localhost instead of *.) This makes it really easy to debug kernel issues or bugfixes.

@danobi
Copy link
Owner

danobi commented May 11, 2023

Makes sense to me. But rather than over TCP (which would imply bringing up networking), how about orchestrating a serial device that's shared between the host and guest? The gdbserver docs seem to imply that's possible. For kernel gdb server TCP is probably fine (looking at qemu's -s flag)

@lmb
Copy link
Author

lmb commented May 15, 2023

I only care about the in-qemu GDB server to be able to debug the kernel, I wasn't aware that it's possible to start one in the guest as well!

@danobi
Copy link
Owner

danobi commented May 15, 2023

Ah ok, let's start with kernel gdb server first. Should be a neat feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants