From b7d80ac0ab2cc242b0d48e10bc281a0c4136d318 Mon Sep 17 00:00:00 2001 From: ntfreak Date: Thu, 20 Nov 2008 12:01:46 +0000 Subject: [PATCH] - 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 --- src/server/gdb_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5