From 644c6695190ae4427d8337f6c7acb0bb70eea8cf Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Sun, 18 May 2003 00:41:18 +0000 Subject: [PATCH] The run length encoding hung if it found >100 equal chars git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3684 a1c6a512-1295-4272-9138-f99709370657 --- gdb/sh-stub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/sh-stub.c b/gdb/sh-stub.c index 86255b74e1..198de99d22 100644 --- a/gdb/sh-stub.c +++ b/gdb/sh-stub.c @@ -656,7 +656,7 @@ static void putpacket (register char *buffer) /* Do run length encoding */ for (runlen = 0; runlen < 100; runlen ++) { - if (src[0] != src[runlen]) + if (src[0] != src[runlen] || runlen == 99) { if (runlen > 3) {