Skip to content

Implement Exception::CallStack#frames #10686

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Sija
Copy link
Contributor

@Sija Sija commented May 7, 2021

Adds Exception::CallStack::Frame record as a more structured form of Exception::CallStack#printable_backtrace.

Resolves #10681

@Sija Sija force-pushed the feature/exception-callstack-frames branch from 915864f to 22945d2 Compare May 7, 2021 13:01
@Blacksmoke16
Copy link
Member

Haha, looks like @Sija beat me to it :P

ref: #10687

@Sija Sija force-pushed the feature/exception-callstack-frames branch from 22945d2 to 92ee0ee Compare May 7, 2021 13:15
@straight-shoota
Copy link
Member

No force pushes please 🙏

line : Int32?,
column : Int32?,
name : String?,
sname : String?,
Copy link
Member

Choose a reason for hiding this comment

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

What's sname?

Copy link
Contributor Author

@Sija Sija May 7, 2021

Choose a reason for hiding this comment

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

It comes from LibC::DlInfo#dli_sname (Name of symbol whose definition overlaps addr).

Copy link
Member

Choose a reason for hiding this comment

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

Let's not expose this

Copy link
Contributor Author

@Sija Sija May 9, 2021

Choose a reason for hiding this comment

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

It helps with clean API and I don't see a reason to not to expose it and deny it to consumers.

@Sija Sija force-pushed the feature/exception-callstack-frames branch from e7a6883 to 3ea2fe0 Compare May 7, 2021 20:23
Sija added 3 commits May 7, 2021 22:41
@Sija Sija force-pushed the feature/exception-callstack-frames branch 2 times, most recently from 7f95236 to f9ed098 Compare May 9, 2021 11:39
@Sija Sija force-pushed the feature/exception-callstack-frames branch from f9ed098 to bfc2b48 Compare May 9, 2021 12:52
@Sija Sija requested a review from straight-shoota May 9, 2021 13:57
column : Int32?,
name : String?,
sname : String?,
ip_address : UInt64 do
Copy link
Member

Choose a reason for hiding this comment

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

Let's not expose this either

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve Exception backtrace API
4 participants