diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2020-02-05 12:25:09 +0100 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2020-02-07 14:06:02 -0700 |
commit | faa17681ccf5b45a14424c184d867a390d9e8086 (patch) | |
tree | 63260d1dcb10d65f984fffebca177c520eb3ac04 /gdb/utils.h | |
parent | 5abbbe1d13e03496af5564b997f3c3a2e79b4d73 (diff) | |
download | gdb-faa17681ccf5b45a14424c184d867a390d9e8086.zip gdb-faa17681ccf5b45a14424c184d867a390d9e8086.tar.gz gdb-faa17681ccf5b45a14424c184d867a390d9e8086.tar.bz2 |
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.
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
Diffstat (limited to 'gdb/utils.h')
-rw-r--r-- | gdb/utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/utils.h b/gdb/utils.h index 6a0927c..3434ff1 100644 --- a/gdb/utils.h +++ b/gdb/utils.h @@ -320,6 +320,12 @@ extern struct ui_file **current_ui_gdb_stdin_ptr (void); extern struct ui_file **current_ui_gdb_stderr_ptr (void); extern struct ui_file **current_ui_gdb_stdlog_ptr (void); +/* Flush STREAM. This is a wrapper for ui_file_flush that also + flushes any output pending from uses of the *_filtered output + functions; that output is kept in a special buffer so that + pagination and styling are handled properly. */ +extern void gdb_flush (struct ui_file *); + /* The current top level's ui_file streams. */ /* Normal results */ |