RFA: add 'pex_write_input' to libiberty pipeline library

Daniel Jacobowitz drow@false.org
Tue Mar 14 00:43:00 GMT 2006


On Mon, Mar 13, 2006 at 04:32:03PM -0800, Jim Blandy wrote:
> 
> DJ Delorie <dj@redhat.com> writes:
> > My question is, then, what are you trying to do with it, and will we
> > need that on djgpp?  Have you created a utility that won't function on
> > all the platforms that gcc/binutils/gdb run on?
> 
> We want to run a GDB stub from GDB using 'target remote |', on both
> Unix and MinGW.

I thought that reusing pexecute for this was a really clever idea, but
I'm a bit worried about it.

How do we plan to get input out of the pipe, at the end?  Do we use
pex_read_output, and then read from that file?  If so, I'm not sure how
we can gracefully select() on it, and that means it won't fit well into
the GDB event loop.

And that's even ignoring the issues presented by Win32 select.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gcc-patches mailing list