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

Update to the latest version of addr2line and address breaking changes #412

Merged
merged 1 commit into from
May 29, 2023

Conversation

jessebraham
Copy link
Member

No description provided.

.find_frames(addr)
let mut frames = match self.ctx.find_frames(addr) {
LookupResult::Output(result) => result.unwrap(),
LookupResult::Load { .. } => unimplemented!(),
Copy link
Member Author

@jessebraham jessebraham May 26, 2023

Choose a reason for hiding this comment

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

@MabezDev @bjoernQ is this unimplemented!() safe? I stole it from the addr2line docs, and it has worked at least for my limited testing here. This is a little outside my realm of knowledge though, to be honest.

Copy link
Member

Choose a reason for hiding this comment

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

According to the addr2line docs:

Operations that consult debug information may require additional files to be loaded if split DWARF is being used. This enum returns the result of the operation in the Break variant, or information about the split DWARF that is required and a continuation to invoke once it is available in the Continue variant.

I think given that we have single ELFs with all debug info, we don't need to cover this and can leave it as unimplemented.

Copy link
Member

@SergioGasquez SergioGasquez left a comment

Choose a reason for hiding this comment

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

LGTM!

@jessebraham jessebraham merged commit 984d95c into esp-rs:main May 29, 2023
@jessebraham jessebraham deleted the fixes/addr2line branch May 29, 2023 14:53
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.

3 participants