Functions | |
void | libcwd::demangle_type (char const *input, std::string &output) |
Demangle mangled type name input and write the result to string output . | |
void | libcwd::demangle_symbol (char const *input, std::string &output) |
Demangle mangled symbol name input and write the result to string output . | |
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_ct::mangled_function_name() and pc_mangled_function_name().
The direct use of these functions should be avoided, instead use the function type_info_of().