This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Remove excess calls to gdb_flush


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]