diff options
author | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-11-20 12:01:46 +0000 |
---|---|---|
committer | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-11-20 12:01:46 +0000 |
commit | b7d80ac0ab2cc242b0d48e10bc281a0c4136d318 (patch) | |
tree | 9511479a317f39e0f13183f8601ecc400abe7d45 | |
parent | e507bfddb0bfc45dad16ec036df9039ef6666ff9 (diff) | |
download | riscv-openocd-b7d80ac0ab2cc242b0d48e10bc281a0c4136d318.zip riscv-openocd-b7d80ac0ab2cc242b0d48e10bc281a0c4136d318.tar.gz riscv-openocd-b7d80ac0ab2cc242b0d48e10bc281a0c4136d318.tar.bz2 |
- 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
-rw-r--r-- | src/server/gdb_server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c index 4c8afbd..a0c60e1 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; |