Change open_terminal_stream to return a gdb_file_up
authorTom Tromey <tom@tromey.com>
Thu, 27 Apr 2017 04:03:08 +0000 (22:03 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 3 Aug 2017 13:58:55 +0000 (07:58 -0600)
commit6e7bc05c53fe65089f290757a72508356b491a6f
treee1e40d2cf301a11c550259e08ca5778f20196e47
parent4a45905b825ef230a3fbf6bb7857339b39e5af16
Change open_terminal_stream to return a gdb_file_up

This changes open_terminal_stream to return a gdb_file_up, eliminating
another use of make_cleanup_fclose.  Arguably perhaps new_ui should
take ownership of the files using a move, but there is at least one
spot where this isn't appropriate (or at least not currently done), so
I elected to use a more minimal approach.

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

* top.c (open_terminal_stream): Return gdb_file_up.
(new_ui_command): Update.
gdb/ChangeLog
gdb/top.c