DBG: prevent a range check error

git-svn-id: trunk@28256 -
This commit is contained in:
martin 2010-11-15 21:53:08 +00:00
parent cc86c3c99e
commit 8e1f7a799e

View File

@ -3995,19 +3995,21 @@ begin
Line := ReadLine;
while DebugProcessRunning and (Line <> '(gdb) ') do
begin
case Line[1] of
'=': begin
case StringCase(GetPart(['='], [','], Line, False, False),
['thread-group-added'])
of
0: {ignore};
else
S := S + Line + LineEnding;
if Line <> ''
then
case Line[1] of
'=': begin
case StringCase(GetPart(['='], [','], Line, False, False),
['thread-group-added'])
of
0: {ignore};
else
S := S + Line + LineEnding;
end;
end;
else
S := S + Line + LineEnding;
end;
else
S := S + Line + LineEnding;
end;
Line := ReadLine;
end;
if S <> ''