This is an automated email from Gerrit.

Evan Hunter ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/954

-- gerrit

commit 686a0dfbb126eaeebecd4736bdd745790cf0e216
Author: Evan Hunter <[email protected]>
Date:   Fri Nov 2 17:59:03 2012 +1100

    cortex_a: Fix target entry state route.
    
    If target is disabled at init, then is examined using 'arp_examine', it
    can get to cortex_a8_poll with the target state being unknown.
    
    Change-Id: Ifffb345bf971d275d2eb1912648b29f0a75f6ccc
    Signed-off-by: Evan Hunter <[email protected]>

diff --git a/src/target/cortex_a.c b/src/target/cortex_a.c
index e1c4c9c..ee1559d 100644
--- a/src/target/cortex_a.c
+++ b/src/target/cortex_a.c
@@ -812,6 +812,7 @@ static int cortex_a8_poll(struct target *target)
                        LOG_DEBUG("Target halted");
                        target->state = TARGET_HALTED;
                        if ((prev_target_state == TARGET_RUNNING)
+                               || (prev_target_state == TARGET_UNKNOWN)
                                || (prev_target_state == TARGET_RESET)) {
                                retval = cortex_a8_debug_entry(target);
                                if (retval != ERROR_OK)

-- 

------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to