1
0
Fork 0

DBG: call "exinfo" on exceptions that are not skipped

This commit is contained in:
mrexodia 2016-10-23 14:16:44 +02:00
parent de16322550
commit 3512da5c33
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 5 additions and 1 deletions

View File

@ -1758,16 +1758,20 @@ static void cbException(EXCEPTION_DEBUG_INFO* ExceptionData)
exceptionName = ErrorCodeToName(ExceptionCode);
if(ExceptionData->dwFirstChance) //first chance exception
{
auto skip = bSkipExceptions || dbgisignoredexception(ExceptionCode);
if(!skip)
DbgCmdExecDirect("exinfo");
if(exceptionName.size())
dprintf(QT_TRANSLATE_NOOP("DBG", "First chance exception on %p (%.8X, %s)!\n"), addr, ExceptionCode, exceptionName.c_str());
else
dprintf(QT_TRANSLATE_NOOP("DBG", "First chance exception on %p (%.8X)!\n"), addr, ExceptionCode);
SetNextDbgContinueStatus(DBG_EXCEPTION_NOT_HANDLED);
if(bSkipExceptions || dbgisignoredexception(ExceptionCode))
if(skip)
return;
}
else //lock the exception
{
DbgCmdExecDirect("exinfo");
if(exceptionName.size())
dprintf(QT_TRANSLATE_NOOP("DBG", "Last chance exception on %p (%.8X, %s)!\n"), addr, ExceptionCode, exceptionName.c_str());
else