mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +08:00
[0.3.x] fix for module without debug symbols: findSymbol(<addr>, False) returns only module name (without displacement)
git-svn-id: https://pykd.svn.codeplex.com/svn@89242 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
55d6d9737b
commit
03f84d314b
@ -41,7 +41,9 @@ std::wstring findSymbol( kdlib::MEMOFFSET_64 offset, bool showDisplacement )
|
||||
} catch( kdlib::DbgException& )
|
||||
{
|
||||
std::wstringstream sstr;
|
||||
sstr << mod->getName() << '+' << std::hex << ( offset - mod->getBase() );
|
||||
sstr << mod->getName();
|
||||
if (showDisplacement)
|
||||
sstr << '+' << std::hex << ( offset - mod->getBase() );
|
||||
return sstr.str();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user