FpDebug: add size for function-ref

git-svn-id: trunk@64398 -
This commit is contained in:
martin 2021-01-16 19:30:06 +00:00
parent 3ffb492625
commit ba1a82803a

View File

@ -822,6 +822,7 @@ DECL = DW_AT_decl_column, DW_AT_decl_file, DW_AT_decl_line
function GetDataAddressNext(AValueObj: TFpValueDwarf; var AnAddress: TFpDbgMemLocation;
out ADoneWork: Boolean; ATargetType: TFpSymbolDwarfType): Boolean; override;
procedure KindNeeded; override;
function DoReadSize(const AValueObj: TFpValue; out ASize: TFpDbgValueSize): Boolean; override;
public
destructor Destroy; override;
function GetTypedValueObject({%H-}ATypeCast: Boolean; AnOuterType: TFpSymbolDwarfType = nil): TFpValueDwarf; override;
@ -4820,6 +4821,14 @@ begin
SetKind(skProcedureRef);
end;
function TFpSymbolDwarfTypeSubroutine.DoReadSize(const AValueObj: TFpValue; out
ASize: TFpDbgValueSize): Boolean;
begin
ASize := ZeroSize;
ASize.Size := CompilationUnit.AddressSize;
Result := True;
end;
destructor TFpSymbolDwarfTypeSubroutine.Destroy;
begin
FreeAndNil(FProcMembers);