[fpc-devel] stabs replaces ^byte to PByte, but only if PByte exists

Martin fpc at mfriebe.de
Thu Dec 16 02:12:41 CET 2010

On 15/12/2010 23:44, Martin wrote:
> An other interesting part of debug info (2.4.2 and trunk)
> If I define a variable
> var
>   Foo: ^TFoo;
> then if no type "xxx=^TFoo" exists, both stabs and dwarf will write 
> debug info that contains "^TFoo"
>  (tested with ptype, and "maint print type")
> But if a Type PFoo=^TFoo exists, then stabs will replace the debug 
> info and use PFoo.
> dwarf still does ^TFoo
It seems fpc trunk goes even further. with trunk and stabs, the 
following is also combined

TMyShortstring = ShortString;
PMyShortstring = ^TMyShortstring;

now instead of  PMyShortstring gdb says PShortstring

2.4.2 (and the same gdb) still made them differ.


More information about the fpc-devel mailing list