Open XVilka opened 3 years ago
At this point I think I'm going to skip this for now... To better define the problem, this is not only about refactoring those functions, but to properly do that we would need to create the right RzBinVersion
structure, that is generic enough to contain information from all major file formats (right now we support pe, mach0, elf). Then, we will need to add a .version
method to RzBinPlugins and provide those info from the plugins themselves.
The main problem I see is that version information are very different from one format to the other. I don't think it is a must right now to have this information well formed.
This issue has been automatically marked as stale because it has not had recent activity. Considering a lot has probably changed since its creation, we kindly ask you to check again if the issue you reported is still relevant in the current version of rizin. If it is, update this issue with a comment, otherwise it will be automatically closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because marked as stale and it has not been updated since then. If the issue is still relevant, feel free to re-open it or open a new one.
Currently it just prints. This whole chunk of functions should be split in two main pieces: one to extract all information and another to print it:
rz_core_bin_versions_print()
rz_bin_versions_info()
Note, that the actual API function to get the information about versions could be moved to
librz/bin/version.c
, for example, since it doesn't require anythingRzCore
-specific. The printing functions we can keep inlibrz/core/cbin.c
as before.