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

Feature Request: Find the start of the function of a stack frame #182

Open
ReimuNotMoe opened this issue Oct 16, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@ReimuNotMoe
Copy link
Contributor

ReimuNotMoe commented Oct 16, 2024

It would be great if cpptrace can provide a standardized function to find the start of the function of a stack frame, just like _Unwind_FindEnclosingFunction.

This is very useful for checking if a certain function is in a cpptrace::raw_trace::frames programmatically.

Thanks in advance.

@jeremy-rifkin
Copy link
Owner

Hello thanks for opening this issue. This could be a cool feature though it would be tricky to implement and unfortunately might involve some interface duplication (e.g. cpptrace::get_raw_trace_with_function_starts or something along with an object to hold the result etc). I'll have to do some research to see how implementable this is with other back-ends, my expectation is that only a few could support it.

@jeremy-rifkin jeremy-rifkin added the enhancement New feature or request label Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants