[binutils-gdb] Change open_terminal_stream to return a gdb_file_up

sergiodj+buildbot@sergiodj.net sergiodj+buildbot@sergiodj.net
Thu Aug 3 17:46:00 GMT 2017


*** 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.



More information about the Gdb-testers mailing list