- 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
This commit is contained in:
parent
e507bfddb0
commit
b7d80ac0ab
|
@ -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)
|
for (i = 0; i < str_len; i+=2)
|
||||||
{
|
{
|
||||||
u8 t = hextoint(tstr[i])<<4;
|
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);
|
int j = gdb_reg_pos(target, i/2, str_len/2);
|
||||||
bin[j] = t;
|
bin[j] = t;
|
||||||
|
|
Loading…
Reference in New Issue