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

Martin fpc at mfriebe.de
Tue Dec 14 20:20:05 CET 2010


On 14/12/2010 19:08, Martin wrote:
>
> type
>   TFoo = class
...
>   PFoo = ^TFoo;
>
> 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?
>

Equally it seems that (dwarf)

var Ansistring
var Char
var PChar

are all encoded as
ptype Foo1
"~"type = &Char\n""

I guess pchar, and ansistring (if passed as var param) should be &^Char ?

Martin





More information about the fpc-devel mailing list