]> git.sur5r.net Git - openocd/commit
target: check memory handlers before use for all types
authorKarl Palsson <karlp@tweak.net.au>
Sun, 31 May 2015 13:36:13 +0000 (13:36 +0000)
committerSpencer Oliver <spen@spen-soft.co.uk>
Thu, 6 Aug 2015 12:07:09 +0000 (13:07 +0100)
commit4f1738388df4c6eed285e80ace50302daa3f5175
tree64b5c77125dbdb8474036efd61b392c714433863
parent79fdeb37f486f74658f1eaf658abac8efb3eba6a
target: check memory handlers before use for all types

MMU types were checking and installing fakes at init, but this wasn't catching
all devices.  Fixes segfaults when attempting mdw and friends on avr.

Change-Id: I5b11f9913157a21f1aeb11ec852f593b529d9be8
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
Reviewed-on: http://openocd.zylin.com/2791
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-by: Andreas Färber <afaerber@suse.de>
src/target/target.c