mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-31 18:20:12 +08:00
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 <tom@tromey.com> * 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.
This commit is contained in:
16
gdb/ui-out.c
16
gdb/ui-out.c
@ -400,22 +400,6 @@ ui_out::table_end ()
|
||||
m_table_up = nullptr;
|
||||
}
|
||||
|
||||
static void
|
||||
do_cleanup_table_end (void *data)
|
||||
{
|
||||
ui_out *uiout = (ui_out *) data;
|
||||
|
||||
uiout->table_end ();
|
||||
}
|
||||
|
||||
struct cleanup *
|
||||
make_cleanup_ui_out_table_begin_end (ui_out *uiout, int nr_cols, int nr_rows,
|
||||
const char *tblid)
|
||||
{
|
||||
uiout->table_begin (nr_cols, nr_rows, tblid);
|
||||
return make_cleanup (do_cleanup_table_end, uiout);
|
||||
}
|
||||
|
||||
void
|
||||
ui_out::begin (ui_out_type type, const char *id)
|
||||
{
|
||||
|
Reference in New Issue
Block a user