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

Fetch global variables normally from Rizin #27

Closed
XVilka opened this issue Feb 24, 2024 · 0 comments · Fixed by #26
Closed

Fetch global variables normally from Rizin #27

XVilka opened this issue Feb 24, 2024 · 0 comments · Fixed by #26
Assignees
Labels
rizin API Changes in the Rizin API

Comments

@XVilka
Copy link
Member

XVilka commented Feb 24, 2024

Currently there is an ugly hack in src/rz-plugin/data.cpp - fetchGlobals() function.

Since Rizin supports global variables for a while already, just use the corresponding APIs (see e.g. how afg is implemented).
See rz_analysis_var_global_*() APIs

To fetch all those, rz_analysis_var_global_get_all() could be used

@XVilka XVilka added the rizin API Changes in the Rizin API label Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rizin API Changes in the Rizin API
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants