This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Change open_terminal_stream to return a gdb_file_up
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Thu, 03 Aug 2017 13:46:24 -0400
- Subject: [binutils-gdb] Change open_terminal_stream to return a gdb_file_up
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 6e7bc05c53fe65089f290757a72508356b491a6f ***
Author: Tom Tromey <tom@tromey.com>
Branch: master
Commit: 6e7bc05c53fe65089f290757a72508356b491a6f
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.