* remote.c (fetch_register_using_p): Construct 'p' packet in a

manner independent of the host byte order.
This commit is contained in:
Jim Blandy 2004-10-27 20:03:50 +00:00
parent c163184fa2
commit fcad0fa40f
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2004-10-27 Jim Blandy <jimb@redhat.com>
* remote.c (fetch_register_using_p): Construct 'p' packet in a
manner independent of the host byte order.
2004-10-27 Mark Kettenis <kettenis@gnu.org>
* mips-tdep.c (id_delayed): Remove prototype.

View File

@ -3176,9 +3176,10 @@ fetch_register_using_p (int regnum)
char regp[MAX_REGISTER_SIZE];
int i;
buf[0] = 'p';
bin2hex((char *) &regnum, &buf[1], sizeof(regnum));
buf[9] = 0;
p = buf;
*p++ = 'p';
p += hexnumstr (p, regnum);
*p++ = '\0';
remote_send (buf, rs->remote_packet_size);
if (buf[0] != 0 && buf[0] != 'E') {
p = buf;