[0.2.x] fixed: reload module with spaces in image path may fail

git-svn-id: https://pykd.svn.codeplex.com/svn@82050 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2012-12-27 07:25:27 +00:00 committed by Mikhail I. Izmestev
parent 7d91a79afa
commit 4e538716d5

View File

@ -81,14 +81,15 @@ SymbolSessionPtr& Module::getSymSession()
// TODO: read image file path and load using IDiaReadExeAtOffsetCallback // TODO: read image file path and load using IDiaReadExeAtOffsetCallback
try
{
m_symfile = getModuleSymbolFileName(m_base); m_symfile = getModuleSymbolFileName(m_base);
if (!m_symfile.empty() ) if (!m_symfile.empty() )
{
try
{ {
m_symSession = loadSymbolFile(m_symfile, m_base); m_symSession = loadSymbolFile(m_symfile, m_base);
} }
catch(const SymbolException&) }
catch(const DbgException&)
{ {
} }
@ -97,7 +98,6 @@ SymbolSessionPtr& Module::getSymSession()
m_symSessionCache.insert( std::make_pair( cacheKey, m_symSession ) ); m_symSessionCache.insert( std::make_pair( cacheKey, m_symSession ) );
return m_symSession; return m_symSession;
} }
}
try try
{ {