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

add module path to location info #167

Merged
merged 1 commit into from Sep 7, 2020
Merged

add module path to location info #167

merged 1 commit into from Sep 7, 2020

Conversation

japaric
Copy link
Member

@japaric japaric commented Sep 7, 2020

closes #151

gimli::constants::DW_AT_name => {
if let gimli::AttributeValue::DebugStrRef(off) = attr.value() {
let s = dwarf.string(off)?;
for _ in (depth as usize)..segments.len() + 1 {
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 is a bit magic but seems to work. I think it would be more correct to record the depth at which the first path segment appears instead of hardcoding a 1 there

@japaric japaric merged commit 15bf1e6 into main Sep 7, 2020
@jonas-schievink jonas-schievink deleted the modpath 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.

extract module path info from DWARF
2 participants