From 4e538716d5342e1e64ba150f816ca2a91d44abed Mon Sep 17 00:00:00 2001 From: "SND\\kernelnet_cp" Date: Thu, 27 Dec 2012 07:25:27 +0000 Subject: [PATCH] [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 --- pykd/module.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/pykd/module.cpp b/pykd/module.cpp index 4dc0bf7..14c7e83 100644 --- a/pykd/module.cpp +++ b/pykd/module.cpp @@ -81,22 +81,22 @@ SymbolSessionPtr& Module::getSymSession() // TODO: read image file path and load using IDiaReadExeAtOffsetCallback - m_symfile = getModuleSymbolFileName(m_base); - if (!m_symfile.empty() ) + try { - try + m_symfile = getModuleSymbolFileName(m_base); + if (!m_symfile.empty() ) { m_symSession = loadSymbolFile(m_symfile, m_base); } - catch(const SymbolException&) - { - } + } + catch(const DbgException&) + { + } - if (m_symSession) - { - m_symSessionCache.insert( std::make_pair( cacheKey, m_symSession ) ); - return m_symSession; - } + if (m_symSession) + { + m_symSessionCache.insert( std::make_pair( cacheKey, m_symSession ) ); + return m_symSession; } try