Lineinfo doesn't work because no stabs is generated
Original Reporter info from Mantis: chebmaster
-
Reporter name:
Original Reporter info from Mantis: chebmaster
- Reporter name:
Description:
Impossible to port a self-debugging program (relying on lineinfo and callback chain reporting) to x86_64 because all error addresses are in hexadecimals.
Also, see "wonderful" fix of https://bugs.freepascal.org/view.php?id=23365
Please add a switch to re-enable generating stabs (maybe renaming the corresponding executable section so that GDB doesn't see it) for use by lineinfo.
Additional information:
I am unable to use 3.x for building my game engine for Win64 and Linux (by the way, Ubuntu just dropped 32 bit versions altogether). The dwarf parser I jury-rigged from fpc 2.4.x RTL units is unable to parse the line info that is generated, it ends up with only returning line infgo for about 10% addresses. Also, dwarf doesn't include function names even when it works.
Thus, I am forced to keep using FPC 2.6.4 for x86_64, which does generate stabs.
P.S. I never used any sort of debugger. Debug writes, properly nested try blocks with informative messages and callback chain were always enough for me.
P.P.S. If someone knows a working Dwarf3 parser in Pascal sources I'd try making lineinfo out of it.
Mantis conversion info:
- Mantis ID: 34234
- OS: all
- Platform: x86_64
- Version: 3.0.4
- Monitored by: » @PascalDragon (Sven Barth)