Hi Rémi,
On 27/01/2020 13:07, Rémi Bernon wrote:
The APC_BREAK_PROCESS call creates a thread that raises an exception, suspending the whole process. There's a race condition between this thread and the APC thread notifying the server of its completion.
What's wrong about that? Suspending process on thread creation shouldn't be a problem. The debugger should process this event, which will resume the new thread and let it continue to the break point. Before introducing APC_BREAK_PROCESS I had to fix it in another place in winedbg, see commit 1bb98982d682a85b82e, maybe there is similar problem in gdb proxy?
Thanks,
Jacek