Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2011-01

dwarf and local vars in nested procedures....

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin

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

Reply by email