diff --git a/pykd/dbgext.cpp b/pykd/dbgext.cpp index 762b9c5..44d1aa8 100644 --- a/pykd/dbgext.cpp +++ b/pykd/dbgext.cpp @@ -578,6 +578,10 @@ BOOST_PYTHON_MODULE( pykd ) .def("containingRecord", &Module::containingRecordByType, "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" ) + .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, "Return address of the symbol" ); diff --git a/pykd/module.h b/pykd/module.h index c854270..ac77774 100644 --- a/pykd/module.h +++ b/pykd/module.h @@ -86,6 +86,14 @@ public: return m_dia; } + ULONG getCheckSumm() const { + return m_checkSumm; + } + + ULONG getTimeDataStamp() const { + return m_checkSumm; + } + private: ULONG getRvaByName(const std::string &symName);