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

A way to get the type of CPU exception? #1905

Open
HarukaMa opened this issue Nov 8, 2023 · 1 comment
Open

A way to get the type of CPU exception? #1905

HarukaMa opened this issue Nov 8, 2023 · 1 comment

Comments

@HarukaMa
Copy link
Contributor

HarukaMa commented Nov 8, 2023

When a CPU exception is thrown, what we have is an error code from unicorn, however I can't find a way to directly get the exact exception (#DBG for flag TF on x86 for example). Guessing doesn't always work.

I know there are cross-arch issues, but is this even possible?

@wtdcode
Copy link
Member

wtdcode commented Dec 25, 2023

The error code, in most cases, is enough to reflect the exception type itself. More detailed information is strongly tight to QEMU target implementation and I'm afraid it's hard to retrieve in an arch agonistic way.

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