Make current_ui_out be per UI
authorPedro Alves <palves@redhat.com>
Tue, 21 Jun 2016 00:11:48 +0000 (01:11 +0100)
committerPedro Alves <palves@redhat.com>
Tue, 21 Jun 2016 00:11:48 +0000 (01:11 +0100)
commitb6dcde571e1a230d12fc483ba6d38a1253ab097e
tree84ac376d97a1f55df78e029ce77794e6d0a2f1da
parent23ff98d2fed4a1eaeb815e18cd4169e5aa7aaa60
Make current_ui_out be per UI

Similarly to gdb_stdout&co.

gdb/ChangeLog:
2016-06-21  Pedro Alves  <palves@redhat.com>

* top.c: Call gen_ret_current_ui_field_ptr for current_uiout.
* top.h (struct ui) <m_current_uiout>: New field.
* ui-out.c (current_uiout): Delete.
* ui-out.h (current_uiout): Delete.
(current_ui_current_uiout_ptr): New declaration.
(current_uiout): Reimplement as wrapper around
current_ui_current_uiout_ptr.
gdb/ChangeLog
gdb/top.c
gdb/top.h
gdb/ui-out.c
gdb/ui-out.h