- 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
__archive__
ntfreak 2008-11-20 12:01:46 +00:00
parent e507bfddb0
commit b7d80ac0ab
1 changed files with 1 additions and 1 deletions

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;