summaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-11-20 12:01:46 +0000
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-11-20 12:01:46 +0000
commitb7d80ac0ab2cc242b0d48e10bc281a0c4136d318 (patch)
tree9511479a317f39e0f13183f8601ecc400abe7d45 /src/server
parente507bfddb0bfc45dad16ec036df9039ef6666ff9 (diff)
downloadopenocd+libswd-b7d80ac0ab2cc242b0d48e10bc281a0c4136d318.tar.gz
openocd+libswd-b7d80ac0ab2cc242b0d48e10bc281a0c4136d318.tar.bz2
openocd+libswd-b7d80ac0ab2cc242b0d48e10bc281a0c4136d318.tar.xz
openocd+libswd-b7d80ac0ab2cc242b0d48e10bc281a0c4136d318.zip
- 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
Diffstat (limited to 'src/server')
-rw-r--r--src/server/gdb_server.c2
1 files changed, 1 insertions, 1 deletions
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;