Browse Source

- 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
tags/v0.1.0
ntfreak 15 years ago
parent
commit
b7d80ac0ab
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/server/gdb_server.c

+ 1
- 1
src/server/gdb_server.c View File

@@ -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;


Loading…
Cancel
Save