Commit 328891c7 authored by Mikhail I. Izmestev's avatar Mikhail I. Izmestev
Browse files

Handle exception when getSystemId fails with E_NOTIMPL on kernel dumps

parent 2a4e5a01
......@@ -187,9 +187,14 @@ DebugCallbackResult ClrDebugManagerImpl::onProcessStart(PROCESS_DEBUG_ID process
{
boost::recursive_mutex::scoped_lock lock(m_processLock);
PROCESS_ID pid = TargetProcess::getById(processid)->getSystemId();
try
{
PROCESS_ID pid = TargetProcess::getById(processid)->getSystemId();
m_processMap[pid] = 0;
m_processMap[pid] = 0;
}
catch(DbgException&)
{}
return DebugCallbackNoChange;
}
......@@ -198,9 +203,14 @@ DebugCallbackResult ClrDebugManagerImpl::onProcessStart(PROCESS_DEBUG_ID process
DebugCallbackResult ClrDebugManagerImpl::onProcessExit( PROCESS_DEBUG_ID processid, ProcessExitReason reason, unsigned long exitCode )
{
PROCESS_ID pid = TargetProcess::getById(processid)->getSystemId();
try
{
PROCESS_ID pid = TargetProcess::getById(processid)->getSystemId();
m_processMap.erase(pid);
m_processMap.erase(pid);
}
catch (DbgException&)
{}
return DebugCallbackNoChange;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment