FpDebug: Don't create empty CFA entries

This commit is contained in:
Martin 2024-05-22 12:11:49 +02:00
parent 0e3a451627
commit 4e543b65ce

View File

@ -4151,9 +4151,11 @@ begin
for i := 0 to high(FFiles) do
begin
inf := FFiles[i].Sections[dsFrame];
if inf.Size = 0 then
continue;
CFI := TDwarfCallFrameInformation.Create;
FCallFrameInformationList.Add(CFI);
p := inf.RawData;
pe := inf.RawData + inf.Size;
while (p <> nil) and (p < pe) do