mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-05 22:38:32 +01:00
FpDebug: fix address for interfaces
This commit is contained in:
parent
6f99f0fe16
commit
8749ca4f20
@ -3159,7 +3159,7 @@ begin
|
||||
Result := Result + [svfMembers];
|
||||
|
||||
//TODO: svfDataAddress should depend on (hidden) Pointer or Ref in the TypeInfo
|
||||
if Kind in [skClass] then begin
|
||||
if Kind in [skClass, skInterface] then begin
|
||||
Result := Result + [svfOrdinal, svfDataAddress, svfDataSize]; // svfDataSize
|
||||
if ((FDataSymbol <> nil) and FDataSymbol.HasAddress) or
|
||||
(HasTypeCastInfo and (Kind = skClass))
|
||||
|
||||
@ -528,7 +528,7 @@ begin
|
||||
|
||||
Addr := 0;
|
||||
if (AnFpValue.Kind in [skClass, skInterface]) then begin
|
||||
if AnFpValue.FieldFlags * [svfInteger, svfCardinal] <> [] then
|
||||
if AnFpValue.FieldFlags * [svfInteger, svfCardinal, svfOrdinal] <> [] then
|
||||
Addr := AnFpValue.AsCardinal
|
||||
else
|
||||
if svfDataAddress in AnFpValue.FieldFlags then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user