[0.1.x] +DIA: undecorated name getter

git-svn-id: https://pykd.svn.codeplex.com/svn@74747 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\EreTIk_cp 2012-03-06 14:46:48 +00:00 committed by Mikhail I. Izmestev
parent 6faae9a14c
commit 07c4634708
3 changed files with 10 additions and 2 deletions

View File

@ -687,6 +687,8 @@ BOOST_PYTHON_MODULE( pykd )
"Retrieves the number of bits or bytes of memory used by the object represented by this symbol" ) "Retrieves the number of bits or bytes of memory used by the object represented by this symbol" )
.def( "name", &pyDia::Symbol::getName, .def( "name", &pyDia::Symbol::getName,
"Retrieves the name of the symbol" ) "Retrieves the name of the symbol" )
.def( "undecoratedName", &pyDia::Symbol::getUndecoratedName,
"Retrieves the undecorated name for a C++ decorated, or linkage, name" )
.def( "type", &pyDia::Symbol::getType, .def( "type", &pyDia::Symbol::getType,
"Retrieves the symbol that represents the type for this symbol" ) "Retrieves the symbol that represents the type for this symbol" )
.def( "indexType", &pyDia::Symbol::getIndexType, .def( "indexType", &pyDia::Symbol::getIndexType,

View File

@ -106,8 +106,13 @@ std::string Symbol::getName()
return retValue.asStr(); return retValue.asStr();
} }
std::string getBasicName(); ////////////////////////////////////////////////////////////////////////////////
std::string Symbol::getUndecoratedName()
{
autoBstr retValue( callSymbol(get_undecoratedName) );
return retValue.asStr();
}
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////

View File

@ -94,6 +94,7 @@ public:
ULONGLONG getSize(); ULONGLONG getSize();
std::string getName(); std::string getName();
std::string getUndecoratedName();
SymbolPtr getType(); SymbolPtr getType();