[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:
SND\EreTIk_cp 2014-11-11 10:07:52 +00:00 committed by Mikhail I. Izmestev
parent 55d6d9737b
commit 03f84d314b

View File

@ -41,7 +41,9 @@ std::wstring findSymbol( kdlib::MEMOFFSET_64 offset, bool showDisplacement )
} catch( kdlib::DbgException& ) } catch( kdlib::DbgException& )
{ {
std::wstringstream sstr; 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(); return sstr.str();
} }