From 76f9c9cfd42eb8df90ce8455a92109c0f71b41e1 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 11 Aug 2017 15:02:04 -0600 Subject: Use ui_out_emit_tuple in more places This changes more places to use ui_out_emit_tuple, removing cleanups. ChangeLog 2017-09-09 Tom Tromey * target.c (flash_erase_command): Use ui_out_emit_tuple. * stack.c (print_frame): Use ui_out_emit_tuple. * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple. (info_spu_mailbox_command, info_spu_dma_command) (info_spu_proxydma_command): Likewise. * mi/mi-main.c (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple, gdb::byte_vector, bin2hex. * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use ui_out_emit_tuple. * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple. --- gdb/target.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gdb/target.c') diff --git a/gdb/target.c b/gdb/target.c index 3312b89..2f7f317 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -3926,9 +3926,7 @@ flash_erase_command (char *cmd, int from_tty) found_flash_region = true; target_flash_erase (m->lo, m->hi - m->lo); - struct cleanup *cleanup_tuple - = make_cleanup_ui_out_tuple_begin_end (current_uiout, - "erased-regions"); + ui_out_emit_tuple tuple_emitter (current_uiout, "erased-regions"); current_uiout->message (_("Erasing flash memory region at address ")); current_uiout->field_fmt ("address", "%s", paddress (gdbarch, @@ -3936,7 +3934,6 @@ flash_erase_command (char *cmd, int from_tty) current_uiout->message (", size = "); current_uiout->field_fmt ("size", "%s", hex_string (m->hi - m->lo)); current_uiout->message ("\n"); - do_cleanups (cleanup_tuple); } } -- cgit v1.1