Handle multiple compile units in DWARF data #65
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
This PR adds support to detect different compile units (languages) in a DWARF data. The goal is to prevent name and type confusion accross multiple languages exposing concurrent symbols and types. When detected, everything is typed accordingly to a language, even base types, to avoid potentially dangerous shortcuts and assumptions.
To illustrate with a Linux kernel 6.5+, here are the resulting ISF base types (vmlinux provided in #57) :
I attached two ISF to this PR, to check out the differences before and after
rust
detection. Directly referring to #57, allows to see two distinctfs_struct
andrust.fs_struct
structs.compile_units_handling.zipv2
Fixes #57, fixes #63