[fpc-devel] Potentially wrong line info with dwarf 4
Martin Frb
lazarus at mfriebe.de
Thu May 23 23:38:17 CEST 2024
On 23/05/2024 22:55, Florian Klämpfl via fpc-devel wrote:
> On 23.05.24 14:51, Martin Frb via fpc-devel wrote:
>> 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
>
> I fixed the header. This was an easier one :)
Which versions of Fpc will that apply?
3.3.1 and up
and/or also 3.2.3?
Did 3.2.2 have -gw4?
I ask because FpDebug will look at the producer to decide if it should
read the broken info.
More information about the fpc-devel
mailing list