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
On Mon, Apr 25, 2005 at 08:17:37AM -0700, Mark Mitchell wrote:
> 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.
Can't you borrow Cygwin's, or the one from Emacs that Eli referenced?
No need to reinvent the wheel.
> 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.
Try running gdb -i=mi piped to and from cat?
--
Daniel Jacobowitz
CodeSourcery, LLC