[fpc-devel] debug info for ^TObject vs just TObject

Martin lazarus at mfriebe.de
Tue Dec 14 20:08:26 CET 2010


type
   TFoo = class
   public
     FooValue: Integer;
   end;
   PFoo = ^TFoo;

procedure FooFunc(  Foo1: TFoo;   pFoo1: PFoo);


ptype Foo1
"~"type = ^TFOO = class : public TOBJECT \n""
ptype pFoo1
"~"type = ^TFOO = class : public TOBJECT \n""

Is gdb hiding something, or does FPC encode both types with the same info?

Since an object is encoded in it's internal pointer form, shouldn't the 
pointer to an object be ^^TFoo?

Martin




More information about the fpc-devel mailing list