1
0
Fork 0

DBG: unregister dbghelp callback when doing dbghelp cleanup (might have to do with issue #303)

This commit is contained in:
Mr. eXoDia 2015-07-14 01:21:58 +02:00
parent f5d408a187
commit 8ff5012cd5
1 changed files with 2 additions and 0 deletions

View File

@ -1173,6 +1173,7 @@ DWORD WINAPI threadDebugLoop(void* lpParameter)
stopInfo.reserved = 0; stopInfo.reserved = 0;
plugincbcall(CB_STOPDEBUG, &stopInfo); plugincbcall(CB_STOPDEBUG, &stopInfo);
//cleanup dbghelp //cleanup dbghelp
SafeSymRegisterCallback64(fdProcessInfo->hProcess, nullptr, 0);
SafeSymCleanup(fdProcessInfo->hProcess); SafeSymCleanup(fdProcessInfo->hProcess);
//message the user/do final stuff //message the user/do final stuff
RemoveAllBreakPoints(UE_OPTION_REMOVEALL); //remove all breakpoints RemoveAllBreakPoints(UE_OPTION_REMOVEALL); //remove all breakpoints
@ -1438,6 +1439,7 @@ DWORD WINAPI threadAttachLoop(void* lpParameter)
stopInfo.reserved = 0; stopInfo.reserved = 0;
plugincbcall(CB_STOPDEBUG, &stopInfo); plugincbcall(CB_STOPDEBUG, &stopInfo);
//cleanup dbghelp //cleanup dbghelp
SafeSymRegisterCallback64(fdProcessInfo->hProcess, nullptr, 0);
SafeSymCleanup(fdProcessInfo->hProcess); SafeSymCleanup(fdProcessInfo->hProcess);
//message the user/do final stuff //message the user/do final stuff
RemoveAllBreakPoints(UE_OPTION_REMOVEALL); //remove all breakpoints RemoveAllBreakPoints(UE_OPTION_REMOVEALL); //remove all breakpoints