diff options
author | Kung Hsu <kung@cygnus> | 1994-06-10 01:22:38 +0000 |
---|---|---|
committer | Kung Hsu <kung@cygnus> | 1994-06-10 01:22:38 +0000 |
commit | 038a2f11f6aad7b4278638c04430ffaf6606463a (patch) | |
tree | 03ed97899a0bc02f264d71a974530b1b0a8b9814 /gdb/config/mips | |
parent | 2c012f9efc6acc49ef6caa456f292517a304e615 (diff) | |
download | gdb-038a2f11f6aad7b4278638c04430ffaf6606463a.zip gdb-038a2f11f6aad7b4278638c04430ffaf6606463a.tar.gz gdb-038a2f11f6aad7b4278638c04430ffaf6606463a.tar.bz2 |
Modified Files:
nm-irix4.h
* config/mips/nm-irix4.h: change interface for target dependent
code supporting watch point.
Diffstat (limited to 'gdb/config/mips')
-rw-r--r-- | gdb/config/mips/nm-irix4.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/config/mips/nm-irix4.h b/gdb/config/mips/nm-irix4.h index 3c80a59..07851e9 100644 --- a/gdb/config/mips/nm-irix4.h +++ b/gdb/config/mips/nm-irix4.h @@ -36,7 +36,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define ONE_PROCESS_WRITETEXT /* Temporary new watchpoint stuff */ -#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 @@ -48,5 +49,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define HAVE_NONSTEPPABLE_WATCHPOINT /* Use these macros for watchpoint insertion/deletion. */ -#define target_insert_watchpoint(addr, len) procfs_set_watchpoint (inferior_pid, addr, len, 2) -#define target_remove_watchpoint(addr, len) procfs_set_watchpoint (inferior_pid, addr, 0, 0) +/* type can be 0: write watch, 1: read watch, 2: access watch (read/write) */ +#define target_insert_watchpoint(addr, len, type) procfs_set_watchpoint (inferior_pid, addr, len, 2) +#define target_remove_watchpoint(addr, len, type) procfs_set_watchpoint (inferior_pid, addr, 0, 0) |