diff options
author | Tom Tromey <tom@tromey.com> | 2017-04-26 22:03:08 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-08-03 07:58:55 -0600 |
commit | 6e7bc05c53fe65089f290757a72508356b491a6f (patch) | |
tree | e1e40d2cf301a11c550259e08ca5778f20196e47 /gdb/cli/cli-script.c | |
parent | 4a45905b825ef230a3fbf6bb7857339b39e5af16 (diff) | |
download | gdb-6e7bc05c53fe65089f290757a72508356b491a6f.zip gdb-6e7bc05c53fe65089f290757a72508356b491a6f.tar.gz gdb-6e7bc05c53fe65089f290757a72508356b491a6f.tar.bz2 |
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.
Diffstat (limited to 'gdb/cli/cli-script.c')
0 files changed, 0 insertions, 0 deletions