On 1/28/20 2:43 PM, Rémi Bernon wrote:
If we want to have the later scenario be race-free, it would require to link the debug even only when the servicing thread is suspended. Or, to synchronize the servicing and exception thread somehow so that the servicing always does its select request first.
Or maybe, as a simpler solution, hiding the problem by synchronizing DbgBreakProcess and WaitForDebugEvent.