diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-08-29 16:18:06 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-08-29 16:18:06 +0000 |
commit | 48507487b740a93e0dd7dba92bbce04927774ea5 (patch) | |
tree | 4d66e691176ad21a3ca2059c1956087beb0878a5 /gdb/config/mips/tm-embed.h | |
parent | 5fce43b3ab36eca51bf7cfb312b107dd2ff41413 (diff) | |
download | gdb-48507487b740a93e0dd7dba92bbce04927774ea5.tar.gz |
2003-08-29 Andrew Cagney <cagney@redhat.com>
* config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
(TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
(target_remove_watchpoint): Delete macro.
(target_insert_watchpoint): Delete macro.
(remote_mips_can_use_hardware_watchpoint): Delete declaration.
(remote_mips_stopped_by_watchpoint): Delete declaration.
(remote_mips_remove_watchpoint): Delete declaration.
(remote_mips_set_watchpoint): Delete declaration.
(TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
* remote-mips.c (_initialize_remote_mips): Set
"to_insert_watchpoint", "to_stopped_by_watchpoint",
"to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
(mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
(mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
(mips_stopped_by_watchpoint): Rename
remote_mips_stopped_by_watchpoint.
(mips_can_hardware_watchpoint): Rename
remote_mips_can_use_hardware_watchpoint, update function
signature.
Diffstat (limited to 'gdb/config/mips/tm-embed.h')
-rw-r--r-- | gdb/config/mips/tm-embed.h | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/gdb/config/mips/tm-embed.h b/gdb/config/mips/tm-embed.h index a7a794807f0..31f703fecbd 100644 --- a/gdb/config/mips/tm-embed.h +++ b/gdb/config/mips/tm-embed.h @@ -19,28 +19,13 @@ #include "mips/tm-mips.h" -/* Watchpoint support */ - -#define TARGET_HAS_HARDWARE_WATCHPOINTS - -/* Use these macros for watchpoint insertion/deletion. */ -/* type can be 0: write watch, 1: read watch, 2: access watch (read/write) */ - -#define target_insert_watchpoint(addr, len, type) \ - remote_mips_set_watchpoint (addr, len, type) -int remote_mips_set_watchpoint (CORE_ADDR addr, int len, int type); - -#define target_remove_watchpoint(addr, len, type) \ - remote_mips_remove_watchpoint (addr, len, type) -int remote_mips_remove_watchpoint (CORE_ADDR addr, int len, int type); - /* We need to remove watchpoints when stepping, else we hit them again! */ -#define HAVE_NONSTEPPABLE_WATCHPOINT 1 - -int remote_mips_stopped_by_watchpoint (void); -#define STOPPED_BY_WATCHPOINT(w) remote_mips_stopped_by_watchpoint () +/* FIXME: cagney/2003-08-29: The macros HAVE_STEPPABLE_WATCHPOINT, + HAVE_NONSTEPPABLE_WATCHPOINT, and HAVE_CONTINUABLE_WATCHPOINT need + to all be folded into the target vector. Since they are being used + as guards for STOPPED_BY_WATCHPOINT, why not have + STOPPED_BY_WATCHPOINT return the type of watchpoint that the code + is sitting on? */ -#define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) \ - remote_mips_can_use_hardware_watchpoint(cnt) -int remote_mips_can_use_hardware_watchpoint (int cnt); +#define HAVE_NONSTEPPABLE_WATCHPOINT 1 |