This is the mail archive of the gdb@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: remote protocol run length encoding


"J.T. Conklin" wrote:

> The problem is in the way the run length is encoded.  29 is added to
> the run length, which yields a printable ASCII character for extents
> between 3 and 97 characters.  Unfortunately, this includes '$', '#',
> '+', and '-' which can exacerbate problems caused by transport layer
> glitches.  It's been my experience that such glitches occur all too
> often to ignore, so the protocol itself must be made as robust as
> possible.

I'll document this restriction.

> The run length encoding used by Cisco's remote protocol varient is
> safe, as it uses two hex digits to represent the length.  Perhaps we
> could add a variable which selected which RLE method to use?  At the
> same time, we could add support for encoding of command packets.  It
> could be quite useful for register and memory writes.

This is sounding like the existing rle method should be deprecated.
Can you think of any reliable way of probing for RLE?

	Andrew

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