Remove unnecessary calls to wrap_here and gdb_flush
authorTom Tromey <tom@tromey.com>
Tue, 4 Jan 2022 00:12:22 +0000 (17:12 -0700)
committerTom Tromey <tom@tromey.com>
Tue, 29 Mar 2022 18:46:25 +0000 (12:46 -0600)
commitebfc93611b641bae0ca3ecca2ba20c7d677968b9
tree380ceb8c66bc8807d5396a64b4632b2b319783f2
parent6b0c1154230afc0bf878993f11154dd0b3adda1a
Remove unnecessary calls to wrap_here and gdb_flush

Various spots in gdb currently know about the wrap buffer, and so are
careful to call wrap_here to be certain that all output has been
flushed.

Now that the pager is just an ordinary stream, this isn't needed, and
a simple call to gdb_flush is enough.

Similarly, there are places where gdb prints to gdb_stderr, but first
flushes gdb_stdout.  stderr_file already flushes gdb_stdout, so these
aren't needed.
gdb/cli/cli-cmds.c
gdb/exceptions.c
gdb/main.c
gdb/printcmd.c
gdb/psymtab.c
gdb/top.c
gdb/utils.c