From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5540 invoked by alias); 14 Aug 2011 12:14:59 -0000 Received: (qmail 5504 invoked by uid 22791); 14 Aug 2011 12:14:38 -0000 X-SWARE-Spam-Status: No, hits=-7.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 14 Aug 2011 12:14:22 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p7ECEDpp031108 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 14 Aug 2011 08:14:13 -0400 Received: from host1.jankratochvil.net (ovpn-116-17.ams2.redhat.com [10.36.116.17]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p7ECEAOL006083 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 14 Aug 2011 08:14:12 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p7ECEA5c029277; Sun, 14 Aug 2011 14:14:10 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p7ECE8RR029270; Sun, 14 Aug 2011 14:14:08 +0200 Date: Sun, 14 Aug 2011 12:14:00 -0000 From: Jan Kratochvil To: Abhijit Halder Cc: Sergio Durigan Junior , Eli Zaretskii , tromey@redhat.com, pedro@codesourcery.com, gdb-patches@sourceware.org Subject: Re: [PATCH] An implementation of pipe to make I/O communication between gdb and shell. [MinGW question] Message-ID: <20110814121407.GA29236@host1.jankratochvil.net> References: <83pqkjx578.fsf@gnu.org> <20110813205053.GB22058@host1.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-08/txt/msg00284.txt.bz2 On Sun, 14 Aug 2011 01:18:34 +0200, Abhijit Halder wrote: > On Sun, Aug 14, 2011 at 4:46 AM, Abhijit Halder > wrote: > >>> +               argv[0], argv, > >> > >> It does not work in one of the intended modes: > >> (gdb) pipe | print 1 | cat >/dev/null > >> cat: >/dev/null: No such file or directory > >> > >> You do not have to parse ARGV yourself, one can just run "/bin/sh", "-c", > >> COMMAND, NULL (sure no PEX_SEARCH needed then). > >> > > I am sure, but will this wrok in windows platform? > >> And the documentation, NEWS entry and testcase is missing as already noted. > >> > Sorry for the typo. I meant to say I am NOT sure whether the given > solution will work in windows platform. I guess it will work in Cygwin but it probably does not work in MinGW but that is outside of my knowledge, MinGW advice needed, thanks for noticing it. Thanks, Jan