summaryrefslogtreecommitdiffstats
path: root/gdb
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2003-05-18 00:41:18 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2003-05-18 00:41:18 +0000
commit644c6695190ae4427d8337f6c7acb0bb70eea8cf (patch)
tree932e66303938825cbf38efcd34fd32579ef64166 /gdb
parentfe6cf2d0e4c4dc08576191b207c2ca201ef6033f (diff)
downloadrockbox-644c6695190ae4427d8337f6c7acb0bb70eea8cf.tar.gz
rockbox-644c6695190ae4427d8337f6c7acb0bb70eea8cf.tar.bz2
rockbox-644c6695190ae4427d8337f6c7acb0bb70eea8cf.zip
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
Diffstat (limited to 'gdb')
-rw-r--r--gdb/sh-stub.c2
1 files changed, 1 insertions, 1 deletions
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)
{