Change some remote.c globals to "static"
authorTom Tromey <tromey@adacore.com>
Wed, 1 May 2019 18:37:46 +0000 (12:37 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 8 May 2019 16:38:02 +0000 (10:38 -0600)
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.

gdb/ChangeLog
gdb/remote.c

index 836ed8acef04ba8e5c5cf842c1b3722209fc5972..0f69508ed6ba23cfc57484d90d193b694ba4553e 100644 (file)
@@ -1,3 +1,9 @@
+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
index 0fb7404b0682a41d909a7419340a034dd71d8bcc..81e6427a7fa2b22c7f7468c24d178d50775ff0e8 100644 (file)
@@ -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)