From f5a8f1a6f38e8f87950258eb7a3f5417392458ac Mon Sep 17 00:00:00 2001 From: Stu Grossman Date: Mon, 22 May 1995 23:03:42 +0000 Subject: * breakpoint.c: Move defaults of watchpoint related macros into target.h. * target.h: Macros from breakpoint.c. Conditionalize based on TARGET_HAS_HARDWARE_WATCHPOINTS. * i386v-nat.c procfs.c: Use TARGET_HAS_HARDWARE_WATCHPOINTS instead of TARGET_CAN_USE_HARDWARE_WATCHPOINT to enable watchpoint code. * config/i386/nm-linux.h, config/mips/nm-irix4.h, config/pa/nm-hppab.h, config/sparc/tm-sparclite.h: #define TARGET_HAS_HARDWARE_WATCHPOINTS to enable watchpoint code. --- gdb/i386v-nat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/i386v-nat.c') diff --git a/gdb/i386v-nat.c b/gdb/i386v-nat.c index 1dfda613bd3..8ecbad99d76 100644 --- a/gdb/i386v-nat.c +++ b/gdb/i386v-nat.c @@ -34,7 +34,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include -#ifdef TARGET_CAN_USE_HARDWARE_WATCHPOINT +#ifdef TARGET_HAS_HARDWARE_WATCHPOINTS #include #endif @@ -88,7 +88,7 @@ i386_register_u_addr (blockend, regnum) } -#ifdef TARGET_CAN_USE_HARDWARE_WATCHPOINT +#ifdef TARGET_HAS_HARDWARE_WATCHPOINTS #if !defined (offsetof) #define offsetof(TYPE, MEMBER) ((unsigned long) &((TYPE *)0)->MEMBER) @@ -272,7 +272,7 @@ i386_stopped_by_watchpoint (pid) return 0; } -#endif /* TARGET_CAN_USE_HARDWARE_WATCHPOINT */ +#endif /* TARGET_HAS_HARDWARE_WATCHPOINTS */ #if 0 /* using FLOAT_INFO as is would be a problem. FLOAT_INFO is called -- cgit v1.2.1