Skip to content

pkg/cover/backend: extract PC ranges from Rust DWARF #6013

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

Merged
merged 1 commit into from
May 13, 2025

Conversation

a-nogikh
Copy link
Collaborator

@a-nogikh a-nogikh commented May 9, 2025

Rust compilation units are different from C in that a single compilation unit includes multiple source files, but we still need to tell which PC range belong to which source file.

Infer that information from the LineEntry structures.

Cc #6000.

@a-nogikh a-nogikh requested a review from dvyukov May 9, 2025 10:24
@a-nogikh a-nogikh force-pushed the features/parse-rust-dwarf branch from 60e5867 to a5cc2ee Compare May 12, 2025 16:56
@a-nogikh
Copy link
Collaborator Author

PTAL

dvyukov
dvyukov previously approved these changes May 13, 2025
Rust compilation units are different from C in that a single compilation
unit includes multiple source files, but we still need to tell which PC
range belong to which source file.

Infer that information from the LineEntry structures.

Cc google#6000.
@a-nogikh a-nogikh added this pull request to the merge queue May 13, 2025
Merged via the queue into google:master with commit 7b19e0e May 13, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants