From fe3adccffd7a62096af96228a280a6457deb5896 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 26 Nov 2019 12:12:02 -0500 Subject: [PATCH] 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 --- gdb/ChangeLog | 5 +++++ gdb/inferior.h | 2 -- gdb/inflow.c | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9d875fdd43c..8bba12ad4c4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-11-26 Simon Marchi + + * inferior.h (info_terminal_command): Remove declaration. + * inflow.c (info_terminal_command): Make static. + 2019-11-26 Simon Marchi * inferior.c (exit_inferior_silent): Remove. diff --git a/gdb/inferior.h b/gdb/inferior.h index 43f0417e629..3bd9e8c3d74 100644 --- a/gdb/inferior.h +++ b/gdb/inferior.h @@ -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); diff --git a/gdb/inflow.c b/gdb/inflow.c index 6d645d291a7..c8661796645 100644 --- a/gdb/inflow.c +++ b/gdb/inflow.c @@ -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); -- 2.30.2