diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2018-03-06 09:51:33 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2018-03-06 09:51:33 -0500 |
commit | 7ea78b5973525193eda8e379cc351c7804653216 (patch) | |
tree | 1ef5682297793f120562123d09de2911df2f328e /gdb/ui-out.h | |
parent | 531270084129e069772e68ead40c97404d1c0dd7 (diff) | |
download | binutils-7ea78b5973525193eda8e379cc351c7804653216.zip binutils-7ea78b5973525193eda8e379cc351c7804653216.tar.gz binutils-7ea78b5973525193eda8e379cc351c7804653216.tar.bz2 |
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.
Diffstat (limited to 'gdb/ui-out.h')
-rw-r--r-- | gdb/ui-out.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gdb/ui-out.h b/gdb/ui-out.h index 1708542..a415100 100644 --- a/gdb/ui-out.h +++ b/gdb/ui-out.h @@ -66,14 +66,6 @@ enum ui_out_type ui_out_type_list }; -/* Compatibility wrappers. */ - -extern struct cleanup *make_cleanup_ui_out_list_begin_end (struct ui_out *uiout, - const char *id); - -extern struct cleanup *make_cleanup_ui_out_tuple_begin_end (struct ui_out *uiout, - const char *id); - class ui_out { public: |