aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2019-11-26 12:12:02 -0500
committerSimon Marchi <simon.marchi@efficios.com>2019-11-26 14:29:20 -0500
commitfe3adccffd7a62096af96228a280a6457deb5896 (patch)
treeb6ff876140360b872e91c375d8c1c1dcd561b816
parentb926335f334fc8019643d14d4e6d247ed787746b (diff)
downloadfsf-binutils-gdb-fe3adccffd7a62096af96228a280a6457deb5896.zip
fsf-binutils-gdb-fe3adccffd7a62096af96228a280a6457deb5896.tar.gz
fsf-binutils-gdb-fe3adccffd7a62096af96228a280a6457deb5896.tar.bz2
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
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/inferior.h2
-rw-r--r--gdb/inflow.c2
3 files changed, 6 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9d875fd..8bba12a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
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.
2019-11-26 Simon Marchi <simon.marchi@efficios.com>
diff --git a/gdb/inferior.h b/gdb/inferior.h
index 43f0417..3bd9e8c 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 6d645d2..c866179 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);