Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2024-05

Potentially wrong line info with dwarf 4

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin Frb

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

Reply by email

Florian Klämpfl
to Martin Frb
Martin Frb wrote 16 lines
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 :)

_______________________________________________ fpc-devel maillist  -  https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply by email

Martin Frb
to Florian Klämpfl
Florian Klämpfl wrote 19 lines
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.

Reply by email