From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22195 invoked by alias); 28 May 2005 00:12:51 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 22167 invoked by uid 22791); 28 May 2005 00:12:42 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sat, 28 May 2005 00:12:42 +0000 Received: from drow by nevyn.them.org with local (Exim 4.50) id 1DbowR-0006ki-T0; Fri, 27 May 2005 20:12:39 -0400 Date: Sat, 28 May 2005 00:12:00 -0000 From: Daniel Jacobowitz To: Shaun Jackman Cc: gdb@sources.redhat.com Subject: Re: arm-elf-run and ANSI escape sequences Message-ID: <20050528001239.GB25921@nevyn.them.org> Mail-Followup-To: Shaun Jackman , gdb@sources.redhat.com References: <7f45d9390505271202e8db5bf@mail.gmail.com> <20050527191627.GB18636@nevyn.them.org> <7f45d9390505271635729a687e@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7f45d9390505271635729a687e@mail.gmail.com> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-05/txt/msg00362.txt.bz2 On Fri, May 27, 2005 at 04:35:32PM -0700, Shaun Jackman wrote: > On 5/27/05, Daniel Jacobowitz wrote: > > GDB doesn't use ptys. You'll need to find out what is actually being > > written to the screen. > > Thanks for the quick reply, Daniel. It seems that my trouble is due to > the output from the simulator being line buffered. I've checked that > this line buffering is not being done by the ARM binary being > executed. It appears to be done by GDB (arm-elf-run) or its terminal, > or... > > My quick test is... > fputs("Hello, ", stdout); > getchar(); > puts("world!"); > > The getchar() flushes stdout, but nothing is displayed. Upon pushing > Enter, "Hello, world!" is displayed. > > Do you have an idea as to which component in the output stream is > doing the buffering? Not a clue. This may be defined by the ARM simulator interface, or it may be an accident. -- Daniel Jacobowitz CodeSourcery, LLC