]> git.sur5r.net Git - openocd/commit
gdbserver: fix typo that broke read/write watchpoint
authorØyvind Harboe <oyvind.harboe@zylin.com>
Mon, 11 Jan 2010 08:22:08 +0000 (09:22 +0100)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Wed, 13 Jan 2010 11:00:02 +0000 (12:00 +0100)
commit3e33393078105f25ebd591b5b76c7c1501ff41d5
tree896053cc0894d74919d953761f3b7ec218fc3c62
parent6c75f5249cf721aa8b8c2d774cdeeac6f9770e32
gdbserver: fix typo that broke read/write watchpoint

It looks like a bugfix from normal breakpoints was not
copied over.

Do not use clever mathematics and assumptions to convert from
GDB enum for break/watchpoints to OpenOCD enum.

Drop connection upon unknown breakpoint type, this code path
was not really considered by the previous code I think.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/server/gdb_server.c