]> git.sur5r.net Git - openocd/commit
watchpoint_add() cleanup
authorDavid Brownell <dbrownell@users.sourceforge.net>
Thu, 5 Nov 2009 09:47:44 +0000 (01:47 -0800)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Thu, 5 Nov 2009 09:47:44 +0000 (01:47 -0800)
commit98788d7a75b4321c96845a8fbf814f254a6cf153
treec6014a3a74bb8d9b4ad34a6448f077e27681cbe5
parent16b4b8cf5453660c849546ebf8a0c3a5a082329e
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>
src/target/breakpoints.c
src/target/breakpoints.h
src/target/cortex_m3.c
src/target/target.c