PATCH: Support Windows in event-loop.c

Mark Mitchell mark@codesourcery.com
Mon Apr 25 15:18:00 GMT 2005


Daniel Jacobowitz wrote:

>>Does that seem like a workable plan to you?
>  
> I don't think we should add something this limited.

OK.  I'll go code up something select-like for Windows.

It will not be fully general because each new kind of event we want to 
wait for will in general require a new API call, and I can't enumerate 
what the eventual complete set might be.  (In UNIX, everything is a file 
descriptor from this point of view; not true in Windows.)  However, it 
will at least have the right interface.

I'm not personally aware of how to get anything other than a console 
handle into this loop.  Can you give me a test procedure that should get 
me something else, given the currently limited functionality on 
(non-Cygwin) Windows?  Otherwise, I'd still prefer to add the generality 
to select once I can test what I'm dealing with.

Thanks,

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



More information about the Gdb-patches mailing list