[0.1.x] + get virtual address for DIA Symbol

git-svn-id: https://pykd.svn.codeplex.com/svn@75580 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\EreTIk_cp 2012-04-17 08:59:23 +00:00 committed by Mikhail I. Izmestev
parent 2248aa0845
commit b9b8e855b1
3 changed files with 10 additions and 0 deletions

View File

@ -144,6 +144,13 @@ ULONG Symbol::getRva()
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
ULONGLONG Symbol::getVa()
{
return callSymbol(get_virtualAddress);
}
////////////////////////////////////////////////////////////////////////////////
ULONG Symbol::getLocType() ULONG Symbol::getLocType()
{ {
return callSymbol(get_locationType); return callSymbol(get_locationType);

View File

@ -103,6 +103,7 @@ public:
ULONG getSymTag(); ULONG getSymTag();
ULONG getRva(); ULONG getRva();
ULONGLONG getVa();
ULONG getLocType(); ULONG getLocType();

View File

@ -717,6 +717,8 @@ BOOST_PYTHON_MODULE( pykd )
"Retrieves a reference to the class parent of the symbol" ) "Retrieves a reference to the class parent of the symbol" )
.def( "rva", &pyDia::Symbol::getRva, .def( "rva", &pyDia::Symbol::getRva,
"Retrieves the relative virtual address (RVA) of the location") "Retrieves the relative virtual address (RVA) of the location")
.def( "va", &pyDia::Symbol::getVa,
"Retrieves the virtual address (VA) of the location")
.def( "symTag", &pyDia::Symbol::getSymTag, .def( "symTag", &pyDia::Symbol::getSymTag,
"Retrieves the symbol type classifier: SymTagXxx" ) "Retrieves the symbol type classifier: SymTagXxx" )
.def( "locType", &pyDia::Symbol::getLocType, .def( "locType", &pyDia::Symbol::getLocType,