Skip to content

Commit e54511f

Browse files
authored
Revert "Don't report exact watchpoint to gdb. (#300)" (#304)
This reverts commit 933cb87. #295 was fixed in gdb.
1 parent 983a07b commit e54511f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/target/riscv/riscv.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -729,11 +729,7 @@ int riscv_hit_watchpoint(struct target *target, struct watchpoint **hit_watchpoi
729729
if (wp->address == mem_addr) {
730730
*hit_watchpoint = wp;
731731
LOG_DEBUG("Hit address=%" TARGET_PRIxADDR, wp->address);
732-
/* return ERROR_OK; */
733-
LOG_DEBUG("Not reporting the exact watchpoint to gdb, until we have "
734-
"a fix for "
735-
"https://github.com/riscv/riscv-openocd/issues/295.");
736-
return ERROR_FAIL;
732+
return ERROR_OK;
737733
}
738734
wp = wp->next;
739735
}

0 commit comments

Comments
 (0)