Unlock breakpoint lock for access violation/guard page custom handlers

Cleaner implementation of #40, credit to @linsmod for finding the bug
This commit is contained in:
Duncan Ogilvie 2026-08-05 00:03:35 +02:00
parent ccac889f27
commit d932d747d1
1 changed files with 3 additions and 0 deletions

View File

@ -1193,6 +1193,9 @@ __declspec(dllexport) void TITCALL DebugLoop()
// Debuggee generated the GUARD_PAGE or ACCESS_VIOLATION exception
if(DBGCode == DBG_EXCEPTION_NOT_HANDLED)
{
// User callbacks may block while another thread calls an API that takes this lock.
breakpointLock.unlock();
if(isAccessViolation)
{
if(DBGCustomHandler->chAccessViolation != NULL)