[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,22 +81,22 @@ SymbolSessionPtr& Module::getSymSession()
// TODO: read image file path and load using IDiaReadExeAtOffsetCallback // TODO: read image file path and load using IDiaReadExeAtOffsetCallback
m_symfile = getModuleSymbolFileName(m_base); try
if (!m_symfile.empty() )
{ {
try m_symfile = getModuleSymbolFileName(m_base);
if (!m_symfile.empty() )
{ {
m_symSession = loadSymbolFile(m_symfile, m_base); m_symSession = loadSymbolFile(m_symfile, m_base);
} }
catch(const SymbolException&) }
{ catch(const DbgException&)
} {
}
if (m_symSession) if (m_symSession)
{ {
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