diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/target/xscale.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/target/xscale.c b/src/target/xscale.c index 77f0f1b8..37a24385 100644 --- a/src/target/xscale.c +++ b/src/target/xscale.c @@ -2401,6 +2401,13 @@ static int xscale_add_watchpoint(struct target *target, return ERROR_TARGET_RESOURCE_NOT_AVAILABLE; } + if (watchpoint->length > watchpoint->address) + { + LOG_ERROR("xscale does not support watchpoints with length " + "greater than address"); + return ERROR_COMMAND_ARGUMENT_INVALID; + } + xscale->dbr_available = 0; return ERROR_OK; } |