This is an automated email from Gerrit.

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

-- gerrit

commit 4ff60c58b6e468aa8fd11b20c2d3e604feeca996
Author: Oleksij Rempel <[email protected]>
Date:   Wed Apr 1 14:44:41 2015 +0200

    target: tell which target state is ment
    
    If we work on smp system, the output of step command will depend
    on Id of default target.
    This patch adds additional information to help find what on which
    core is happening.
    
    Example of LOG after this patch.
    imx6.cpu.1: target state: halted
    ^^^^^^^^^^
    target halted in ARM state due to breakpoint, current mode: Supervisor
    cpsr: 0x60000093 pc: 0x80076c0c
    MMU: enabled, D-Cache: enabled, I-Cache: enabled
    imx6.cpu.0: target state: halted
    ^^^^^^^^^^
    target halted in ARM state due to debug-request, current mode: Supervisor
    cpsr: 0x20000193 pc: 0x802ccb6c
    MMU: enabled, D-Cache: enabled, I-Cache: enabled
    
    Change-Id: I536a2cce33b5ab10af9de2a43b9960320c17729f
    Signed-off-by: Oleksij Rempel <[email protected]>

diff --git a/src/target/target.c b/src/target/target.c
index 5c88384..de950fd 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -1884,7 +1884,8 @@ int target_arch_state(struct target *target)
                return ERROR_OK;
        }
 
-       LOG_USER("target state: %s", target_state_name(target));
+       LOG_USER("%s: target state: %s", target_name(target),
+                target_state_name(target));
 
        if (target->state != TARGET_HALTED)
                return ERROR_OK;

-- 

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to