Remove cleanups from disasm.c
authorTom Tromey <tom@tromey.com>
Thu, 12 Oct 2017 21:07:35 +0000 (15:07 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 17 Oct 2017 12:43:33 +0000 (06:43 -0600)
commit30f0b1015897466fb88ed26c56a0b4f42808edbc
treef11194531fbe8cd3ad3dee208df1306989c9a897
parent57e12da97f8dbe2ad5b4f59bf89c709c4d66600d
Remove cleanups from disasm.c

This changes the remaining spots in disasm.c to use the RAII ui-out
emitters, removing a few cleanups.  This also fixes a regression that
Simon pointed out.

2017-10-17  Tom Tromey  <tom@tromey.com>

* disasm.c (do_mixed_source_and_assembly_deprecated): Use
gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
(do_mixed_source_and_assembly): Likewise.
gdb/ChangeLog
gdb/disasm.c