[fpc-devel] Insufficient Dwarf info for Interfaces
    Michael Van Canneyt 
    michael at freepascal.org
       
    Thu Sep 15 16:17:09 CEST 2022
    
    
  
On Thu, 15 Sep 2022, Martin Frb via fpc-devel wrote:
> https://gitlab.com/freepascal.org/fpc/source/-/issues/39904
>
> On top of adding the functions in the interface to the dwarf info, it 
> would be great if the compiler could also add some sort of link to the 
> underlaying TObject.
>
> So the debugger could (if available) show the user the object/instance 
> that implements the interface.
I believe the whole idea of interfaces is that this info is not available :-)
For externally implemented interfaces (COM and the like) this will
definitely not be available. 
Delphi has a special interface which - when implemented - returns the object 
(TComponent) behind an interface.
You can then query this interface and get a reference to the object.
It's called IInterfaceComponentReference
Michael.
    
    
More information about the fpc-devel
mailing list