diff options
author | Tom Tromey <tromey@adacore.com> | 2019-05-01 12:37:46 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2019-05-08 10:38:02 -0600 |
commit | 60fcc1c3d0d8f1e271b19210b1707b4aa589f273 (patch) | |
tree | 0bb370181fe41adcbee89f65c598938dd08f8e27 | |
parent | ed2b7c1703246eef1ce6b393ced99fe267cbeb7b (diff) | |
download | fsf-binutils-gdb-60fcc1c3d0d8f1e271b19210b1707b4aa589f273.zip fsf-binutils-gdb-60fcc1c3d0d8f1e271b19210b1707b4aa589f273.tar.gz fsf-binutils-gdb-60fcc1c3d0d8f1e271b19210b1707b4aa589f273.tar.bz2 |
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.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | 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) |