Skip to content

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

Merged
jessebraham merged 1 commit into
esp-rs:mainfrom
jessebraham:fixes/addr2line
May 29, 2023
Merged

Update to the latest version of addr2line and address breaking changes#412
jessebraham merged 1 commit into
esp-rs:mainfrom
jessebraham:fixes/addr2line

Conversation

@jessebraham

Copy link
Copy Markdown
Member

No description provided.

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

@jessebraham jessebraham May 26, 2023

Copy link
Copy Markdown
Member Author

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
Copy Markdown
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.

@SergioGasquez SergioGasquez left a comment

Copy link
Copy Markdown
Member

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