Fix oversight, demangle in object_trace resolution

This commit is contained in:
Jeremy 2023-11-19 22:52:43 -06:00
parent 9647a6d591
commit 16ec7c5855
No known key found for this signature in database
GPG Key ID: B4C8300FEC395042

View File

@ -92,7 +92,11 @@ namespace cpptrace {
stacktrace object_trace::resolve() const {
try {
return stacktrace{detail::resolve_frames(frames)};
std::vector<stacktrace_frame> trace = detail::resolve_frames(frames);
for(auto& frame : trace) {
frame.symbol = detail::demangle(frame.symbol);
}
return stacktrace{std::move(trace)};
} catch(...) { // NOSONAR
if(!detail::should_absorb_trace_exceptions()) {
throw;