-
Notifications
You must be signed in to change notification settings - Fork 144
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
bug with hvt debug #548
Comments
Can confirm. GDB 12.1. |
With gdb 10.1 it works for me FWIW
What does GDB say? |
There is another terminal output:
GDB 9.2 and GDB 10.2 are both not working properly. |
I am able to reproduce on GDB 10.1 if I pass the KERNEL argument. Searching for the error
|
After diving into this I have discovered that it is due to gdb expecting more registers when it queries solo5-hvt-gdb's gdb server. In this commit I blank in the remaining registers which is definitely not the right thing to do, but it got me to a point where I could set breakpoints and run hello world: reynir@5396361 It is very unclear to me what registers are missing and in what order they are expected, and how we can keep up with this. I found gdb has a target xml format, but when I tried to use a custom target xml file I got an error that the architecture disagreed 🤷 |
Likely we want to use |
When I try to use live debugging of hvt unikernels, I meet some trouble. When I use command
gdb --ex="target remote localhost:1234" test_hello.hvt
connect to gdb, the another terminal exit with info as fellows:The text was updated successfully, but these errors were encountered: