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

dwarf: fix inline calls reporting #100

Merged
merged 3 commits into from
Jul 13, 2023
Merged

dwarf: fix inline calls reporting #100

merged 3 commits into from
Jul 13, 2023

Conversation

pelletier
Copy link
Contributor

@pelletier pelletier commented Jul 12, 2023

Finally implement the original TODO of checking whether the PC being symbolized actually belong to the inline function to add to locations instead of adding all functions inlined in the caller, regardless of location. Also, correctly classify whether a location is the result of an inline call.

The rust test is updated for the same reason.

Also make sure tests are compiled with -g.

Fixes #94

Finally implement the original TODO of checking whether the PC being symbolized
actually belong to the the inline function to add to locations, instead of
adding all functions inlined in the caller, regardless of location. Also,
correctly classify whether a location is the result of an inline call.

The rust test is updated for the same reason.

Also make sure tests are compiled with -g.
@pelletier pelletier added the bug Something isn't working label Jul 12, 2023
Copy link
Contributor

@achille-roussel achille-roussel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

dwarf.go Outdated Show resolved Hide resolved
@pelletier pelletier merged commit 79cb53b into main Jul 13, 2023
@pelletier pelletier deleted the fix-94 branch July 13, 2023 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Symbolization of C inlined functions seems wrong
2 participants