aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/remote.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index fcb5959..aa2e399 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/remote.c b/gdb/remote.c
index d60a606..07c8007 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -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. */