mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-20 13:39: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
@ -1119,7 +1119,7 @@ begin
|
|||||||
SetLength(Buf, TotalBytesRead + BlockLength);
|
SetLength(Buf, TotalBytesRead + BlockLength);
|
||||||
BytesRead := FS.Read(Buf[TotalBytesRead+1], BlockLength);
|
BytesRead := FS.Read(Buf[TotalBytesRead+1], BlockLength);
|
||||||
TotalBytesRead:=TotalBytesRead+BytesRead;
|
TotalBytesRead:=TotalBytesRead+BytesRead;
|
||||||
until BytesRead <= BlockLength;
|
until BytesRead <= 0;
|
||||||
SetLength(Buf, TotalBytesRead);
|
SetLength(Buf, TotalBytesRead);
|
||||||
finally
|
finally
|
||||||
FS.Free;
|
FS.Free;
|
||||||
|
Loading…
Reference in New Issue
Block a user