This is the mail archive of the gdb-patches@sources.redhat.com 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: PATCH: Support Windows in event-loop.c


M.M. Kettenis wrote:

That seems to suggest that some kind of generic select or poll
implementation needs to be developed, probably using threads.

Over my dead body (the threads part that is).

There is no way to implement the full generality of select on Windows without threads.


Based on all the feedback, what I plan to do is simply take the code I've written, package it up in gdb_select, implementing support for consoles, and declare victory. That avoids using non-POSIX APIs in common code, and provides useful functionality on Windows. It may not support everything (like the MI), that's no worse than the current state. Then, we can argue about how/if to use threads to support more generality.

If there are any objections to the above plan, I'd appreciate hearing them soon, as I'll be working on this code later today.

Thanks,

--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304


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