]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Introduce and use flush_streams
authorTom Tromey <tom@tromey.com>
Mon, 13 Apr 2020 18:42:59 +0000 (12:42 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 13 Apr 2020 20:10:04 +0000 (14:10 -0600)
commitc1cd3163d99efe4f7cbe7f228859fd93f28e06bb
treef2d1b73cc5091ec29f88ea2ba2ad82002650c73d
parent29f2bf4f224c7b6a02b4acc3e1c22fd776dbc013
Introduce and use flush_streams

Code in gdbsupport can't call gdb_flush, so this introduces a new
"flush_streams" function that must be supplied by the client.

Note that the similar gdb_flush_out_err exists, but it isn't defined
in quite the same way, so it wasn't clear to me whether the two could
be merged.

gdb/ChangeLog
2020-04-13  Tom Tromey  <tom@tromey.com>

* utils.c (flush_streams): New function.
* event-loop.c (gdb_wait_for_event): Call flush_streams.

gdbsupport/ChangeLog
2020-04-13  Tom Tromey  <tom@tromey.com>

* errors.h (flush_streams): Declare.
gdb/ChangeLog
gdb/event-loop.c
gdb/utils.c
gdbsupport/ChangeLog
gdbsupport/errors.h