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

An API to provide source file and line/column information for selected function, variable, reference. #4061

Open
XVilka opened this issue Jan 2, 2024 · 0 comments

Comments

@XVilka
Copy link
Member

XVilka commented Jan 2, 2024

Currently Rizin can show the source filename and line/column information when debug information is available e.g. in DWARF or PDB formats. But there is no way to get that information via the API if Rizin is used as a library. It will be quite beneficial for all users of the Rizin API, including Cutter.

It could get such information, e.g. in char * format for these:

  • RzAnalysisFunction - at the point of function definition in source file
  • RzAnalysisVar - at the point of variable definition in source file
  • RzAnalysisVarGlobal - at the point of global definition
  • For all references of those (X-Refs) at the point of use

Depends on #907

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

2 participants