backtrace/line information is missing function names under 64-bit FPC
Original Reporter info from Mantis: ggeldenhuys
-
Reporter name: Graeme Geldenhuys
Original Reporter info from Mantis: ggeldenhuys
- Reporter name: Graeme Geldenhuys
Description:
Below is output using FPC 2.4.3, but the exact same output happens with FPC 2.5.1 too.
... using 32-bit FPC
-----------------------------------------------
lineinfo $ /opt/fpc-2.4.3/i386-linux/bin/ppc386 -O- -gl -olineinfo_test.elf32 lineinfo_test.pas
Free Pascal Compiler version 2.4.1 [2010/03/29] for i386
Copyright (c) 1993-2009 by Florian Klaempfl
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
lineinfo $ ./lineinfo_test.elf32
&LtPos;entry > <2010-10-05 10:22:17:22> &LtPos;main> &LtPos;lineinfo_test.pas> <43>
&LtPos;entry > <2010-10-05 10:22:17:22> &LtPos;HELLOWORLD> &LtPos;lineinfo_test.pas> <37>
Graeme was here
&LtPos;exit > <2010-10-05 10:22:17:22> &LtPos;HELLOWORLD> &LtPos;lineinfo_test.pas> <39>
&LtPos;exit > <2010-10-05 10:22:17:22> &LtPos;main> &LtPos;lineinfo_test.pas> <45>
lineinfo $
-----------------------------------------------
... now for 64-bit FPC
-----------------------------------------------
lineinfo $ /opt/fpc-2.4.3/x86_64-linux/bin/ppcx64 -O- -gl -olineinfo_test.elf64 lineinfo_test.pas
Free Pascal Compiler version 2.4.3 [2010/08/02] for x86_64
Copyright (c) 1993-2009 by Florian Klaempfl
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
lineinfo $ ./lineinfo_test.elf64
&LtPos;entry > <2010-10-05 10:22:43:22> <> &LtPos;lineinfo_test.pas> <43>
&LtPos;entry > <2010-10-05 10:22:43:22> <> &LtPos;lineinfo_test.pas> <37>
Graeme was here
&LtPos;exit > <2010-10-05 10:22:43:22> <> &LtPos;lineinfo_test.pas> <39>
&LtPos;exit > <2010-10-05 10:22:43:22> <> &LtPos;lineinfo_test.pas> <45>
-----------------------------------------------
Note that in the 64-bit program output the function name information is missing.
This bug affects two projects directly:
- fpcunit
- fpprofiler
and affects debugging any other application.
Mantis conversion info:
- Mantis ID: 17547
- OS: Ubuntu Linux
- OS Build: 10.04
- Platform: x86_64
- Version: 2.5.1
- Fixed in version: 3.1.1
- Fixed in revision: 33228 (#5109ad9c), 33477 (#71b7cd7e)
- Monitored by: » wkrenn (Willibald Krenn), » BigChimp (Reinier Olislagers), » ggeldenhuys (Graeme Geldenhuys), » @MageSlayer (Denis Golovan)