-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Rust bindings improvements #1480
Conversation
@wtdcode got rid of the additional API |
Merged, thanks. ;) |
@wtdcode one thing, in case you autogenerate the register ids, make sure you add impl From<RegisterARM> for i32 {
fn from(r: RegisterARM) -> Self {
r as i32
}
} to each file :) |
Rust bindings constants are not generated automatically unfortunately and that's on my TODO plan. |
There are two types of mem callback: unicorn/include/unicorn/unicorn.h Lines 283 to 319 in 52f90cd
uc_cb_eventmem_t has a return value but uc_cb_hookmem_t doesn't.You may need to add a new add_mem_invalid_hook function.
unicorn/include/unicorn/unicorn.h Lines 190 to 206 in 52f90cd
You may change them in this PR. Originally posted by @bet4it in #1421 (comment)
|
I had it running at one point, but probably needs some adaption to newer changes, take a look at: |
Ah, missed that. Will take a look at it later and open another pr (unless someone else wants to) |
@bet4it what do you recommend? Drop the bool return again? Add a hook? |
Add |
These bindings from unicornafl allow us to
'static
anymore -> easier to capture things in