Add error handling and remove double readout.
commit7c101b9e31e454b25d88adeca7440ae6ce7620f5
authorMathias K <kesmtp@freenet.de>
Tue, 26 Feb 2013 16:24:41 +0000 (26 17:24 +0100)
committerFreddie Chopin <freddie.chopin@gmail.com>
Sat, 28 Jun 2014 18:50:53 +0000 (28 18:50 +0000)
treedb4952c4622e3d10c743c3be2e554cff376344b2
parent52b80fbd82d80425863823b3fe26d47a702febb0
Add error handling and remove double readout.

Remove double readout of DCB_DHCSR in target poll. The return value
of the endreset event is handled and not ignored in target poll.

Change-Id: I8fe026418dadcf0b0dcbb09acee871ad950937a2
Signed-off-by: Mathias K <kesmtp@freenet.de>
Reviewed-on: http://openocd.zylin.com/1181
Tested-by: jenkins
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
src/target/cortex_m.c