mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-18 12:24:38 +08:00
2001-05-21 Michael Snyder <msnyder@redhat.com>
* remote.c (remote_async_wait): Added new variable fieldsize. Add fieldsize (return value of hex2bin) to string pointer p.
This commit is contained in:
parent
f5198f610d
commit
6c3f2dbfeb
@ -1,3 +1,8 @@
|
||||
2001-05-21 Michael Snyder <msnyder@redhat.com>
|
||||
|
||||
* remote.c (remote_async_wait): Added new variable fieldsize.
|
||||
Add fieldsize (return value of hex2bin) to string pointer p.
|
||||
|
||||
2001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
|
||||
|
||||
* m68hc11-tdep.c (m68hc11_pop_frame): Fix stack pointer computation.
|
||||
|
@ -3060,6 +3060,7 @@ remote_async_wait (ptid_t ptid, struct target_waitstatus *status)
|
||||
{
|
||||
unsigned char *p1;
|
||||
char *p_temp;
|
||||
int fieldsize;
|
||||
|
||||
/* Read the register number */
|
||||
regno = strtol ((const char *) p, &p_temp, 16);
|
||||
@ -3093,8 +3094,9 @@ Packet: '%s'\n",
|
||||
Packet: '%s'\n",
|
||||
regno, p, buf);
|
||||
|
||||
if (hex2bin (p, regs, REGISTER_RAW_SIZE (regno))
|
||||
< REGISTER_RAW_SIZE (regno))
|
||||
fieldsize = hex2bin (p, regs, REGISTER_RAW_SIZE (regno));
|
||||
p += 2 * fieldsize;
|
||||
if (fieldsize < REGISTER_RAW_SIZE (regno))
|
||||
warning ("Remote reply is too short: %s", buf);
|
||||
supply_register (regno, regs);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user