This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Remove excess calls to gdb_flush
- From: Pedro Alves <palves at redhat dot com>
- To: Tom Tromey <tromey at adacore dot com>, gdb-patches at sourceware dot org
- Date: Tue, 5 Mar 2019 17:06:31 +0000
- Subject: Re: [PATCH] Remove excess calls to gdb_flush
- References: <20190219205426.4168-1-tromey@adacore.com>
On 02/19/2019 08:54 PM, Tom Tromey wrote:
>
> my belief being that gdb's standard output
> streams are line buffered (by inheriting the behavior from stdio)
That's only true if gdb is connected to a pty. If gdb is started with
a pipe or regular file for stdout/stderr instead, then it won't be. I
guess we could fix that with a setvbuf call at startup though.
Thanks,
Pedro Alves