Message ID | 20180924214228.14578-1-brobecker@adacore.com |
---|---|
State | New |
Headers | show |
> gdb/ChangeLog: > > * riscv-tdep.c (riscv_gdbarch_init): Set the gdbarch's > have_nonsteppable_watchpoint attribute to 1. > > Tested on riscv64-elf using AdaCore's testsuite. Gah! I missed the fact that someone was already on it (https://www.sourceware.org/ml/gdb-patches/2018-09/msg00801.html). That patch implements a more general solution, so I am withdrawing my patch.
diff --git a/gdb/riscv-tdep.c b/gdb/riscv-tdep.c index 8bd78a24b48..ab3763349bf 100644 --- a/gdb/riscv-tdep.c +++ b/gdb/riscv-tdep.c @@ -2737,6 +2737,7 @@ riscv_gdbarch_init (struct gdbarch_info info, set_gdbarch_return_value (gdbarch, riscv_return_value); set_gdbarch_breakpoint_kind_from_pc (gdbarch, riscv_breakpoint_kind_from_pc); set_gdbarch_sw_breakpoint_from_kind (gdbarch, riscv_sw_breakpoint_from_kind); + set_gdbarch_have_nonsteppable_watchpoint (gdbarch, 1); /* Register architecture. */ set_gdbarch_num_regs (gdbarch, RISCV_LAST_REGNUM + 1);