[fpc-devel] Re: LineInfo unit seems broken in 2.5.1

Graeme Geldenhuys graemeg.lists at gmail.com
Sat Aug 21 19:29:04 CEST 2010


On 21 August 2010 17:19, Graeme Geldenhuys wrote:
>
> $ ./testlineinfo1.elf32
> main [48]   0
> MyClass.Run [32] > main testlineinfo1.pas 51
> inside MyClass.Run...
> MyClass.RunTwo [40] > MYCLASS__RUN testlineinfo1.pas 34
> inside MyClass.RunTwo...
> MyClass.RunTwo [42] < MYCLASS__RUN testlineinfo1.pas 34
> MyClass.Run [35] < main testlineinfo1.pas 51
> main [54]  0


I managed to SSH into one of our work servers that has an old FPC
2.2.3 (64-bit) compiler installed. I compiled and ran the test app,
and even as far back as FPC 2.2.3, the LineInfo unit seems broken, or
missing data.

$ ./testlineinfo.elf64
main [48]   0
MyClass.Run [32] >  testlineinfo.pas 51
inside MyClass.Run...
MyClass.RunTwo [40] >  testlineinfo.pas 34
inside MyClass.RunTwo...
MyClass.RunTwo [42] <  testlineinfo.pas 34
MyClass.Run [35] <  testlineinfo.pas 51
main [54]   0


As you can see from the output above, the 'func' information is
completely missing, and the source code line number information is
also wrong (compared to the reference info is square brackets).


-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the fpc-devel mailing list