jeremy-rifkin / cpptrace

Simple, portable, and self-contained stacktrace library for C++11 and newer
MIT License
621 stars 64 forks source link

object address with dbghelp #100

Closed eyalgolan1337 closed 5 months ago

eyalgolan1337 commented 6 months ago

The new object_address field in stacktrace_frame is excellent when resolving frames using libdwarf. is there a way to also bring it using dbghelp? currently 0 is the hardcoded object_address value returned from resolve_frame()

jeremy-rifkin commented 6 months ago

Thanks for opening this, it is possible however it would come at a small performance cost. I'll try measuring the cost later to see if it matters.

jeremy-rifkin commented 6 months ago

It looks like calls to figure out the module for a raw address are cheap so I'll go ahead and set up the library to resolve this by default.