K 10 svn:author V 7 git2svn K 8 svn:date V 27 2022-02-05T02:00:48.174776Z K 7 svn:log V 961 gdb(4): Do not use run length encoding for 3-symbol repetitions Disable the gdb packet run length encoding for 3-symbol repetitions. While it is technically possible to encode them, they have no advantage over sending the characters verbatim (the resulting length is the same) and they result in sending non-printable \x1f character. The protocol has been designed with the intent of avoiding non-printable characters and therefore the run length encoding is biased to emit \x20 (a space) with the minimal intended run length of 4. While at it, simplify the logic by merging the different 'if' blocks into a single while loop, and moving 'runlen == 0' check lower. Reviewed by: cem, emaste MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D33686 (cherry picked from commit 028a372fe2658ccf72ed481b9e942b28a59cb178) Git Hash: 4fa8cb965e73421df00ac5c724aa27b8a117fc32 Git Author: mgorny@gentoo.org END