[fpc-devel] Potentially wrong line info with dwarf 4

Martin Frb lazarus at mfriebe.de
Thu May 23 14:51:39 CEST 2024


If I am not missing any detail....

Using -gw 4 it seems fpc writes the same header for line info as it does 
for dwarf 3.

However, when the line info version is set to 4 (at least if all units 
are dwarf 4 / if some are dwarf 3 this may not be the case)

Dwarf 4 has a new field in the header, and that is not written.

objdump in this case delivers trash for the filenames (as they are not 
in the correct location)


Afaik, the line info version can be set to 3, even if other dwarf info 
is version 4


More information about the fpc-devel mailing list