[fpc-devel] debug info for nested procedures

Martin fpc at mfriebe.de
Wed Feb 10 18:31:13 CET 2016


procedure TForm1.FormCreate(Sender: TObject);
   var   i: Integer;
   procedure foo;
   begin       i := i + 1;      end;
begin
   i := 11;
   foo;
   Caption := IntToStr(i);
end;

it appears that fpc now adds explicit debug info for "i" in the nested 
procedure (dwarf and stabs)?
And when using dwarf also drop $parentfp ? (still there for stabs)

However I tested with gdb (win 32 bit 7.7.1 and 7.10) and both displayed 
a wrong value.
Is there any gdb that can display this?

http://forum.lazarus.freepascal.org/index.php/topic,31095.msg201654.html#msg201654




More information about the fpc-devel mailing list