armv4_5: prevent segfault when gdb connects to an underinitialised target 46/1446/2
authorPaul Fertser <fercerpav@gmail.com>
Sun, 16 Jun 2013 07:11:32 +0000 (11:11 +0400)
committerSpencer Oliver <spen@spen-soft.co.uk>
Mon, 1 Jul 2013 08:39:00 +0000 (08:39 +0000)
commit434afb370f92898b8803a4883f75ecb9f3f3d931
treeb6c35434f663eb3b1e0fd3c55fd2994264f21908
parenta6863e9a52c227086d874ef033de2499005ae318
armv4_5: prevent segfault when gdb connects to an underinitialised target

This prevents segmentation fault that can occur on cortex_a targets if
gdb connection is established before it's halted and CPSR examined.

Change-Id: Id996200e0fd95440496509c1fecaabbdbf425e23
Tested-by: Henrik Nordstrom <hno@squid-cache.org>
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/1446
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/target/armv4_5.c