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

fix(debuginfo): Calculate line record sizes for DWARF #220

Merged
merged 1 commit into from
Apr 20, 2020

Conversation

jan-auer
Copy link
Member

Calculates line record sizes for DWARF by comparing with the previous row emitted from the line number program. Additionally, the sequence end point is used to calculate the length for the last row/record.

@jan-auer jan-auer requested a review from a team April 20, 2020 11:27
@jan-auer jan-auer self-assigned this Apr 20, 2020
Comment on lines +208 to +209
if address >= last_row.address {
last_row.size = Some(address - last_row.address);
Copy link
Contributor

Choose a reason for hiding this comment

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

This allows a row-size of 0. I assume this is intentional

@jan-auer jan-auer merged commit 2c4e532 into master Apr 20, 2020
@jan-auer jan-auer deleted the fix/debuginfo-dwarf-line-size branch April 20, 2020 14:49
jan-auer added a commit that referenced this pull request Apr 20, 2020
* master:
  feat(symcache): Bump SYMCACHE_VERSION to 5
  fix(debuginfo): Detect all scopes when collecting inlinees (#221)
  fix(debuginfo): Calculate line record sizes for DWARF (#220)
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