Make gdb_flush also flush the wrap buffer
authorIain Buclaw <ibuclaw@gdcproject.org>
Wed, 5 Feb 2020 11:25:09 +0000 (12:25 +0100)
committerTom Tromey <tromey@adacore.com>
Fri, 7 Feb 2020 20:07:39 +0000 (13:07 -0700)
commitff491e6bfc2db2c76295e81b7c85d8d405d0f2f2
tree7d3a273afa3db849debaef7e29d221407f75859b
parent76f5096cd444948843f5bf65eee33c32881d6332
Make gdb_flush also flush the wrap buffer

This changes gdb_flush to also flush the internal wrap buffer.  A few
places needed to continue using the previous approach, so this also
introduces ui_file_flush for those.

gdb/ChangeLog
2020-02-05  Iain Buclaw  <ibuclaw@gdcproject.org>

        * gdb/event-loop.c (gdb_wait_for_event): Update.
        * gdb/printcmd.c (printf_command): Update.
        * gdb/remote-fileio.c (remote_fileio_func_write): Update.
        * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
        (gdb_os_flush_stderr): Update.
        * gdb/remote.c (remote_console_output): Update.
        * gdb/ui-file.c (gdb_flush): Rename to...
        (ui_file_flush): ...this.
        (stderr_file::write): Update.
        (stderr_file::puts): Update.
        * gdb/ui-file.h (gdb_flush): Rename to...
        (ui_file_flush): ...this.
        * gdb/utils.c (gdb_flush): Add function.
        * gdb/utils.h (gdb_flush): Add declaration.

Change-Id: I7ca143d30f03dc39f218f6e880eb9bca9e15af39
gdb/ChangeLog
gdb/event-loop.c
gdb/event-top.c
gdb/printcmd.c
gdb/remote-fileio.c
gdb/remote-sim.c
gdb/remote.c
gdb/ui-file.c
gdb/ui-file.h
gdb/utils.c
gdb/utils.h
This page took 0.038205 seconds and 4 git commands to generate.