From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1485 invoked by alias); 5 Mar 2009 17:32:25 -0000 Received: (qmail 1476 invoked by uid 22791); 5 Mar 2009 17:32:24 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from e24smtp03.br.ibm.com (HELO e24smtp03.br.ibm.com) (32.104.18.24) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 05 Mar 2009 17:32:19 +0000 Received: from mailhub1.br.ibm.com (mailhub1.br.ibm.com [9.18.232.109]) by e24smtp03.br.ibm.com (8.13.1/8.13.1) with ESMTP id n25HTRNX003002 for ; Thu, 5 Mar 2009 14:29:27 -0300 Received: from d24av01.br.ibm.com (d24av01.br.ibm.com [9.18.232.46]) by mailhub1.br.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n25HWWOa1495142 for ; Thu, 5 Mar 2009 14:32:32 -0300 Received: from d24av01.br.ibm.com (loopback [127.0.0.1]) by d24av01.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n25HWGYD015642 for ; Thu, 5 Mar 2009 14:32:16 -0300 Received: from [9.18.200.51] ([9.18.200.51]) by d24av01.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id n25HWGkC015636; Thu, 5 Mar 2009 14:32:16 -0300 Subject: Re: Support pipes in the run command. From: Thiago Jung Bauermann To: Oguz Kayral Cc: gdb ml In-Reply-To: <36a35d480903050859i2b6c6391xc8cff4ee6f2645f3@mail.gmail.com> References: <36a35d480903050859i2b6c6391xc8cff4ee6f2645f3@mail.gmail.com> Content-Type: text/plain; charset=UTF-8 Date: Thu, 05 Mar 2009 17:32:00 -0000 Message-Id: <1236274335.28372.30.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Mail-Followup-To: gdb@sourceware.org X-SW-Source: 2009-03/txt/msg00053.txt.bz2 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