[lldb-dev] [Patch] Implement run length encoding

Greg Clayton gclayton at apple.com
Tue Aug 27 10:01:39 PDT 2013


Please checkout Virgil Bello's patch and see if his works for you? It does things differently by only expanding the packet when the packet is complete, which I like a bit better.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: lldb-rle.diff
Type: application/octet-stream
Size: 3376 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20130827/1af40cee/attachment.obj>
-------------- next part --------------


On Aug 27, 2013, at 4:08 AM, Abid, Hafiz <Hafiz_Abid at mentor.com> wrote:

> Hi All,
> This patch implements the run-length encoding used by the gdb protocol. As gdb reads data 1 byte at a time, it is able to handle RLE as it is putting data in the buffer. We read data in a chunk so I check for RLE on a packet when we have detected its boundary. Tested by running LLDB with gdbserver and also by manually inspecting the packet logs from both sides. Is it ok?
> 
> Regards,
> Abid
> <rle.patch>_______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev



More information about the lldb-dev mailing list