Re: [PATCH] An implementation of pipe to make I/O communication between gdb and shell.

Tom Tromey
2011-08-04T14:21:59Z

>>>>> "Pedro" == Pedro Alves <pedro@codesourcery.com> writes:

I haven't really read this thread yet, but I wanted to chime in...

>> + pipe->handle = popen (pipe->shell_cmd, pipe->mode);

Pedro> I'm not sure that'll build on all supported hosts.
Pedro> I think on Windows that may require use of _popen instead.

libiberty has the already-portable 'pexecute' code for this kind of
thing.

Tom