From 07c4634708f31b60bd1b19d2c355fd6493a507de Mon Sep 17 00:00:00 2001 From: "SND\\EreTIk_cp" Date: Tue, 6 Mar 2012 14:46:48 +0000 Subject: [PATCH] [0.1.x] +DIA: undecorated name getter git-svn-id: https://pykd.svn.codeplex.com/svn@74747 9b283d60-5439-405e-af05-b73fd8c4d996 --- pykd/dbgext.cpp | 4 +++- pykd/diawrapper.cpp | 7 ++++++- pykd/diawrapper.h | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) 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();