diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2009-11-05 01:47:44 -0800 |
---|---|---|
committer | David Brownell <dbrownell@users.sourceforge.net> | 2009-11-05 01:47:44 -0800 |
commit | 98788d7a75b4321c96845a8fbf814f254a6cf153 (patch) | |
tree | c6014a3a74bb8d9b4ad34a6448f077e27681cbe5 /src/target/breakpoints.h | |
parent | 16b4b8cf5453660c849546ebf8a0c3a5a082329e (diff) | |
download | riscv-openocd-98788d7a75b4321c96845a8fbf814f254a6cf153.zip riscv-openocd-98788d7a75b4321c96845a8fbf814f254a6cf153.tar.gz riscv-openocd-98788d7a75b4321c96845a8fbf814f254a6cf153.tar.bz2 |
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 <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target/breakpoints.h')
-rw-r--r-- | src/target/breakpoints.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/breakpoints.h b/src/target/breakpoints.h index b75aae6..9145966 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; |