Use ui_out_emit_list and ui_out_emit_tuple with gdb::optional
authorTom Tromey <tom@tromey.com>
Thu, 7 Sep 2017 03:41:40 +0000 (21:41 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 9 Sep 2017 19:46:09 +0000 (13:46 -0600)
commitc0470d489b47f0bbe57893b31d56d2d4ef945f4c
treefcc6c9efcc6c13b32df3f6d0c9a73819c8227345
parentca5909c7de7353d8005bf8fdcc020b8f14cc1603
Use ui_out_emit_list and ui_out_emit_tuple with gdb::optional

This changes a few spots to use ui_out_emit_list and/or
ui_out_emit_tuple with gdb::optional, to preserve existing behavior.
This allows for the removal of a few more cleanups.

ChangeLog
2017-09-09  Tom Tromey  <tom@tromey.com>

* mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
ui_out_emit_list, ui_out_emit_tuple.
(mi_cmd_var_update): Likewise.
gdb/ChangeLog
gdb/mi/mi-cmd-var.c