public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
From: Simon Marchi <simark@sourceware.org>
To: gdb-cvs@sourceware.org
Subject: [binutils-gdb] Remove info_terminal_command declaration, make definition static
Date: Tue, 26 Nov 2019 19:48:00 -0000	[thread overview]
Message-ID: <20191126194851.19049.qmail@sourceware.org> (raw)

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


                 reply	other threads:[~2019-11-26 19:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191126194851.19049.qmail@sourceware.org \
    --to=simark@sourceware.org \
    --cc=gdb-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).