]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
btrace: Remove ui_out cleanups users/simark/btrace-cleanups
authorSimon Marchi <simon.marchi@polymtl.ca>
Sun, 4 Mar 2018 20:56:05 +0000 (15:56 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Mon, 5 Mar 2018 22:09:15 +0000 (17:09 -0500)
commit7ccb006d857734ad3292ea97db2180a76dd23a2c
tree29cb635bafd2ca02152c74da4013828a8d4c3955
parentf3564073fe1f956c8791c2ae3822db5b359365f6
btrace: Remove ui_out cleanups

This patch replaces the cleanups that close the list and tuple of the
btrace instruction history output with ui_out_emit_tuple and
ui_out_emit_list.

This allows removing make_cleanup_ui_out_tuple_begin_end and
make_cleanup_ui_out_list_begin_end.

This patch (along with the previous ones in the series) was regtested on
the buildbot.

gdb/ChangeLog:

* record-btrace.c (btrace_print_lines): Replace cleanup
parameter with RAII equivalents.
(btrace_insn_history): Replace cleanup with RAII equivalents.
* ui-out.h (make_cleanup_ui_out_list_begin_end,
make_cleanup_ui_out_tuple_begin_end): Remove.
* ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
make_cleanup_ui_out_list_begin_end): Remove.
gdb/record-btrace.c
gdb/ui-out.c
gdb/ui-out.h