- getSection/getSymbol now returns an ElfSymbol reference. Searching by address now searches if address is within symbol address and symbol address + size. So we can test, if we are *within* a function, object or section and not only at the start address.
25 lines
533 B
C++
25 lines
533 B
C++
#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
|