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

store raw symbols in decoder::Table #192

Merged

Conversation

japaric
Copy link
Member

@japaric japaric commented Oct 19, 2020

the raw symbols are used to check if a symbol is "live" when extracting location information from dwarf
fixes location information in PR #175

the raw symbols are used to check if a symbol is "live" when extracting location information from dwarf
fixes location information
@@ -113,8 +133,9 @@ impl Table {
self.entries.is_empty()
}

/// Iterates over the raw symbols of the table entries
pub fn symbols<'s>(&'s self) -> impl Iterator<Item = &'s str> + 's {
Copy link
Member Author

Choose a reason for hiding this comment

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

this method relies on Item being a 'raw symbol' (as it appears in the .symtab)

Copy link
Contributor

Choose a reason for hiding this comment

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

We could rename it to raw_symbols if that doesn't cause too much churn, to make it a bit clearer

Copy link
Member Author

Choose a reason for hiding this comment

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

sure!

Copy link
Contributor

@jonas-schievink jonas-schievink left a comment

Choose a reason for hiding this comment

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

Nice!

@japaric japaric merged commit f745993 into cursed-symbol-names-linkers-must-repent-for-their-sins Oct 19, 2020
@jonas-schievink jonas-schievink deleted the fix-loc-info branch October 19, 2020 15:57
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