libcwdversion 2.0.0
The C++ Debugging Support Library
Loading...
Searching...
No Matches

Generated API reference for demangling C++ type and symbol names. More...

Functions

void libcwd::demangle_symbol (char const *input, std::string &output)
 Demangle mangled symbol name input and write the result to string output.
void libcwd::demangle_type (char const *input, std::string &output)
 Demangle mangled type name input and write the result to string output.

Detailed Description

Libcwd comes with its own demangler functions.

demangle_type() writes the mangled type name input to the string output; input should be the mangled name as returned by typeid(OBJECT).name() (using gcc-2.95.1 or higher).

demangle_symbol() writes the mangled symbol name input to the string output; input should be the mangled name as returned by elfxx::asymbol_st::name which is what is returned by Location::mangled_function_name() and pc_mangled_function_name().

The direct use of these functions should be avoided, instead use the function type_info_of().