fpc 3.0.2 does not seem to generate line info on Linux i386
Original Reporter info from Mantis: Bart @flyingsheep
-
Reporter name: Bart Broersma
Original Reporter info from Mantis: Bart @flyingsheep
- Reporter name: Bart Broersma
Description:
fpc 3.0.2 does not seem to generate line info on Linux i386
On Windows i386 it works as expected.
I don't have Linux x64 to test with.
Steps to reproduce:
program linfo;
{$mode objfpc}
{$h+}
uses sysutils, classes;
procedure bug;
begin
raise exception.create('bug');
end;
procedure A;
begin
bug;
end;
procedure B;
begin
A;
end;
begin
B;
end.
Build with fpc 3.0.2 and run:
[bart@localhost lineinfo]$ fpc -g -gl ./linfo.lpr
Free Pascal Compiler version 3.0.2 [2017/02/06] for i386
Copyright (c) 1993-2017 by Florian Klaempfl and others
Target OS: Linux for i386
Compiling ./linfo.lpr
Linking linfo
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
26 lines compiled, 0.4 sec
[bart@localhost lineinfo]$ ./linfo
An unhandled exception occurred at $080480A3:
Exception: bug<br/>
$080480A3
$080480D8
$080480E8
$080480FD
The same program build with (the same commandline with) fpc 3.0.0 outputs:
An unhandled exception occurred at $080480A3:
Exception: bug
$080480A3 BUG, line 9 of linfo.lpr
$080480D8 A, line 15 of linfo.lpr
$080480E8 B, line 20 of linfo.lpr
$080480FD main, line 24 of linfo.lpr
Additional information:
Noe: i could not select 3.0.2 from the "Product Version" dropdown list
Mantis conversion info:
- Mantis ID: 31629
- OS: Linux
- OS Build: Fedora Core 18
- Build: 3.0.2
- Platform: i386
- Fixed in version: 3.1.1
- Fixed in revision: 35886 (#011a88b1)
- Monitored by: » luizamerico (Luiz Americo), » Vincent (Vincent Snijders), » Cyrax (Cyrax)
- Target version: 3.0.4