This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]