On 03/08/2022 14:08, Tom Tromey via Gdb-patches wrote: > This implements target async for Windows. The basic idea is to have > the worker thread block in WaitForDebugEvent, then notify the event > loop when an event is seen. In a few situations, this blocking > behavior is undesirable, so the functions passed to do_synchronously > are changed to return a boolean indicating which behavior is needed. > --- > gdb/windows-nat.c | 123 ++++++++++++++++++++++++++++++++++++++++------ > 1 file changed, 108 insertions(+), 15 deletions(-) > > diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c > index 80cdedce7b9..9c277e9a93d 100644 > --- a/gdb/windows-nat.c > +++ b/gdb/windows-nat.c > @@ -34,6 +34,7 @@ > #include > #include > #include > +#include > #include > #include > #ifdef __CYGWIN__ This breaks the build on Cygwin, as including both winsock2 and Cygwin's sys/select.h is a big no-no. I'm going to suggest the attached to fix this, but from a quick reading of the patch, I just wonder if winsock2.h is actually needed at all, as I don't immediately see anything that leaps out as needing it...