Don't report exact watchpoint to gdb. (#300)

We should have a fix for #295 first.

Change-Id: Ic72a7a3fa866fbb5aaed22689adfebf9ce913b50
mpsse_flush
Tim Newsome 2018-09-06 15:39:25 -07:00 committed by GitHub
parent 33aa058819
commit 933cb875a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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;
}