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

Ability to jump out the JIT code? #35

Open
wtdcode opened this issue Jun 21, 2024 · 1 comment
Open

Ability to jump out the JIT code? #35

wtdcode opened this issue Jun 21, 2024 · 1 comment

Comments

@wtdcode
Copy link

wtdcode commented Jun 21, 2024

Is it possible to jump out from the JIT-ed code? Say, implementing a custom inspector and jit-ed code can call the inspector so that users can trace everything.

@wtdcode
Copy link
Author

wtdcode commented Jun 21, 2024

The basic idea would be allowing users to injecting any piece of code into the jit-ted code. In unicorn, we called it as hooks. I also once added support for internal dynamic hooks.

Basically, we can call some functions before&after every opcode (not need to do it if no hooks installed). This can be done in the LLVM IR level.

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

1 participant