From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16724 invoked by alias); 12 Apr 2007 18:23:43 -0000 Received: (qmail 16708 invoked by uid 22791); 12 Apr 2007 18:23:43 -0000 X-Spam-Check-By: sourceware.org Received: from return.false.org (HELO return.false.org) (66.207.162.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 12 Apr 2007 19:23:40 +0100 Received: from return.false.org (localhost [127.0.0.1]) by return.false.org (Postfix) with ESMTP id 21DD14B267 for ; Thu, 12 Apr 2007 13:23:39 -0500 (CDT) Received: from caradoc.them.org (dsl093-172-095.pit1.dsl.speakeasy.net [66.93.172.95]) by return.false.org (Postfix) with ESMTP id 00DD54B262 for ; Thu, 12 Apr 2007 13:23:39 -0500 (CDT) Received: from drow by caradoc.them.org with local (Exim 4.63) (envelope-from ) id 1Hc3xK-0000D2-6V for gdb@sourceware.org; Thu, 12 Apr 2007 14:23:38 -0400 Date: Thu, 12 Apr 2007 18:23:00 -0000 From: Daniel Jacobowitz To: gdb@sourceware.org Subject: Re: [mingw32] stdin redirection Message-ID: <20070412182338.GA30608@caradoc.them.org> Mail-Followup-To: gdb@sourceware.org References: <20070411134219.GA33609@adacore.com> <20070411144451.GA21140@caradoc.them.org> <20070411145104.GE58502@adacore.com> <20070411151234.GA22185@caradoc.them.org> <20070412145818.GG3886@adacore.com> <20070412151221.GA856@caradoc.them.org> <20070412155253.GH3886@adacore.com> <20070412160356.GA15004@caradoc.them.org> <20070412163113.GK3886@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070412163113.GK3886@adacore.com> User-Agent: Mutt/1.5.15 (2007-04-09) 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 X-SW-Source: 2007-04/txt/msg00083.txt.bz2 I can no longer find a reference for my assertion that waiting on a pipe was equivalent to WaitNamedPipe. I definitely got it from MSDN at the time, but MSDN is huge... On Thu, Apr 12, 2007 at 06:31:13PM +0200, Joel Brobecker wrote: > 3. Pipe handle ("cat cmds | gdb"): fd_is_pipe return 1 > Works, except that I suspect that the EOF is detected as an > exception condition: > (gdb) Exception condition detected on fd 0 > error detected on stdin Well, it is an exception condition, really... I'll try connecting to a remote target without the pipe code. > > Of course the console will be a little wonky because of buffering. > > Based on one of your recommendation, I modified our sources a while > ago to fix the flushing so that the output would not be garbled. > I offered to post a patch, but noone reacted. I'm reiterating the > offer today... Please. -- Daniel Jacobowitz CodeSourcery