mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-29 20:03:33 +08:00
[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:
parent
7d91a79afa
commit
4e538716d5
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user