From: ntfreak Date: Thu, 20 Nov 2008 12:01:46 +0000 (+0000) Subject: - fix issue with gdb_target_to_reg missing second byte X-Git-Tag: v0.1.0~150 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b7d80ac0ab2cc242b0d48e10bc281a0c4136d318;p=openocd - fix issue with gdb_target_to_reg missing second byte git-svn-id: svn://svn.berlios.de/openocd/trunk@1180 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c index 4c8afbdf..a0c60e11 100644 --- a/src/server/gdb_server.c +++ b/src/server/gdb_server.c @@ -910,7 +910,7 @@ void gdb_target_to_reg(target_t *target, char *tstr, int str_len, u8 *bin) for (i = 0; i < str_len; i+=2) { u8 t = hextoint(tstr[i])<<4; - t |= hextoint(tstr[i]); + t |= hextoint(tstr[i+1]); int j = gdb_reg_pos(target, i/2, str_len/2); bin[j] = t;