forked from auracaster/openocd
breakpoints: use 64-bit type for watchpoint mask and value
This patch changes data types of watchpoint value and mask to allow for 64-bit values match that some architectures (like RISCV) allow. In addition this patch fixes the behavior of watchpoint command to zero-out mask if only data value is provided. Change-Id: I3c7ec1630f03ea9534ec34c0ebe99e08ea56e7f0 Signed-off-by: Parshintsev Anatoly <anatoly.parshintsev@syntacore.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7840 Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-by: Marek Vrbka <marek.vrbka@codasip.com> Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
This commit is contained in:
committed by
Tomas Vanek
parent
2ca6d25eb5
commit
2cd8ebf44d
@@ -1779,7 +1779,7 @@ static int gdb_breakpoint_watchpoint_packet(struct connection *connection,
|
||||
case 4:
|
||||
{
|
||||
if (packet[0] == 'Z') {
|
||||
retval = watchpoint_add(target, address, size, wp_type, 0, 0xffffffffu);
|
||||
retval = watchpoint_add(target, address, size, wp_type, 0, WATCHPOINT_IGNORE_DATA_VALUE_MASK);
|
||||
if (retval == ERROR_NOT_IMPLEMENTED) {
|
||||
/* Send empty reply to report that watchpoints of this type are not supported */
|
||||
gdb_put_packet(connection, "", 0);
|
||||
|
||||
Reference in New Issue
Block a user