avoid segfaulting when attempting to set an unavailable type of breackpoint 42/2342/2
authorSalvador Arroyo <sarroyofdez@yahoo.es>
Sat, 11 Oct 2014 21:37:08 +0000 (23:37 +0200)
committerSpencer Oliver <spen@spen-soft.co.uk>
Fri, 9 Jan 2015 08:46:45 +0000 (08:46 +0000)
commit1d37b37dc781e1aaab4feca42de12c6775b21ea2
tree38d2d2afe21f9816d3c537daa3c5af3c01823ad8
parent2eacb8fdfb4ea761acc3a3fbb51d048fefccd9b6
avoid segfaulting when attempting to set an unavailable type of breackpoint

For example "bp 0x20000000 8 2" makes openocd segfaulting on a
stm32f4x Discovery board.

Change-Id: I1ddd46b1fa9ade78db2234ed975ccefb72539331
Signed-off-by: Salvador Arroyo <sarroyofdez@yahoo.es>
Reviewed-on: http://openocd.zylin.com/2342
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/target/target.c