Skip to content

Commit 933cb87

Browse files
authored
Don't report exact watchpoint to gdb. (#300)
We should have a fix for #295 first. Change-Id: Ic72a7a3fa866fbb5aaed22689adfebf9ce913b50
1 parent 33aa058 commit 933cb87

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/target/riscv/riscv.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,11 @@ int riscv_hit_watchpoint(struct target *target, struct watchpoint **hit_watchpoi
724724
if (wp->address == mem_addr) {
725725
*hit_watchpoint = wp;
726726
LOG_DEBUG("Hit address=%" TARGET_PRIxADDR, wp->address);
727-
return ERROR_OK;
727+
/* return ERROR_OK; */
728+
LOG_DEBUG("Not reporting the exact watchpoint to gdb, until we have "
729+
"a fix for "
730+
"https://github.com/riscv/riscv-openocd/issues/295.");
731+
return ERROR_FAIL;
728732
}
729733
wp = wp->next;
730734
}

0 commit comments

Comments
 (0)