This is an automated email from Gerrit.

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

-- gerrit

commit 428e734d081498c1d58cc8990a6bb9d2f25c24b4
Author: Tim Newsome <[email protected]>
Date:   Mon Jun 25 13:44:01 2018 -0700

    Add detail to `wrong register size` error.
    
    Signed-off-by: Tim Newsome <[email protected]>
    Change-Id: Id31499c94b539969970251145e42c89c943fd87c

diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c
index a9c2a64..1e652dc 100644
--- a/src/server/gdb_server.c
+++ b/src/server/gdb_server.c
@@ -1359,7 +1359,9 @@ static int gdb_set_register_packet(struct connection 
*connection,
        int chars = (DIV_ROUND_UP(reg_list[reg_num]->size, 8) * 2);
 
        if ((unsigned int)chars != strlen(separator + 1)) {
-               LOG_ERROR("gdb sent a packet with wrong register size");
+               LOG_ERROR("gdb sent %d bits for a %d-bit register (%s)",
+                               (unsigned) strlen(separator + 1) * 4,
+                               chars * 4, reg_list[reg_num]->name);
                free(bin_buf);
                return ERROR_SERVER_REMOTE_CLOSED;
        }

-- 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to