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

Martin lazarus at mfriebe.de
Thu Dec 16 00:44:57 CET 2010


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 is of course possible that the debugger goes a long way in finding 
the matching info, but even the raw output of gdbs internals have the 
substitute....

Martin




More information about the fpc-devel mailing list