[0.1.x] + image checksumm and timeDataStamp getters

git-svn-id: https://pykd.svn.codeplex.com/svn@73649 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\EreTIk_cp 2012-01-26 17:37:29 +00:00 committed by Mikhail I. Izmestev
parent 613e3214d6
commit 114b11be8e
2 changed files with 12 additions and 0 deletions

View File

@ -578,6 +578,10 @@ BOOST_PYTHON_MODULE( pykd )
.def("containingRecord", &Module::containingRecordByType, .def("containingRecord", &Module::containingRecordByType,
"Return instance of the typedVar class. It's value are loaded from the target memory." "Return instance of the typedVar class. It's value are loaded from the target memory."
"The start address is calculated by the same method as the standard macro CONTAINING_RECORD does" ) "The start address is calculated by the same method as the standard macro CONTAINING_RECORD does" )
.def("checksumm",&Module::getCheckSumm,
"Return a image file checksum: IMAGE_OPTIONAL_HEADER.CheckSum" )
.def("timeDataStamp",&Module::getTimeDataStamp,
"Return a low 32 bits of the time stamp of the image: IMAGE_FILE_HEADER.TimeDateStamp" )
.def("__getattr__", &Module::getSymbol, .def("__getattr__", &Module::getSymbol,
"Return address of the symbol" ); "Return address of the symbol" );

View File

@ -86,6 +86,14 @@ public:
return m_dia; return m_dia;
} }
ULONG getCheckSumm() const {
return m_checkSumm;
}
ULONG getTimeDataStamp() const {
return m_checkSumm;
}
private: private:
ULONG getRvaByName(const std::string &symName); ULONG getRvaByName(const std::string &symName);