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.

Martin
_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to