Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Yao Qi <yao@codesourcery.com>
To: <gdb-patches@sourceware.org>
Subject: [obv] Make 'disable_display' static.
Date: Fri, 11 Jan 2013 02:14:00 -0000	[thread overview]
Message-ID: <1357870430-19757-1-git-send-email-yao@codesourcery.com> (raw)

Hi,
disable_display is only called by disable_current_display in
printcmd.c, so we can make it static.  I'll apply it in two days.

gdb:

2013-01-11  Yao Qi  <yao@codesourcery.com>

	* breakpoint.h (disable_display): Remove declaration.
	* printcmd.c (disable_display): Make it static.
---
 gdb/breakpoint.h |    2 --
 gdb/printcmd.c   |    2 +-
 2 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index 95dc980..0bef89b 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -1365,8 +1365,6 @@ extern void disable_current_display (void);
 
 extern void do_displays (void);
 
-extern void disable_display (int);
-
 extern void clear_displays (void);
 
 extern void disable_breakpoint (struct breakpoint *);
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index a576d88..d47adb6 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -1803,7 +1803,7 @@ do_displays (void)
 /* Delete the auto-display which we were in the process of displaying.
    This is done when there is an error or a signal.  */
 
-void
+static void
 disable_display (int num)
 {
   struct display *d;
-- 
1.7.7.6


             reply	other threads:[~2013-01-11  2:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-11  2:14 Yao Qi [this message]
2013-01-11  8:07 ` Eli Zaretskii
2013-01-11  8:51   ` Yao Qi
2013-01-11 10:22     ` Eli Zaretskii
2013-01-11 11:32   ` Joel Brobecker
2013-01-11 14:39   ` Tom Tromey
2013-01-11 15:01     ` Pedro Alves
2013-01-11 15:27     ` Gary Benson

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=1357870430-19757-1-git-send-email-yao@codesourcery.com \
    --to=yao@codesourcery.com \
    --cc=gdb-patches@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