mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 07:08:01 +08:00
* remote.c (fetch_register_using_p): Construct 'p' packet in a
manner independent of the host byte order.
This commit is contained in:
@ -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>
|
2004-10-27 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
* mips-tdep.c (id_delayed): Remove prototype.
|
* mips-tdep.c (id_delayed): Remove prototype.
|
||||||
|
@ -3176,9 +3176,10 @@ fetch_register_using_p (int regnum)
|
|||||||
char regp[MAX_REGISTER_SIZE];
|
char regp[MAX_REGISTER_SIZE];
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
buf[0] = 'p';
|
p = buf;
|
||||||
bin2hex((char *) ®num, &buf[1], sizeof(regnum));
|
*p++ = 'p';
|
||||||
buf[9] = 0;
|
p += hexnumstr (p, regnum);
|
||||||
|
*p++ = '\0';
|
||||||
remote_send (buf, rs->remote_packet_size);
|
remote_send (buf, rs->remote_packet_size);
|
||||||
if (buf[0] != 0 && buf[0] != 'E') {
|
if (buf[0] != 0 && buf[0] != 'E') {
|
||||||
p = buf;
|
p = buf;
|
||||||
|
Reference in New Issue
Block a user