aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbarch.h
diff options
context:
space:
mode:
authorMarko Mlinar <markom@opencores.org>2002-10-09 11:59:54 +0000
committerMarko Mlinar <markom@opencores.org>2002-10-09 11:59:54 +0000
commitf74fa174bfe402c8883c1a6198d8ef8920698594 (patch)
tree15b514df1d6f8f94205ed689c1055a87ae6a6c9d /gdb/gdbarch.h
parent57349743d5a73b60ce32e5aa38ad3ebc0b361e8a (diff)
downloadgdb-f74fa174bfe402c8883c1a6198d8ef8920698594.zip
gdb-f74fa174bfe402c8883c1a6198d8ef8920698594.tar.gz
gdb-f74fa174bfe402c8883c1a6198d8ef8920698594.tar.bz2
Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r--gdb/gdbarch.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h
index b14d3c1..c204cf0 100644
--- a/gdb/gdbarch.h
+++ b/gdb/gdbarch.h
@@ -2595,6 +2595,22 @@ extern void set_gdbarch_cannot_step_breakpoint (struct gdbarch *gdbarch, int can
#endif
#endif
+/* Default (value) for non- multi-arch platforms. */
+#if (!GDB_MULTI_ARCH) && !defined (HAVE_NONSTEPPABLE_WATCHPOINT)
+#define HAVE_NONSTEPPABLE_WATCHPOINT (0)
+#endif
+
+extern int gdbarch_have_nonsteppable_watchpoint (struct gdbarch *gdbarch);
+extern void set_gdbarch_have_nonsteppable_watchpoint (struct gdbarch *gdbarch, int have_nonsteppable_watchpoint);
+#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (HAVE_NONSTEPPABLE_WATCHPOINT)
+#error "Non multi-arch definition of HAVE_NONSTEPPABLE_WATCHPOINT"
+#endif
+#if GDB_MULTI_ARCH
+#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) || !defined (HAVE_NONSTEPPABLE_WATCHPOINT)
+#define HAVE_NONSTEPPABLE_WATCHPOINT (gdbarch_have_nonsteppable_watchpoint (current_gdbarch))
+#endif
+#endif
+
extern struct gdbarch_tdep *gdbarch_tdep (struct gdbarch *gdbarch);