This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 08/15] Remove info_terminal_command declaration, make definition static
- From: Simon Marchi <simon dot marchi at efficios dot com>
- To: gdb-patches at sourceware dot org
- Cc: Simon Marchi <simon dot marchi at efficios dot com>
- Date: Mon, 25 Nov 2019 00:26:48 -0500
- Subject: [PATCH 08/15] Remove info_terminal_command declaration, make definition static
- Dkim-filter: OpenDKIM Filter v2.10.3 mail.efficios.com 85AAC3474F5
- References: <20191125052655.22696-1-simon.marchi@efficios.com>
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/inferior.h | 2 --
gdb/inflow.c | 2 +-
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/gdb/inferior.h b/gdb/inferior.h
index 43f0417e6296..3bd9e8c3d747 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 9b78301f254f..be9943e8a036 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.24.0