* target.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
authorAndrew Cagney <cagney@redhat.com>
Thu, 18 Jan 2001 15:42:24 +0000 (15:42 +0000)
committerAndrew Cagney <cagney@redhat.com>
Thu, 18 Jan 2001 15:42:24 +0000 (15:42 +0000)
* breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Wrap macro
definition in parenthesis.

gdb/ChangeLog
gdb/breakpoint.c
gdb/target.h

index 7a3fdb2d1fd3785e32abac528000f300b89f8f5d..c74ee33f3036715c9356410cd31e94a0625c8074 100644 (file)
@@ -1,3 +1,9 @@
+Fri Jan 19 02:31:40 2001  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * 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  <cagney@b1.cygnus.com>
 
        From 2000-10-27 Mark Salter <msalter@redhat.com>:
index 5dae6abc8ac4a9f02f8a59e1b6d17a1311d9ba6a..a3ef4793f1068e4a62120995f304edea56fa5ddf 100644 (file)
@@ -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
index 5b0afb70c9d22452b0a23880cf74872917d4a2ea..e1e71d95d34aec2c5af2b15939d495fccfe2c674 100644 (file)
@@ -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,