From 4a2b031d5452226cf7894f313b3aac603f7ec5fb Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 23 Apr 2017 10:21:50 -0600 Subject: 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 * 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. --- gdb/osdata.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gdb/osdata.c') diff --git a/gdb/osdata.c b/gdb/osdata.c index b9014dd..5458e2f 100644 --- a/gdb/osdata.c +++ b/gdb/osdata.c @@ -337,8 +337,7 @@ info_osdata (const char *type) } } - make_cleanup_ui_out_table_begin_end (uiout, ncols, nrows, - "OSDataTable"); + ui_out_emit_table table_emitter (uiout, ncols, nrows, "OSDataTable"); /* With no columns/items, we just output an empty table, but we still output the table. This matters for MI. */ -- cgit v1.1