-
Notifications
You must be signed in to change notification settings - Fork 139
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
virt-test/RFE: Provide a way to run QEMU under gdb #1319
Comments
Thinking about the simplest case first (a single qemu), I wonder how useful would it be to just prefix the qemu command with: This implementation would be trivial but would only pop up gdb in case of an exception such as a segmentation fault IIRC. @dagrh would you need to interact with gdb during the normal test run time? |
I guess with gdb -batch you'd have to get the set of parameters virt-test passes to gdb into the batch somehow. I can see a few cases:
|
One way of doing it which seems to work ok (in the migration test) but is a bit of a hack is a wrapper script like the following. ''' |
It would be nice to provide a simple way to run the QEMUs that are started under gdb for those of us debugging/breaking qemu.
It should be possible to do this to any test, and in the case of tests with multiple QEMUs (e.g. migration) to select which one you want to debug.
When attached with gdb you probably want to stop timeouts/the test being killed.
The text was updated successfully, but these errors were encountered: