From 0a6b9eefc211bc6af718d65adb260c056f3c6659 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 26 Apr 2024 10:32:07 -0600 Subject: Remove fflush call from tui_refresh_cmd_win tui_refresh_cmd_win calls fflush, but there's a comment explaining that the reason for the call is unknown. This patch removes the call. I don't think it can be useful, since gdb doesn't generally use stdout in this way -- only through ui_file. --- gdb/tui/tui-command.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'gdb/tui') diff --git a/gdb/tui/tui-command.c b/gdb/tui/tui-command.c index 59e5955..b0ae8f3 100644 --- a/gdb/tui/tui-command.c +++ b/gdb/tui/tui-command.c @@ -64,9 +64,4 @@ tui_refresh_cmd_win (void) WINDOW *w = TUI_CMD_WIN->handle.get (); tui_wrefresh (w); - - /* FIXME: It's not clear why this is here. - It was present in the original tui_puts code and is kept in order to - not introduce some subtle breakage. */ - fflush (stdout); } -- cgit v1.1