aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2018-10-24 13:02:44 -0700
committerGitHub <noreply@github.com>2018-10-24 13:02:44 -0700
commite54511ffa46097521c122fa5c8f531d2176ec222 (patch)
tree3f22f047afe954955a72e15940cbb3c32df02805 /src
parent983a07be643cbceb5a83672fa62f5ed1c9026797 (diff)
downloadriscv-openocd-e54511ffa46097521c122fa5c8f531d2176ec222.zip
riscv-openocd-e54511ffa46097521c122fa5c8f531d2176ec222.tar.gz
riscv-openocd-e54511ffa46097521c122fa5c8f531d2176ec222.tar.bz2
Revert "Don't report exact watchpoint to gdb. (#300)" (#304)
This reverts commit 933cb875a8fb6243df52208c725b1c6ebc9662e3. https://github.com/riscv/riscv-openocd/issues/295 was fixed in gdb.
Diffstat (limited to 'src')
-rw-r--r--src/target/riscv/riscv.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c
index 293572a..65bb199 100644
--- a/src/target/riscv/riscv.c
+++ b/src/target/riscv/riscv.c
@@ -729,11 +729,7 @@ 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; */
- 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;
+ return ERROR_OK;
}
wp = wp->next;
}