aboutsummaryrefslogtreecommitdiff
path: root/gdb/config
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1995-05-22 23:03:42 +0000
committerStu Grossman <grossman@cygnus>1995-05-22 23:03:42 +0000
commitf5a8f1a6f38e8f87950258eb7a3f5417392458ac (patch)
tree0d8e96d2ca380b50241f8d7488f0e67f534d5272 /gdb/config
parent8574107796387f81e1e82756750f65063ad2eb5b (diff)
downloadgdb-f5a8f1a6f38e8f87950258eb7a3f5417392458ac.zip
gdb-f5a8f1a6f38e8f87950258eb7a3f5417392458ac.tar.gz
gdb-f5a8f1a6f38e8f87950258eb7a3f5417392458ac.tar.bz2
* 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.
Diffstat (limited to 'gdb/config')
-rw-r--r--gdb/config/mips/nm-irix4.h2
-rw-r--r--gdb/config/pa/nm-hppab.h2
-rw-r--r--gdb/config/sparc/tm-sparclite.h4
3 files changed, 8 insertions, 0 deletions
diff --git a/gdb/config/mips/nm-irix4.h b/gdb/config/mips/nm-irix4.h
index 07851e9..da27b11 100644
--- a/gdb/config/mips/nm-irix4.h
+++ b/gdb/config/mips/nm-irix4.h
@@ -35,6 +35,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define ONE_PROCESS_WRITETEXT
+#define TARGET_HAS_HARDWARE_WATCHPOINTS
+
/* Temporary new watchpoint stuff */
#define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) \
((type) == bp_hardware_watchpoint)
diff --git a/gdb/config/pa/nm-hppab.h b/gdb/config/pa/nm-hppab.h
index 421dfd7..01bc5d4 100644
--- a/gdb/config/pa/nm-hppab.h
+++ b/gdb/config/pa/nm-hppab.h
@@ -97,6 +97,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
fired because of a write to an address on the same page as a watchpoint,
but no write to the watched address occured). */
+#define TARGET_HAS_HARDWARE_WATCHPOINTS /* Enable the code in procfs.c */
+
/* 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). */
diff --git a/gdb/config/sparc/tm-sparclite.h b/gdb/config/sparc/tm-sparclite.h
index 3b2956b..8dd22a8 100644
--- a/gdb/config/sparc/tm-sparclite.h
+++ b/gdb/config/sparc/tm-sparclite.h
@@ -60,6 +60,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define TARGET_HW_BREAK_LIMIT 2
#define TARGET_HW_WATCH_LIMIT 2
+/* Enable watchpoint macro's */
+
+#define TARGET_HAS_HARDWARE_WATCHPOINTS
+
#define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) \
sparclite_check_watch_resources (type, cnt, ot)