Skip to content

Simplify regs_access #170

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

Merged
merged 5 commits into from
May 6, 2025
Merged

Conversation

tmfink
Copy link
Member

@tmfink tmfink commented Apr 21, 2025

Currently users need to manually call regs_access() method to get all accessed registers.
Instead, it would be a much better experience for the underlying cs_regs_access() function to be called as automatically.

When complete, should address #84.

@tmfink tmfink marked this pull request as draft April 21, 2025 06:52
@tmfink tmfink changed the title rs: minor fix-ups regs_access; add tests Simplify regs_access Apr 21, 2025
tmfink added 2 commits April 27, 2025 16:30
Ensures cs_regs_access arguments are more clearly pointers to fixed-size
arrays.
@tmfink tmfink force-pushed the regs-access-simplify branch from 7ad4ec7 to 74c97e9 Compare May 5, 2025 08:45
@tmfink tmfink marked this pull request as ready for review May 5, 2025 08:46
When getting instruction details, we now eagerly call regs_access() to
get "extended" read/write registers. This is simpler than requiring
users to manually call it to get the "actual" accessed registers.
@tmfink tmfink force-pushed the regs-access-simplify branch from 74c97e9 to 78d8223 Compare May 6, 2025 06:02
@tmfink tmfink merged commit 28096e2 into capstone-rust:master May 6, 2025
13 of 16 checks passed
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

Successfully merging this pull request may close these issues.

1 participant