binutils-gdb/gdb/mi
Pedro Alves 05779d57f9 Make {get,set}_inferior_io_terminal inferior methods
This converts the get_inferior_io_terminal and
set_inferior_io_terminal free functions to inferior methods.

Since the related commands are called "tty", "{set,show}
inferior-tty", and MI's "-inferior-tty-{set,show}", to make the
connection between the commands and the code more obvious, the methods
are named set_tty/tty instead of set_io_terminal/io_terminal.

gdb/ChangeLog:

	* fork-child.c (prefork_hook): Adjust.
	* infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
	Delete.
	(set_inferior_tty_command, show_inferior_tty_command): Adjust.
	* inferior.c (inferior::set_tty, inferior::tty): New methods.
	* inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
	Remove declarations.
	(struct inferior) <set_tty, tty>: New methods.
	(struct inferior) <terminal>: Rename to ...
	(struct inferior) <m_terminal>: ... this and make private.
	* main.c (captured_main_1): Adjust.
	* mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
	(mi_cmd_inferior_tty_show): Adjust.
	* nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
	* windows-nat.c (windows_nat_target::create_inferior): Adjust.
2020-06-27 14:56:05 +01:00
..
ChangeLog-1999-2003
mi-cmd-break.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-cmd-break.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-cmd-catch.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-cmd-disas.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-cmd-env.c Make {get,set}_inferior_io_terminal inferior methods 2020-06-27 14:56:05 +01:00
mi-cmd-file.c Remove ALL_SO_LIBS and so_list_head 2020-05-08 14:21:22 -06:00
mi-cmd-info.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-cmd-stack.c gdb: remove TYPE_CODE macro 2020-05-14 13:46:38 -04:00
mi-cmd-target.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-cmd-var.c gdb: remove TYPE_CODE macro 2020-05-14 13:46:38 -04:00
mi-cmds.c gdb: add back declarations for _initialize functions 2020-01-13 14:01:38 -05:00
mi-cmds.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-common.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-common.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-console.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-console.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-getopt.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-getopt.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-interp.c Move event-loop.[ch] to gdbsupport/ 2020-04-13 14:10:04 -06:00
mi-interp.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-main.c gdb: remove TYPE_CODE macro 2020-05-14 13:46:38 -04:00
mi-main.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-out.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-out.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-parse.c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-parse.h Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mi-symbol-cmds.c Change get_objfile_arch to a method on objfile 2020-04-18 08:35:04 -06:00