public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Change some remote.c globals to "static"
@ 2019-05-08 16:46 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2019-05-08 16:46 UTC (permalink / raw)
  To: gdb-cvs

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

commit 60fcc1c3d0d8f1e271b19210b1707b4aa589f273
Author: Tom Tromey <tromey@adacore.com>
Date:   Wed May 1 12:37:46 2019 -0600

    Change some remote.c globals to "static"
    
    I noticed a three globals in remote.c that could be static.  This
    patch makes this change.
    
    gdb/ChangeLog
    2019-05-08  Tom Tromey  <tromey@adacore.com>
    
    	* remote.c (remote_hw_watchpoint_limit)
    	(remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
    	Now static.

Diff:
---
 gdb/ChangeLog | 6 ++++++
 gdb/remote.c  | 6 +++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 836ed8a..0f69508 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
 2019-05-08  Tom Tromey  <tromey@adacore.com>
 
+	* remote.c (remote_hw_watchpoint_limit)
+	(remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
+	Now static.
+
+2019-05-08  Tom Tromey  <tromey@adacore.com>
+
 	* maint.c (_initialize_maint_cmds): Move initialization code to
 	remote.c.
 	(watchdog, show_watchdog): Move to remote.c.
diff --git a/gdb/remote.c b/gdb/remote.c
index 0fb7404..81e6427 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -10378,9 +10378,9 @@ remote_target::remove_watchpoint (CORE_ADDR addr, int len,
 }
 
 
-int remote_hw_watchpoint_limit = -1;
-int remote_hw_watchpoint_length_limit = -1;
-int remote_hw_breakpoint_limit = -1;
+static int remote_hw_watchpoint_limit = -1;
+static int remote_hw_watchpoint_length_limit = -1;
+static int remote_hw_breakpoint_limit = -1;
 
 int
 remote_target::region_ok_for_hw_watchpoint (CORE_ADDR addr, int len)


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

only message in thread, other threads:[~2019-05-08 16:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-08 16:46 [binutils-gdb] Change some remote.c globals to "static" Tom Tromey

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