From 114b11be8ef5f020236b68260c1d04ef8e733bd6 Mon Sep 17 00:00:00 2001 From: "SND\\EreTIk_cp" Date: Thu, 26 Jan 2012 17:37:29 +0000 Subject: [PATCH] [0.1.x] + image checksumm and timeDataStamp getters git-svn-id: https://pykd.svn.codeplex.com/svn@73649 9b283d60-5439-405e-af05-b73fd8c4d996 --- pykd/dbgext.cpp | 4 ++++ pykd/module.h | 8 ++++++++ 2 files changed, 12 insertions(+) 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);