From: Tom Tromey Date: Wed, 1 May 2019 18:37:46 +0000 (-0600) Subject: Change some remote.c globals to "static" X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=60fcc1c3d0d8f1e271b19210b1707b4aa589f273;p=binutils-gdb.git 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 * remote.c (remote_hw_watchpoint_limit) (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit): Now static. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 836ed8acef0..0f69508ed6b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2019-05-08 Tom Tromey + + * remote.c (remote_hw_watchpoint_limit) + (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit): + Now static. + 2019-05-08 Tom Tromey * maint.c (_initialize_maint_cmds): Move initialization code to 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)