FpDebug: Workaround for dangling pointer to FScanAllWorker.FScanScopeList (in FCompUnitScope.FScopeListPtr), set by FScanScopeList.BuildList.

(cherry picked from commit 915fbfa830)
This commit is contained in:
Martin 2022-05-09 01:22:32 +02:00
parent a8d568ef55
commit e15e4a1843

View File

@ -4081,6 +4081,9 @@ function TFpThreadWorkerScanAll.FindCompileUnit: TDwarfScopeInfo;
begin
Result := FScanScopeList.BuildList(FCU.FAbbrevList, FCU.FInfoData, FCU.FLength,
FCU.FAddressSize, FCU.IsDwarf64, FCU.Version, DW_TAG_compile_unit);
FCU.FScopeList := FScanScopeList;
Result.FScopeListPtr := @FCU.FScopeList;
end;
{ TFpThreadWorkerComputeNameHashes }