Remove info_terminal_command declaration, make definition static

The info_terminal_command declaration in inflow.h does not match the
current definition.  It is not needed anyway, as info_terminal_command
is only used locally, so remove it and make the definition static.

gdb/ChangeLog:

	* inferior.h (info_terminal_command): Remove declaration.
	* inflow.c (info_terminal_command): Make static.

Change-Id: I22c3fcc44244e3cf877b5e27eff189af11c39503
This commit is contained in:
Simon Marchi 2019-11-26 12:12:02 -05:00
parent b926335f33
commit fe3adccffd
3 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2019-11-26 Simon Marchi <simon.marchi@efficios.com>
* inferior.h (info_terminal_command): Remove declaration.
* inflow.c (info_terminal_command): Make static.
2019-11-26 Simon Marchi <simon.marchi@efficios.com>
* inferior.c (exit_inferior_silent): Remove.

View File

@ -159,8 +159,6 @@ extern void default_print_float_info (struct gdbarch *gdbarch,
extern void child_terminal_info (struct target_ops *self, const char *, int);
extern void info_terminal_command (char *, int);
extern void child_terminal_ours (struct target_ops *self);
extern void child_terminal_ours_for_output (struct target_ops *self);

View File

@ -673,7 +673,7 @@ swap_terminal_info (inferior *a, inferior *b)
std::swap (a->terminal_state, b->terminal_state);
}
void
static void
info_terminal_command (const char *arg, int from_tty)
{
target_terminal::info (arg, from_tty);