summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)
{