X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Ftrace_backtrace.cpp;h=a47ae9ea7faa0aafd63258d220e976d588404025;hb=3a708f35cc715cbc249fdad0d8c312f3dbaaec20;hp=83c9d46e5e06f8d2d3e19390b152a10c97d8588b;hpb=cdb36493d8b982447e668eb7187f8b884c43ed0c;p=apitrace diff --git a/common/trace_backtrace.cpp b/common/trace_backtrace.cpp index 83c9d46..a47ae9e 100644 --- a/common/trace_backtrace.cpp +++ b/common/trace_backtrace.cpp @@ -276,6 +276,7 @@ std::vector get_backtrace() { #include #include #include +#include #include "backtrace.h" @@ -330,6 +331,9 @@ class libbacktraceProvider { frame.linenumber = line; if (func) frame.function = func; + int status; + if (func && (func = abi::__cxa_demangle(func, NULL, NULL, &status))) + frame.function = func; this_->current_frames->push_back(frame); return 0; }