]> git.sur5r.net Git - openocd/commit
target: tell which target state is meant
authorOleksij Rempel <external.Oleksij.Rempel@de.bosch.com>
Wed, 1 Apr 2015 12:44:41 +0000 (14:44 +0200)
committerFreddie Chopin <freddie.chopin@gmail.com>
Tue, 3 Nov 2015 22:13:03 +0000 (22:13 +0000)
commit0578e4c4f4fbaec3e833fec0c118cee4698ce7c6
treedaba6d86e7db52d5fa7bbdc3d0e176fcf6ecfd25
parent3f0aef4272131caf7d696f28cf4bea676531734e
target: tell which target state is meant

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 <external.Oleksij.Rempel@de.bosch.com>
Reviewed-on: http://openocd.zylin.com/2691
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/target/target.c