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