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

ArmOperand "access" member of type Option<RegAccessType> is missing #97

Open
flipnut opened this issue Apr 29, 2021 · 2 comments
Open

Comments

@flipnut
Copy link

flipnut commented Apr 29, 2021

Capstone's C types cs_arm_op and cs_x86_op etc. have a member uint8_t access, that provides info about the operand being read or written to by the instruction. In the rust world, the related struct X86Operand has the member pub access: Option<RegAccessType>,. Howevery, for ArmOperand the member is missing.

Unfortunately, I am not familiar with the semi-automated translation process of c types to rust types in capstone-rust. With some guidance I am happy to help where I can to get this fixed.

@enjhnsn2
Copy link

Has there been any progress on this issue?

@tmfink
Copy link
Member

tmfink commented Jul 30, 2021

Sorry for the late reply. The Rust types are "bespoke" and written by hand. 😅

If you are interested in contributing the feature, take a look at RegAccessType and the use for X86:

You will also need to update the tests in capstone-rs/src/test.rs.

Let me know if you have any questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants