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 836ed8a..0f69508 100644 (file)
@@ -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.
index 0fb7404..81e6427 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)