public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Remove info_terminal_command declaration, make definition static
@ 2019-11-26 19:48 Simon Marchi
  0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2019-11-26 19:48 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=fe3adccffd7a62096af96228a280a6457deb5896

commit fe3adccffd7a62096af96228a280a6457deb5896
Author: Simon Marchi <simon.marchi@efficios.com>
Date:   Tue Nov 26 12:12:02 2019 -0500

    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

Diff:
---
 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 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);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-11-26 19:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-26 19:48 [binutils-gdb] Remove info_terminal_command declaration, make definition static Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).