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

This reverts commit 933cb875a8.

https://github.com/riscv/riscv-openocd/issues/295 was fixed in gdb.
deinit
Tim Newsome 2018-10-24 13:02:44 -07:00 committed by GitHub
parent 983a07be64
commit e54511ffa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

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