]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove fflush call from tui_refresh_cmd_win
authorTom Tromey <tom@tromey.com>
Fri, 26 Apr 2024 16:32:07 +0000 (10:32 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 14 May 2024 19:02:03 +0000 (13:02 -0600)
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

index 59e595525b00b8ad57064aa5c6b97f6b7bc6789f..b0ae8f39e0eb238d44e33045e28936a3072d9e36 100644 (file)
@@ -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);
 }