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