mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 12:09:21 +02:00
FpDebug: Linux, fix reading proc/maps to get loaded libraries.
(cherry picked from commit 6f1cd0c4b5
)
This commit is contained in:
parent
3872ad8091
commit
772bc3236b
@ -1116,10 +1116,10 @@ begin
|
||||
BlockLength:=64*1024;
|
||||
TotalBytesRead := 0;
|
||||
repeat
|
||||
SetLength(Buf, TotalBytesRead + BlockLength);
|
||||
BytesRead := FS.Read(Buf[TotalBytesRead+1], BlockLength);
|
||||
TotalBytesRead:=TotalBytesRead+BytesRead;
|
||||
until BytesRead <= BlockLength;
|
||||
SetLength(Buf, TotalBytesRead + BlockLength);
|
||||
BytesRead := FS.Read(Buf[TotalBytesRead+1], BlockLength);
|
||||
TotalBytesRead:=TotalBytesRead+BytesRead;
|
||||
until BytesRead <= 0;
|
||||
SetLength(Buf, TotalBytesRead);
|
||||
finally
|
||||
FS.Free;
|
||||
|
Loading…
Reference in New Issue
Block a user