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

-- gerrit

commit 3daa27a84c3f2fe0616ccc507c5f4f9f9de241c1
Author: Alamy Liu <[email protected]>
Date:   Tue Sep 15 11:29:25 2015 -0700

    target.c: align output formatting when dump registers
    
    Reason
      Alignment output is easier to read on the perspective of debugging
    
    Before
        ===== ARMv8 registers
        (0) x0 (/64): 0x00000000600000C5 (dirty)
        (1) x1 (/64): 0x0000000000000000
        ...
        (9) x9 (/64): 0xFFFFFFC975D2BD80
        (10) x10 (/64): 0x0000000000000400
        ...
        (30) x30 (/64): 0xFFFFFFC000087124
        (31) SP (/64): 0xFFFFFFC975D2BF70
        (32) PC (/64): 0xFFFFFFC000097DE8
        (33) CPSR (/64): 0x00000000600000C5
    
    After
        ===== ARMv8 registers
        ( 0)   x0 (/64): 0x00000000600000C5 (dirty)
        ( 1)   x1 (/64): 0x0000000000000000
        ...
        ( 9)   x9 (/64): 0xFFFFFFC975D2BD80
        (10)  x10 (/64): 0x0000000000000400
        ...
        (30)  x30 (/64): 0xFFFFFFC000087124
        (31)   SP (/64): 0xFFFFFFC975D2BF70
        (32)   PC (/64): 0xFFFFFFC000097DE8
        (33) CPSR (/64): 0x00000000600000C5
    
    Change-Id: Iedc6bfe48a5e1ce9c7dd15525fb3c1eff9109555
    Signed-off-by: Alamy Liu <[email protected]>

diff --git a/src/target/target.c b/src/target/target.c
index 85976b0..21a8532 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -2614,7 +2614,7 @@ COMMAND_HANDLER(handle_reg_command)
                                        value = buf_to_str(reg->value,
                                                        reg->size, 16);
                                        command_print(CMD_CTX,
-                                                       "(%i) %s (/%" PRIu32 
"): 0x%s%s",
+                                                       "(%2i) %4s (/%2" PRIu32 
"): 0x%s%s",
                                                        count, reg->name,
                                                        reg->size, value,
                                                        reg->dirty
@@ -2622,7 +2622,7 @@ COMMAND_HANDLER(handle_reg_command)
                                                                : "");
                                        free(value);
                                } else {
-                                       command_print(CMD_CTX, "(%i) %s (/%" 
PRIu32 ")",
+                                       command_print(CMD_CTX, "(%2i) %4s (/%2" 
PRIu32 "): (invalid)",
                                                          count, reg->name,
                                                          reg->size) ;
                                }

-- 

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