From 6ab3a9c917070eb116fdd9d2d920b3f4f7631f0a Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Thu, 18 Jan 2001 15:42:24 +0000 Subject: [PATCH] * target.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT) * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Wrap macro definition in parenthesis. --- gdb/ChangeLog | 6 ++++++ gdb/breakpoint.c | 2 +- gdb/target.h | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7a3fdb2d1fd..c74ee33f303 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Fri Jan 19 02:31:40 2001 Andrew Cagney + + * target.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT) + * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Wrap macro + definition in parenthesis. + Fri Jan 19 02:13:40 2001 Andrew Cagney From 2000-10-27 Mark Salter : diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 5dae6abc8ac..a3ef4793f10 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -5409,7 +5409,7 @@ watch_command_1 (char *arg, int accessflag, int from_tty) #if !defined(TARGET_REGION_OK_FOR_HW_WATCHPOINT) #define TARGET_REGION_OK_FOR_HW_WATCHPOINT(ADDR,LEN) \ - TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT(LEN) + (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT(LEN)) #endif static int diff --git a/gdb/target.h b/gdb/target.h index 5b0afb70c9d..e1e71d95d34 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -1184,7 +1184,7 @@ extern void (*target_new_objfile_hook) (struct objfile *); #if !defined(TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT) #define TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT(byte_count) \ - (LONGEST)(byte_count) <= REGISTER_SIZE + ((LONGEST)(byte_count) <= REGISTER_SIZE) #endif /* However, some addresses may not be profitable to use hardware to watch, -- 2.30.2