From 98788d7a75b4321c96845a8fbf814f254a6cf153 Mon Sep 17 00:00:00 2001 From: David Brownell Date: Thu, 5 Nov 2009 01:47:44 -0800 Subject: watchpoint_add() cleanup Fail watchpoint_add() if it's the same address but the parameters are different ... don't just assume having the same address means the same watchpoint! (Note that overlapping watchpoints aren't detected...) Handle unrecognized return codes more sanely; don't exit()! And describe command params right. Signed-off-by: David Brownell --- src/target/breakpoints.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/target/breakpoints.h') diff --git a/src/target/breakpoints.h b/src/target/breakpoints.h index b75aae62..91459669 100644 --- a/src/target/breakpoints.h +++ b/src/target/breakpoints.h @@ -49,7 +49,7 @@ typedef struct breakpoint_s typedef struct watchpoint_s { uint32_t address; - int length; + uint32_t length; uint32_t mask; uint32_t value; enum watchpoint_rw rw; -- cgit v1.2.3