This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]