This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Support pipes in the run command.
- From: Thiago Jung Bauermann <bauerman at br dot ibm dot com>
- To: Oguz Kayral <oguzkayral at gmail dot com>
- Cc: gdb ml <gdb at sourceware dot org>
- Date: Thu, 05 Mar 2009 14:32:15 -0300
- Subject: Re: Support pipes in the run command.
- References: <36a35d480903050859i2b6c6391xc8cff4ee6f2645f3@mail.gmail.com>
El jue, 05-03-2009 a las 18:59 +0200, Oguz Kayral escribiÃ:
> >> Thiago > 3. Support pipes in the run command (this may be too small for a GSoC);
> >>
> >> I'm planning to spend some nights on this before GSoC starts.
>
> > Nice. Let me know if you need help. I think you won't have to mess with
> > ugly parts of GDB internals, so it's a good feature to start.
>
> Tom Tromey told me that redirecting output was already implemented in
> gdb. So what were you meaning in this e-mail?
We do have redirection, but not pipe support, i.e., having output come
from another command, not a file. But perhaps what he means is that
since we have redirection, lack of pipe support can be worked around by
redirecting the output of the first command in the pipe to a file, and
then debug your program reading from that file.
Still, IMHO it's better to directly support this use case. I've seen
people ask about it in #gdb.
--
[]'s
Thiago Jung Bauermann
IBM Linux Technology Center