[pykd] added : checksum() and timestamp() methods for dbgModuleClass

git-svn-id: https://pykd.svn.codeplex.com/svn@63643 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2011-04-08 09:30:21 +00:00
parent 6f6fcf875a
commit eb834c22f5
3 changed files with 16 additions and 4 deletions

View File

@ -141,6 +141,8 @@ BOOST_PYTHON_MODULE( pykd )
.def("contain", &dbgModuleClass::contain )
.def("image", &dbgModuleClass::getImageSymbolName )
.def("pdb", &dbgModuleClass::getPdbName )
.def("checksum", &dbgModuleClass::getCheckSum )
.def("timestamp", &dbgModuleClass::getTimeStamp )
.def("addSynSymbol", &dbgModuleClass::addSyntheticSymbol )
.def("delAllSynSymbols", &dbgModuleClass::delAllSyntheticSymbols )
.def("delSynSymbol", &dbgModuleClass::delSyntheticSymbol )

View File

@ -282,7 +282,7 @@ dbgModuleClass::getImagePath()
if ( FAILED( hres ) )
throw DbgException( "IDebugSymbol3::GetImagePathWide failed" );
std::vector<WCHAR> pathBuffer(pathSize);
std::vector<WCHAR> pathBuffer(pathSize);
hres = dbgExt->symbols3->GetSymbolPathWide( &pathBuffer[0], pathSize, NULL );
if ( FAILED( hres ) )
@ -363,7 +363,7 @@ dbgModuleClass::print() const
0);
std::string fullname(&v[0]);
fmt % m_base % (m_end - m_base) % m_name % fullname;
return fmt.str();
return fmt.str();
}
catch (std::exception & e)
{

View File

@ -66,7 +66,7 @@ public:
dbgModuleClass() :
m_base( 0 ),
m_end( 0 )
m_end( 0 )
{}
dbgModuleClass( const std::string &name, ULONG64 base, ULONG size );
@ -114,6 +114,16 @@ public:
getPdbName() const {
return std::wstring( m_debugInfo.LoadedPdbName );
}
ULONG
getCheckSum() const {
return m_debugInfo.CheckSum;
}
ULONG
getTimeStamp() const {
return m_debugInfo.TimeDateStamp;
}
bool
addSyntheticSymbol( ULONG64 offset, ULONG size, const std::string &symName );
@ -135,7 +145,7 @@ private:
ULONG64 m_base;
ULONG64 m_end;
std::string m_name;
std::wstring m_imageFullName;