mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 12:53:23 +08:00
[0.2.x] fixed : findSymbol return empty string
git-svn-id: https://pykd.svn.codeplex.com/svn@85394 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
b5548159c0
commit
e9923606b3
@ -337,9 +337,17 @@ void Module::getSymbolAndDispByVa( ULONG64 offset, std::string &symbolName, LONG
|
||||
{
|
||||
offset = prepareVa(offset);
|
||||
|
||||
SymbolPtr sym = getSymSession()->findByRva( (ULONG)(offset - m_base ), SymTagNull, &displacement );
|
||||
symbolName.clear();
|
||||
|
||||
while ( symbolName.empty() )
|
||||
{
|
||||
SymbolPtr sym = getSymSession()->findByRva( (ULONG)(offset - m_base ), SymTagNull, &displacement );
|
||||
symbolName = sym->getName();
|
||||
if ( !symbolName.empty() )
|
||||
break;
|
||||
|
||||
offset = offset - displacement - 1;
|
||||
}
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -2,7 +2,7 @@
|
||||
#define PYKD_VERSION_MAJOR 0
|
||||
#define PYKD_VERSION_MINOR 2
|
||||
#define PYKD_VERSION_SUBVERSION 0
|
||||
#define PYKD_VERSION_BUILDNO 22
|
||||
#define PYKD_VERSION_BUILDNO 24
|
||||
|
||||
|
||||
#define __VER_STR2__(x) #x
|
||||
|
Loading…
Reference in New Issue
Block a user