[fpc-devel] debug info for nested procedures / Solved
fpc at mfriebe.de
Wed Feb 10 20:25:10 CET 2016
Please ignore the below. "i" was a bad choice for testing. There may be
a global var somewhere.
works fine, when the variable name is not used elsewhere.
On 10/02/2016 17:31, Martin wrote:
> procedure TForm1.FormCreate(Sender: TObject);
> var i: Integer;
> procedure foo;
> begin i := i + 1; end;
> i := 11;
> Caption := IntToStr(i);
> 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?
> fpc-devel maillist - fpc-devel at lists.freepascal.org
More information about the fpc-devel