mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-25 18:59:11 +02:00
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:
parent
a8d568ef55
commit
e15e4a1843
@ -4081,6 +4081,9 @@ function TFpThreadWorkerScanAll.FindCompileUnit: TDwarfScopeInfo;
|
|||||||
begin
|
begin
|
||||||
Result := FScanScopeList.BuildList(FCU.FAbbrevList, FCU.FInfoData, FCU.FLength,
|
Result := FScanScopeList.BuildList(FCU.FAbbrevList, FCU.FInfoData, FCU.FLength,
|
||||||
FCU.FAddressSize, FCU.IsDwarf64, FCU.Version, DW_TAG_compile_unit);
|
FCU.FAddressSize, FCU.IsDwarf64, FCU.Version, DW_TAG_compile_unit);
|
||||||
|
|
||||||
|
FCU.FScopeList := FScanScopeList;
|
||||||
|
Result.FScopeListPtr := @FCU.FScopeList;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ TFpThreadWorkerComputeNameHashes }
|
{ TFpThreadWorkerComputeNameHashes }
|
||||||
|
Loading…
Reference in New Issue
Block a user