aboutsummaryrefslogtreecommitdiff
path: root/gdb/ui-out.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2016-06-21 01:11:48 +0100
committerPedro Alves <palves@redhat.com>2016-06-21 01:11:48 +0100
commitb6dcde571e1a230d12fc483ba6d38a1253ab097e (patch)
tree84ac376d97a1f55df78e029ce77794e6d0a2f1da /gdb/ui-out.h
parent23ff98d2fed4a1eaeb815e18cd4169e5aa7aaa60 (diff)
downloadgdb-b6dcde571e1a230d12fc483ba6d38a1253ab097e.zip
gdb-b6dcde571e1a230d12fc483ba6d38a1253ab097e.tar.gz
gdb-b6dcde571e1a230d12fc483ba6d38a1253ab097e.tar.bz2
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.
Diffstat (limited to 'gdb/ui-out.h')
-rw-r--r--gdb/ui-out.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/ui-out.h b/gdb/ui-out.h
index 905d73c..9e1e74d 100644
--- a/gdb/ui-out.h
+++ b/gdb/ui-out.h
@@ -32,7 +32,8 @@ struct ui_file;
/* FIXME: This should not be a global but something passed down from main.c
or top.c. */
-extern struct ui_out *current_uiout;
+extern struct ui_out **current_ui_current_uiout_ptr (void);
+#define current_uiout (*current_ui_current_uiout_ptr ())
/* alignment enum */
enum ui_align