Patchwork [4/4] Change some remote.c globals to "static"

login
register
mail settings
Submitter Tom Tromey
Date May 1, 2019, 6:44 p.m.
Message ID <20190501184402.4030-5-tromey@adacore.com>
Download mbox | patch
Permalink /patch/32480/
State New
Headers show

Comments

Tom Tromey - May 1, 2019, 6:44 p.m.
I noticed a three globals in remote.c that could be static.  This
patch makes this change.

2019-05-01  Tom Tromey  <tromey@adacore.com>

	* remote.c (remote_hw_watchpoint_limit)
	(remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
	Now static.
---
 gdb/ChangeLog | 6 ++++++
 gdb/remote.c  | 6 +++---
 2 files changed, 9 insertions(+), 3 deletions(-)

Patch

diff --git a/gdb/remote.c b/gdb/remote.c
index 0fb7404b068..81e6427a7fa 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)