From 7d5c4d30d8af07b163fcc784ce24280896f61078 Mon Sep 17 00:00:00 2001 From: Kung Hsu Date: Fri, 10 Jun 1994 01:23:20 +0000 Subject: [PATCH] Modified Files: nm-hppab.h * config/pa/nm-hppab.h: change interface for target dependent code supporting watch point. --- gdb/config/pa/nm-hppab.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gdb/config/pa/nm-hppab.h b/gdb/config/pa/nm-hppab.h index 8b948d23b4..458165862c 100644 --- a/gdb/config/pa/nm-hppab.h +++ b/gdb/config/pa/nm-hppab.h @@ -98,7 +98,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* The PA can watch any number of locations, there's no need for it to reject anything (generic routines already check that all intermediates are in memory). */ -#define TARGET_CAN_USE_HARDWARE_WATCHPOINT(B) 1 +#define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) \ + ((type) == bp_hardware_watchpoint) /* When a hardware watchpoint fires off the PC will be left at the instruction which caused the watchpoint. It will be necessary for @@ -125,5 +126,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define HAVE_STEPPABLE_WATCHPOINT /* Use these macros for watchpoint insertion/deletion. */ -#define target_insert_watchpoint(addr, len) hppa_set_watchpoint (addr, len, 1) -#define target_remove_watchpoint(addr, len) hppa_set_watchpoint (addr, len, 0) +/* type can be 0: write watch, 1: read watch, 2: access watch (read/write) */ +#define target_insert_watchpoint(addr, len, type) hppa_set_watchpoint (addr, len, 1) +#define target_remove_watchpoint(addr, len, type) hppa_set_watchpoint (addr, len, 0) -- 2.34.1