[PATCH] TUI: rewrite tui_query_hook()

Patrick Palka patrick@parcs.ath.cx
Thu Jan 8 14:27:00 GMT 2015


On Thu, Jan 8, 2015 at 9:14 AM, Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Patrick Palka <patrick@parcs.ath.cx>
>> Date: Thu, 8 Jan 2015 08:42:38 -0500
>> Cc: gdb-patches@sourceware.org
>>
>> > Given the latest discussions about buffering, don't you need to call
>> > wrefresh after the second tui_puts?
>>
>> I have been using this patch for a few months locally and have not
>> seen any buffering issues.  The recently-mentioned issues are mostly
>> Windows-related, aren't they?  I can add a wrefresh() if that is
>> what's needed to prevent potential buffering issues.
>
> I think we shouldn't assume that stdout gets flushed when a program
> reads from stdin.

That sounds like a good rule of thumb.



More information about the Gdb-patches mailing list