mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 21:03:23 +08:00
[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:
parent
613e3214d6
commit
114b11be8e
@ -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" );
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user