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

gdb: invalid register name 'ttbr1_el1' 'elr_el1' #422

Open
clingfei opened this issue Nov 20, 2024 · 2 comments
Open

gdb: invalid register name 'ttbr1_el1' 'elr_el1' #422

clingfei opened this issue Nov 20, 2024 · 2 comments

Comments

@clingfei
Copy link

When debugging use gdb, I want to view the value in some system registers such as elr_el1, ttbr1_el1, tcr_el1,..., etc. However, it gdb can not identicate these registers. Does m1n1 support them?

@sukunahun
Copy link

I dont think so you can access system register with gdb..... there should be some other way around... if you are running macos on VM then you can access these using "re re --all" ... however on what system(specs) you are running m1n1?

@clingfei
Copy link
Author

Thanks for your reply. I am not running macos on VM.
I boot asahi under hypervisor as target and use another asahi as host, following to the steps in this document(Tethered Boot Setup (For Developers)). And i run gdbserver in hypervisor console, connect gdb to it and start debugging.
If I boot linux on qemu, and connect gdb to qemu, I can access these system register just like " i r TTBR1_EL1".

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