From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28411 invoked by alias); 27 May 2005 23:35:40 -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 28367 invoked by uid 22791); 27 May 2005 23:35:33 -0000 Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (64.233.170.205) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 27 May 2005 23:35:33 +0000 Received: by rproxy.gmail.com with SMTP id a36so548937rnf for ; Fri, 27 May 2005 16:35:32 -0700 (PDT) Received: by 10.11.118.76 with SMTP id q76mr14930cwc; Fri, 27 May 2005 16:35:32 -0700 (PDT) Received: by 10.11.99.15 with HTTP; Fri, 27 May 2005 16:35:32 -0700 (PDT) Message-ID: <7f45d9390505271635729a687e@mail.gmail.com> Date: Fri, 27 May 2005 23:35:00 -0000 From: Shaun Jackman Reply-To: Shaun Jackman To: gdb@sources.redhat.com Subject: Re: arm-elf-run and ANSI escape sequences In-Reply-To: <20050527191627.GB18636@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <7f45d9390505271202e8db5bf@mail.gmail.com> <20050527191627.GB18636@nevyn.them.org> X-SW-Source: 2005-05/txt/msg00360.txt.bz2 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? Thanks, Shaun