This is an automated email from Gerrit.

"Tomas Vanek <van...@fbl.cz>" just uploaded a new patch set to Gerrit, which 
you can find at https://review.openocd.org/c/openocd/+/7237

-- gerrit

commit e8fdef9d3044e813379968f57d3905f2c26753be
Author: Tomas Vanek <van...@fbl.cz>
Date:   Fri Sep 30 13:56:59 2022 +0200

    target/armv7m: show target name in 'halted' message
    
    Change-Id: I13e9a33677632d52122585203252fc4ef0c52a2a
    Signed-off-by: Tomas Vanek <van...@fbl.cz>

diff --git a/src/target/armv7m.c b/src/target/armv7m.c
index 2db2ce2dd5..3979887df2 100644
--- a/src/target/armv7m.c
+++ b/src/target/armv7m.c
@@ -726,8 +726,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),

-- 

Reply via email to