From 60fcc1c3d0d8f1e271b19210b1707b4aa589f273 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 1 May 2019 12:37:46 -0600 Subject: [PATCH] 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. --- gdb/ChangeLog | 6 ++++++ gdb/remote.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) 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) -- 2.30.2