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/3252

-- gerrit

commit 57b71021970bdb648e22729b36875f49bc937ad8
Author: Alamy Liu <[email protected]>
Date:   Mon Aug 10 14:28:13 2015 -0700

    DEBUG: command queue debugging messages
    
    Change-Id: I71a220826155fd19046089568a6af401df5e1b7b
    Signed-off-by: Alamy Liu <[email protected]>

diff --git a/src/jtag/commands.c b/src/jtag/commands.c
index 664c642..5f1b037 100644
--- a/src/jtag/commands.c
+++ b/src/jtag/commands.c
@@ -58,6 +58,29 @@ void jtag_queue_command(struct jtag_command *cmd)
        assert(NULL == *last_cmd);
        *last_cmd = cmd;
 
+if ((cmd->type == JTAG_SCAN) && (cmd->cmd.scan->ir_scan)) {
+       struct scan_command *s_cmd = cmd->cmd.scan;
+       int i;
+
+       LOG_DEBUG("%s num_fields: %i",
+               s_cmd->ir_scan ? "IRSCAN" : "DRSCAN",
+               s_cmd->num_fields);
+
+       for (i = 0; i < s_cmd->num_fields; i++) {
+               if (s_cmd->fields[i].out_value) {
+                       int cvrt_bits = (s_cmd->fields[i].num_bits > 
DEBUG_JTAG_IOZ)
+                                       ? DEBUG_JTAG_IOZ : 
s_cmd->fields[i].num_bits;
+                       char *char_buf = buf_to_str(s_cmd->fields[i].out_value,
+                                       cvrt_bits, 16);
+
+                       LOG_DEBUG("fields[%i].out_value[%i/%i]: 0x%s", i,
+                                       cvrt_bits, s_cmd->fields[i].num_bits,
+                                       char_buf);
+                       free(char_buf);
+               }
+       }
+} /* end of debugging */
+
        /* store location where the next command pointer will be stored */
        next_command_pointer = &cmd->next;
 }

-- 

------------------------------------------------------------------------------
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