* remote.c (extended_remote_restart): Pass the correct length

to getpkt.
This commit is contained in:
Daniel Jacobowitz 2006-04-12 14:27:40 +00:00
parent 52f16a0ef4
commit 01d3a6ce13
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-04-12 Daniel Jacobowitz <dan@codesourcery.com>
* remote.c (extended_remote_restart): Pass the correct length
to getpkt.
2006-04-11 Jim Blandy <jimb@codesourcery.com>
* serial.c (serial_open): Check for special cases at the front of

View File

@ -1796,7 +1796,7 @@ extended_remote_restart (void)
/* Now query for status so this looks just like we restarted
gdbserver from scratch. */
putpkt ("?");
getpkt (&rs->buf, &rs->remote_packet_size, 0);
getpkt (&rs->buf, &rs->buf_size, 0);
}
/* Clean up connection to a remote debugger. */