mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 11:19:26 +02:00
FpDebug: allow calling functions from function-pointer variables. (Not yet method variables)
This commit is contained in:
parent
9569f7beff
commit
57da4cd7fd
@ -1197,9 +1197,12 @@ begin
|
||||
Result := InvalidLoc;
|
||||
if (FDataSymbol = nil) then
|
||||
exit;
|
||||
assert(FDataSymbol is TFpSymbolDwarfDataProc, 'TFpValueDwarfSubroutine.GetEntryPCAddress: FDataSymbol is TFpSymbolDwarfDataProc');
|
||||
if not TFpSymbolDwarfDataProc(FDataSymbol).GetEntryPCAddress(Self, Result) then
|
||||
Result := InvalidLoc;
|
||||
if FDataSymbol is TFpSymbolDwarfDataProc then begin
|
||||
if not TFpSymbolDwarfDataProc(FDataSymbol).GetEntryPCAddress(Self, Result) then
|
||||
Result := InvalidLoc;
|
||||
end
|
||||
else
|
||||
Result := DataAddress;
|
||||
end;
|
||||
|
||||
{ TFpDwarfDefaultSymbolClassMap }
|
||||
|
@ -1654,7 +1654,7 @@ begin
|
||||
if (tmp = nil) or (not Expression.Valid) then
|
||||
exit;
|
||||
|
||||
if (tmp.DbgSymbol <> nil) and (tmp.DbgSymbol.Kind = skFunction) then begin
|
||||
if (tmp.DbgSymbol <> nil) and (tmp.DbgSymbol.Kind in [skFunction, skFunctionRef]) then begin
|
||||
if not Assigned(Expression.OnFunctionCall) then begin
|
||||
SetError('calling functions not allowed');
|
||||
exit;
|
||||
|
Loading…
Reference in New Issue
Block a user