mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 04:59:20 +02:00
LazDebuggerGdbmi: fix ParseGDBString
This commit is contained in:
parent
a4af1db7c2
commit
38e0022ccc
@ -410,10 +410,11 @@ begin
|
|||||||
// must be #
|
// must be #
|
||||||
v := 0;
|
v := 0;
|
||||||
inc(i);
|
inc(i);
|
||||||
while (i < length(AValue)) and (AValue[i] in ['0'..'9']) do begin
|
while (i <= length(AValue)) and (AValue[i] in ['0'..'9']) do begin
|
||||||
v:= v * 10 + ord(AValue[i]) - ord('0');
|
v:= v * 10 + ord(AValue[i]) - ord('0');
|
||||||
inc(i);
|
inc(i);
|
||||||
end;
|
end;
|
||||||
|
dec(i);
|
||||||
inc(j);
|
inc(j);
|
||||||
Result[j] := chr(v and 255);
|
Result[j] := chr(v and 255);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user