This is an automated email from Gerrit.

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

-- gerrit

commit ce62f375d4318b6866d8f05ec4337d5bc02f4946
Author: Alamy Liu <[email protected]>
Date:   Tue Sep 8 10:29:39 2015 -0700

    Debug: Show target name for better debugging message.
    
    Condition
    It's more clear to know each target's behaviour if there were multiple 
target.
    
    Result (one example)
      before: target state: halted
      after : target a53.cpu3 state: halted
    
    Change-Id: Id79c335bc76e40b772b027f5e0c36c1610464cdb
    Signed-off-by: Alamy Liu <[email protected]>

diff --git a/src/target/armv4_5.c b/src/target/armv4_5.c
index e75fe99..d23a6b1 100644
--- a/src/target/armv4_5.c
+++ b/src/target/armv4_5.c
@@ -661,8 +661,9 @@ int arm_arch_state(struct target *target)
                return ERROR_FAIL;
        }
 
-       LOG_USER("target halted in %s state due to %s, current mode: %s\n"
+       LOG_USER("target %s halted in %s state due to %s, current mode: %s\n"
                "cpsr: 0x%8.8" PRIx32 " pc: 0x%8.8" PRIx32 "%s",
+               target_name(target),
                arm_state_strings[arm->core_state],
                debug_reason_name(target),
                arm_mode_name(arm->core_mode),
diff --git a/src/target/target.c b/src/target/target.c
index 7cde86b..85976b0 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -1463,7 +1463,7 @@ int target_call_event_callbacks(struct target *target, 
enum target_event event)
                target_call_event_callbacks(target, TARGET_EVENT_GDB_HALT);
        }
 
-       LOG_DEBUG("target event %i (%s)", event,
+       LOG_DEBUG("target %s event %i (%s)", target_name(target), event,
                        Jim_Nvp_value2name_simple(nvp_target_event, 
event)->name);
 
        target_handle_event(target, event);
@@ -2592,10 +2592,10 @@ COMMAND_HANDLER(handle_reg_command)
        unsigned count = 0;
        char *value;
 
-       LOG_DEBUG("-");
-
        target = get_current_target(CMD_CTX);
 
+       LOG_DEBUG("%s", target_name(target));
+
        /* list all available registers for the current target */
        if (CMD_ARGC == 0) {
                struct reg_cache *cache = target->reg_cache;

-- 

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to