[fpc-devel] class section (public, private) in debug info

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Mar 20 12:02:13 CET 2012


On 19 Mar 2012, at 16:37, Martin wrote:

> Dwarf (see below) everything seems to be public:
> Dwarf does not seem to show methods

With gdb on Mac OS X it works fine (and yes, this is DWARF):

(gdb) ptype TLINKEDLIST
type = ^TLINKEDLIST = class : public TOBJECT
   private
     FCOUNT : LONGINT;
     FFIRST : TLINKEDLISTITEM;
     FLAST : TLINKEDLISTITEM;
     FNOCLEAR : BOOLEAN;
     FIRST : TLINKEDLISTITEM;
     LAST : TLINKEDLISTITEM;
     COUNT : LONGINT;

   public
     function  CREATE () : TLINKEDLIST;
     procedure DESTROY (); virtual;
     function  EMPTY () : BOOLEAN;
     procedure CLEAR ();
     procedure INSERT ();
     procedure INSERTBEFORE ();
     procedure INSERTAFTER (); virtual;
     procedure CONCAT ();
     procedure REMOVE ();
     function  GETFIRST () : TLINKEDLISTITEM;
     function  GETLAST () : TLINKEDLISTITEM;
     procedure INSERTLIST ();
     procedure INSERTLISTBEFORE ();
     procedure INSERTLISTAFTER ();
     procedure CONCATLIST ();
     procedure INSERTLISTCOPY ();
     procedure CONCATLISTCOPY ();
end

That's of course a very old version of gdb (some fork based on  
6.3.50), so maybe it's a regression.


Jonas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20120320/84505407/attachment.html>


More information about the fpc-devel mailing list