Introduce and use ui_out_emit_table
authorTom Tromey <tom@tromey.com>
Sun, 23 Apr 2017 16:21:50 +0000 (10:21 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 3 Aug 2017 13:58:51 +0000 (07:58 -0600)
commit4a2b031d5452226cf7894f313b3aac603f7ec5fb
tree8230279453a3136b5d29f238fec14112e1ae80cb
parentfd9770d81fba7ad860e8bcfbc13c77f21041f1f3
Introduce and use ui_out_emit_table

This introduces ui_out_emit_table, similar to the other existing
ui_out RAII classes, and then uses it in a number of places.  This
replaces some cleanups.

ChangeLog
2017-08-03  Tom Tromey  <tom@tromey.com>

* tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
(info_static_tracepoint_markers_command): Likewise.
* solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
* skip.c (skip_info): Use ui_out_emit_table.
* progspace.c (print_program_space): Use ui_out_emit_table.
* osdata.c (info_osdata): Use ui_out_emit_table.
* mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
ui_out_emit_table.
* linux-thread-db.c (info_auto_load_libthread_db): Use
ui_out_emit_table.
* inferior.c (print_inferior): Use ui_out_emit_table.
* gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
* breakpoint.c (breakpoint_1): Use ui_out_emit_table.
* auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
* ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
* ui-out.h (class ui_out_emit_table): New.
14 files changed:
gdb/ChangeLog
gdb/ada-tasks.c
gdb/auto-load.c
gdb/breakpoint.c
gdb/gdb_bfd.c
gdb/inferior.c
gdb/linux-thread-db.c
gdb/mi/mi-cmd-info.c
gdb/osdata.c
gdb/progspace.c
gdb/skip.c
gdb/solib.c
gdb/tracepoint.c
gdb/ui-out.h