ElfReader: Added support for de/mangled symbols
See vezs-example experiment for usage. git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1985 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
24
src/core/util/Demangler.hpp
Normal file
24
src/core/util/Demangler.hpp
Normal file
@ -0,0 +1,24 @@
|
||||
#ifndef __DEMANGLER_HPP
|
||||
#define __DEMANGLER_HPP
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace fail {
|
||||
|
||||
class Demangler {
|
||||
public:
|
||||
|
||||
/**
|
||||
* Get the demangled symbol name of a mangled string.
|
||||
* @param name The mangled symbol
|
||||
* @return The according demangled name if found, else Demangler:::DEMANGLE_FAILED
|
||||
*/
|
||||
static std::string demangle(const std::string & name);
|
||||
|
||||
//! Inform about failed demangling.
|
||||
static const std::string DEMANGLE_FAILED;
|
||||
};
|
||||
|
||||
} // end of namespace
|
||||
|
||||
#endif // DEMANGLER_HPP
|
||||
Reference in New Issue
Block a user