aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-09-04 18:04:25 +0000
committerAndrew Cagney <cagney@redhat.com>2003-09-04 18:04:25 +0000
commit3a3bc038c6dd5faa235dc1a13415ed1f0215c06d (patch)
tree56bfc9fe0dd6fbc86d90c68613c4c2a22a4fc9ee /gdb/mips-tdep.c
parenta957e6420da570d74136f1af2c8ff925469d3a69 (diff)
downloadgdb-3a3bc038c6dd5faa235dc1a13415ed1f0215c06d.zip
gdb-3a3bc038c6dd5faa235dc1a13415ed1f0215c06d.tar.gz
gdb-3a3bc038c6dd5faa235dc1a13415ed1f0215c06d.tar.bz2
2003-09-04 Andrew Cagney <cagney@redhat.com>
* hppa-tdep.c (hppa_gdbarch_init): Set "have_nonsteppable_watchpoint". * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete. * mips-tdep.c (mips_dump_tdep): Do not print HAVE_NONSTEPPABLE_WATCHPOINT. (mips_gdbarch_init): Set "have_nonsteppable_watchpoint". * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete. * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete. * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r--gdb/mips-tdep.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index 7276209..ad268b6 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -6120,6 +6120,14 @@ mips_gdbarch_init (struct gdbarch_info info,
set_gdbarch_print_insn (gdbarch, gdb_print_insn_mips);
+ /* 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? */
+ set_gdbarch_have_nonsteppable_watchpoint (gdbarch, 1);
+
/* Hook in OS ABI-specific overrides, if they have been registered. */
gdbarch_init_osabi (info, gdbarch);
@@ -6301,9 +6309,6 @@ mips_dump_tdep (struct gdbarch *current_gdbarch, struct ui_file *file)
"mips_dump_tdep: GDB_TARGET_IS_MIPS64 = %d\n",
GDB_TARGET_IS_MIPS64);
fprintf_unfiltered (file,
- "mips_dump_tdep: HAVE_NONSTEPPABLE_WATCHPOINT # %s\n",
- XSTRING (HAVE_NONSTEPPABLE_WATCHPOINT));
- fprintf_unfiltered (file,
"mips_dump_tdep: HI_REGNUM = %d\n",
HI_REGNUM);
fprintf_unfiltered (file,