boostorg / stacktrace

C++ library for storing and printing backtraces.
https://boost.org/libs/stacktrace
422 stars 70 forks source link

Frame module name not accessible #96

Closed nminkov closed 4 years ago

nminkov commented 4 years ago

On Windows, frame have an associated module name. Please give public access to it. E.g. frame.module_name()

apolukhin commented 4 years ago

Try using the boost::dll::symbol_location_ptr on a result of the frame::address() call.

Does this solves your issue?

nminkov commented 4 years ago

Thanks for the suggestion, which indeed provides the module full path.

My issue now is that I don't remember why asked the question, because in my code I already use boost::stacktrace::detail::debugging_symbols, get_name_impl(frameAddress, &moduleName) method, which does that too. July 8 for me it's like... 10 code years ago.

apolukhin commented 4 years ago

:)

It's better not to use stuff from detail namespace as it is a subject to silent change.

Anyway, thanks for the report!