diff --git a/pykd/dbgext.cpp b/pykd/dbgext.cpp index 4cfabcb..28aecb4 100644 --- a/pykd/dbgext.cpp +++ b/pykd/dbgext.cpp @@ -547,7 +547,7 @@ BOOST_PYTHON_MODULE( pykd ) .def("size", &Module::getSize, "Return size of the module" ) .def("name", &Module::getName, - "Return name of the module" ) + "Return name of the module" ) .def("image", &Module::getImageName, "Return name of the image of the module" ) .def("pdb", &Module::getPdbName, @@ -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" ) .def( "name", &pyDia::Symbol::getName, "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, "Retrieves the symbol that represents the type for this symbol" ) .def( "indexType", &pyDia::Symbol::getIndexType, diff --git a/pykd/diawrapper.cpp b/pykd/diawrapper.cpp index a43c7e9..743b685 100644 --- a/pykd/diawrapper.cpp +++ b/pykd/diawrapper.cpp @@ -106,8 +106,13 @@ std::string Symbol::getName() return retValue.asStr(); } -std::string getBasicName(); +//////////////////////////////////////////////////////////////////////////////// +std::string Symbol::getUndecoratedName() +{ + autoBstr retValue( callSymbol(get_undecoratedName) ); + return retValue.asStr(); +} //////////////////////////////////////////////////////////////////////////////// diff --git a/pykd/diawrapper.h b/pykd/diawrapper.h index da49df3..1beee34 100644 --- a/pykd/diawrapper.h +++ b/pykd/diawrapper.h @@ -94,6 +94,7 @@ public: ULONGLONG getSize(); std::string getName(); + std::string getUndecoratedName(); SymbolPtr getType();