[fpc-devel] dwarf and local vars in nested procedures....

Martin lazarus at mfriebe.de
Sun Jan 16 18:32:40 CET 2011


does dwarf (2) (-gw) start to put local vars of nested parents in debug 
info?

Procedure foo:
var a: pchar;
   procedure bar;
   begin
     writeln; // break here
   end;

var s:string;
begin
   s:='abc'
   a:= @s[1];
   bar;
end;


"A" is now in locals => wih a broken value though 0xaaaaaaaa => instead 
of a valid pointer;

Martin



More information about the fpc-devel mailing list