aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2018-09-06 15:39:25 -0700
committerGitHub <noreply@github.com>2018-09-06 15:39:25 -0700
commit933cb875a8fb6243df52208c725b1c6ebc9662e3 (patch)
treeb14c3fdf33f24d3183890b386b785bb7f375d55a
parent33aa058819b2d7c2fa95869adc82f35290c9ff0b (diff)
downloadriscv-openocd-933cb875a8fb6243df52208c725b1c6ebc9662e3.zip
riscv-openocd-933cb875a8fb6243df52208c725b1c6ebc9662e3.tar.gz
riscv-openocd-933cb875a8fb6243df52208c725b1c6ebc9662e3.tar.bz2
Don't report exact watchpoint to gdb. (#300)
We should have a fix for #295 first. Change-Id: Ic72a7a3fa866fbb5aaed22689adfebf9ce913b50
-rw-r--r--src/target/riscv/riscv.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c
index dceed61..0ba2e15 100644
--- a/src/target/riscv/riscv.c
+++ b/src/target/riscv/riscv.c
@@ -724,7 +724,11 @@ int riscv_hit_watchpoint(struct target *target, struct watchpoint **hit_watchpoi
if (wp->address == mem_addr) {
*hit_watchpoint = wp;
LOG_DEBUG("Hit address=%" TARGET_PRIxADDR, wp->address);
- return ERROR_OK;
+ /* return ERROR_OK; */
+ LOG_DEBUG("Not reporting the exact watchpoint to gdb, until we have "
+ "a fix for "
+ "https://github.com/riscv/riscv-openocd/issues/295.");
+ return ERROR_FAIL;
}
wp = wp->next;
}