-
Type: Improvement
-
Resolution: Won't Fix
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Internal Code
-
Labels:None
-
Service Arch
The __cxa_demangle function is hard to use efficiently.
It accepts in/out parameters which would allow reuse of a malloc'ed buffer between calls. The malloc/free of the buffer requires some special care so we never do this, and just punt, passing nullptr arguments. We are also ignoring the status output parameter.
On Windows we would need to "UnDecorate", I think.
https://docs.microsoft.com/en-us/windows/win32/api/dbghelp/nf-dbghelp-undecoratesymbolname
We should probably have a separate little C++ abstraction for it to encapsulate its complexity.