From 01d3a6ce134b69233591c6ad34ecdf844142e2c4 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Wed, 12 Apr 2006 14:27:40 +0000 Subject: [PATCH] * remote.c (extended_remote_restart): Pass the correct length to getpkt. --- gdb/ChangeLog | 5 +++++ gdb/remote.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fcb5959978c..aa2e3995425 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2006-04-12 Daniel Jacobowitz + + * remote.c (extended_remote_restart): Pass the correct length + to getpkt. + 2006-04-11 Jim Blandy * serial.c (serial_open): Check for special cases at the front of diff --git a/gdb/remote.c b/gdb/remote.c index d60a6062557..07c8007b01e 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. */ -- 2.30.2