This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: RFA: PACKET_OVERHEAD constant added to remote.c
On Nov 17, 12:05pm, Andrew Cagney wrote:
> What about the following:
[...]
> o fix the *_read_bytes() code so that it allocates
> a buffer that includes space for the trailing
> NUL.
I finally see! I thought we needed to account framing characters,
checksum, and the packet headers. (Which was why I was subtracting
32.) But we're only off by a NUL character.