mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-29 11:53:23 +08:00
[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:
parent
6f6fcf875a
commit
eb834c22f5
@ -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 )
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -115,6 +115,16 @@ public:
|
||||
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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user