From 48507e3b1044eee218a6ba207269d33e51ae6040 Mon Sep 17 00:00:00 2001 From: Tomas Vanek Date: Fri, 30 Sep 2022 13:56:59 +0200 Subject: [PATCH] target/armv7m: show target name in 'halted' message Change-Id: I13e9a33677632d52122585203252fc4ef0c52a2a Signed-off-by: Tomas Vanek Reviewed-on: https://review.openocd.org/c/openocd/+/7237 Tested-by: jenkins Reviewed-by: Antonio Borneo --- src/target/armv7m.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/target/armv7m.c b/src/target/armv7m.c index 6f6a170b7..d9d01923a 100644 --- a/src/target/armv7m.c +++ b/src/target/armv7m.c @@ -729,8 +729,9 @@ int armv7m_arch_state(struct target *target) ctrl = buf_get_u32(arm->core_cache->reg_list[ARMV7M_CONTROL].value, 0, 32); sp = buf_get_u32(arm->core_cache->reg_list[ARMV7M_R13].value, 0, 32); - LOG_USER("target halted due to %s, current mode: %s %s\n" + LOG_USER("[%s] halted due to %s, current mode: %s %s\n" "xPSR: %#8.8" PRIx32 " pc: %#8.8" PRIx32 " %csp: %#8.8" PRIx32 "%s%s", + target_name(target), debug_reason_name(target), arm_mode_name(arm->core_mode), armv7m_exception_string(armv7m->exception_number),