introduce ui_file_write_for_put
authorTom Tromey <tromey@redhat.com>
Fri, 12 Dec 2014 21:12:12 +0000 (22:12 +0100)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 12 Dec 2014 21:12:12 +0000 (22:12 +0100)
commitde571fc5fbd89d21436119ca2cd9dce1375bdcb3
tree49f49c8013617b93c78f879040f470741c130d7a
parent6dddd6a5747532ef6e9703432c51680011df4e8d
introduce ui_file_write_for_put

This introduces a small helper function, ui_file_write_for_put.  It is
a wrapper for ui_write that is suitable for passing directly to
ui_file_put.

This patch also updates one existing spot to use this new function.

gdb/ChangeLog
2014-12-12  Tom Tromey  <tromey@redhat.com>

* ui-file.h (ui_file_write_for_put): Declare.
* ui-file.c (ui_file_write_for_put): New function.
* mi/mi-out.c (do_write): Remove.
(mi_out_put): Use ui_file_write_for_put.
gdb/ChangeLog
gdb/mi/mi-out.c
gdb/ui-file.c
gdb/ui-file.h