From dc9fe180a4437b437015a8b835d05e32d64dff3d Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 9 Sep 2017 09:16:49 -0600 Subject: Remove make_cleanup_ui_out_table_begin_end This changes the few remaining uses of make_cleanup_ui_out_table_begin_end to use ui_out_emit_table instead, and then removes the cleanup. ChangeLog 2017-09-09 Tom Tromey * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove. (class ui_out_emit_table): Update comment. * ui-out.c (do_cleanup_table_end) (make_cleanup_ui_out_table_begin_end): Remove. * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table. (info_spu_dma_cmdlist): Likewise. * probe.c (info_probes_for_ops): Use ui_out_emit_table. * darwin-nat-info.c (darwin_debug_regions_recurse): Use ui_out_emit_table. --- gdb/ui-out.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'gdb/ui-out.h') diff --git a/gdb/ui-out.h b/gdb/ui-out.h index 857e252..d983837 100644 --- a/gdb/ui-out.h +++ b/gdb/ui-out.h @@ -66,10 +66,6 @@ enum ui_out_type ui_out_type_list }; -extern struct cleanup *make_cleanup_ui_out_table_begin_end (struct ui_out *ui_out, - int nr_cols, - int nr_rows, - const char *tblid); /* Compatibility wrappers. */ extern struct cleanup *make_cleanup_ui_out_list_begin_end (struct ui_out *uiout, @@ -220,8 +216,8 @@ private: typedef ui_out_emit_type ui_out_emit_tuple; typedef ui_out_emit_type ui_out_emit_list; -/* This is similar to make_cleanup_ui_out_table_begin_end, but written - as an RAII class. */ +/* Start a new table on construction, and end the table on + destruction. */ class ui_out_emit_table { public: -- cgit v1.1