diff options
author | Tom Tromey <tom@tromey.com> | 2017-09-09 09:16:49 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-09-09 13:46:04 -0600 |
commit | dc9fe180a4437b437015a8b835d05e32d64dff3d (patch) | |
tree | 10445ce96625632b46c715fdc7bcb55906b119c4 /gdb/ui-out.c | |
parent | f8cc3da6e4548529eabb1ff4e9693261aae1cfee (diff) | |
download | gdb-dc9fe180a4437b437015a8b835d05e32d64dff3d.zip gdb-dc9fe180a4437b437015a8b835d05e32d64dff3d.tar.gz gdb-dc9fe180a4437b437015a8b835d05e32d64dff3d.tar.bz2 |
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.
Diffstat (limited to 'gdb/ui-out.c')
-rw-r--r-- | gdb/ui-out.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/gdb/ui-out.c b/gdb/ui-out.c index 9c27742..97207f5 100644 --- a/gdb/ui-out.c +++ b/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) { |