Re: [RFC 00/17] Merge event loop implementations

Tom Tromey
2019-02-25T19:57:53Z

>>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:

Eli> I'm sorry, I cannot help you with this dilemma. Not unless someone
Eli> describes in more detail the actual needs of both GDB and gdbserver
Eli> for which they call 'select'. I myself don't know enough about the
Eli> internals to give any advice.

No problem.

For gdb, this series doesn't actually change anything. So, it's really
only gdbserver that we have to be concerned with.

By my reading of the code, gdbserver on Windows can call select with
just two file descriptors: one that is a socket that is being 'listen'd
to, and another which is the result of 'accept'. (On other hosts,
gdbserver can also read from stdin, but this is explicitly rejected on
Windows.)

Eli> The long-term goal is probably to import the Gnulib implementation of
Eli> 'select', which AFAIR supports any kind of descriptors. But that
Eli> would need some adaptation work.

Do you know offhand what is needed? I didn't know that gnulib had
this... this does seem like a good way to go if possible.

Tom