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: When extracting PCs from stack frames, try the PC field #393

Merged
merged 1 commit into from Feb 25, 2022

Conversation

kat-co
Copy link
Contributor

@kat-co kat-co commented Dec 2, 2021

Some error types may return stack traces already defined as []runtime.Frame.
In this case, the program counter will be in the PC field.

fixes: #391

Some error types may return stack traces already defined as `[]runtime.Frame`.
In this case, the program counter will be in the `PC` field.

fixes: getsentry#391
@kamilogorek kamilogorek merged commit 5c2f2a7 into getsentry:master Feb 25, 2022
@kamilogorek
Copy link
Contributor

Thanks! The change looks trivial, so there should be no issues getting it out there, especially that iteration order preserves ProgramCounter as the initial check.

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.

Please support StackTraces which return a slice of runtime.Frame
2 participants