diff options
author | Tom Tromey <tom@tromey.com> | 2017-08-11 15:02:04 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-09-09 13:46:05 -0600 |
commit | 76f9c9cfd42eb8df90ce8455a92109c0f71b41e1 (patch) | |
tree | 412125e3a8e7f78d909430fbed1cd045e332828a /gdb/target.c | |
parent | dc9fe180a4437b437015a8b835d05e32d64dff3d (diff) | |
download | gdb-76f9c9cfd42eb8df90ce8455a92109c0f71b41e1.zip gdb-76f9c9cfd42eb8df90ce8455a92109c0f71b41e1.tar.gz gdb-76f9c9cfd42eb8df90ce8455a92109c0f71b41e1.tar.bz2 |
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 <tom@tromey.com>
* 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.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 5 |
1 files changed, 1 insertions, 4 deletions
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); } } |