From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1770 invoked by alias); 1 May 2006 17:30:15 -0000 Received: (qmail 1762 invoked by uid 22791); 1 May 2006 17:30:14 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Mon, 01 May 2006 17:30:10 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FacDj-00028s-Au for gdb@sourceware.org; Mon, 01 May 2006 13:30:03 -0400 Date: Mon, 01 May 2006 17:30:00 -0000 From: Daniel Jacobowitz To: gdb@sourceware.org Subject: Re: MinGW gdb run in non-DOS terminal Message-ID: <20060501173003.GA8220@nevyn.them.org> Mail-Followup-To: gdb@sourceware.org References: <20060501170512.GD936@adacore.com> <20060501171137.GA7482@nevyn.them.org> <20060501172216.GE936@adacore.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060501172216.GE936@adacore.com> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-05/txt/msg00003.txt.bz2 On Mon, May 01, 2006 at 10:22:16AM -0700, Joel Brobecker wrote: > > It is roughly unsolvable. A cygwin "terminal" is in fact a Windows > > pipe; isatty() returns false, therefore the C library selects > > line-buffered mode, which is a pretty standard thing for C runtimes > > to do. > > :-(. In fact, I see the same in GPS where cygwin is nowhere in sight. What's it connected to then? A pipe or a console? > > I suppose that if the CLI is in use, you could automatically turn off > > buffering. But there may be plenty of other problems... > > Maybe we should start with that. Would you mind pointing me in the > area where this should be done? I can experiment with that and see > if we have any other obvious problems. Just use setvbuf, I presume the Microsoft runtime has that. -- Daniel Jacobowitz CodeSourcery