Is this an FPC issue or gdb?
Tested with fpc 2.6 / gdb 7.3-2 , win 32
Stabs, seems to have the right sections for fields. Stabs also shows methods, but they seem to be without any info about class sections
Dwarf (see below) everything seems to be public:
Dwarf does not seem to show methods
> TCmdLineDebugger.SendCmdLn "ptype TCOMPONENT"
<< TCmdLineDebugger.ReadLn "~"type = ^TCOMPONENT = class : public TPERSISTENT \n""
<< TCmdLineDebugger.ReadLn "~" public\n""
<< TCmdLineDebugger.ReadLn "~" FOWNER : TCOMPONENT;\n"" << TCmdLineDebugger.ReadLn "~" FNAME : ANSISTRING;\n"" << TCmdLineDebugger.ReadLn "~" FTAG : LONGINT;\n"" << TCmdLineDebugger.ReadLn "~" FCOMPONENTS : TFPLIST;\n"" << TCmdLineDebugger.ReadLn "~" FFREENOTIFIES : TFPLIST;\n"" << TCmdLineDebugger.ReadLn "~" FDESIGNINFO : LONGINT;\n"" << TCmdLineDebugger.ReadLn "~" FVCLCOMOBJECT : POINTER;\n"" << TCmdLineDebugger.ReadLn "~" FCOMPONENTSTATE : TCOMPONENTSTATE;\n"" << TCmdLineDebugger.ReadLn "~" FCOMPONENTSTYLE : TCOMPONENTSTYLE;\n"" << TCmdLineDebugger.ReadLn "~" COMPONENTSTATE : TCOMPONENTSTATE;\n"" << TCmdLineDebugger.ReadLn "~" COMPONENTSTYLE : TCOMPONENTSTYLE;\n"" << TCmdLineDebugger.ReadLn "~" DESIGNINFO : LONGINT;\n"" << TCmdLineDebugger.ReadLn "~" OWNER : TCOMPONENT;\n"" << TCmdLineDebugger.ReadLn "~" VCLCOMOBJECT : POINTER;\n"" << TCmdLineDebugger.ReadLn "~" NAME : ANSISTRING;\n"" << TCmdLineDebugger.ReadLn "~" TAG : LONGINT;\n"" << TCmdLineDebugger.ReadLn "~"end\n""
<< TCmdLineDebugger.ReadLn "^done"
