This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: PATCH: Support Windows in event-loop.c
> Date: Fri, 22 Apr 2005 08:08:04 -0400
> From: Christopher Faylor <me@cgf.cx>
>
> Well, again, I have a rather major technical concern about the use of
> WaitForMultipleObjects in this scenario, so as the Windows maintainer,
> I'd like to see that addressed. You can't reliably just use
> WaitForMultiple on, say, a serial port, a socket, or a pipe, so I don't
> know how this would ever work.
I'm not sure I understand what you are saying, Chris. Are you saying
that there's no known way of emulating the Posix `select' on Windows
in a way that would work on serial ports and pipes? (I assume sockets
are a non-issue, since the Windows implementation of `select' supports
them.)
Or are you saying that WaitForMultipleObjects is not the way to write
such an emulation? If so, what system calls are better candidates?
FWIW, the Emacs emulation of `select' does work on pipes, so it seems
that at least in that case there's code to borrow.
If we cannot make a `select' emulation that works for some of these
devices, we could simply document them as a limitation. That doesn't
make the Windows build worse than it is now, does it?