[Dwarf-Discuss] DWARF5 line table file numbering inconsistent

David Anderson davea42@linuxmail.org
Thu Oct 15 15:38:29 GMT 2020

I think the following (while not news) needs to be said
simply and directly.

It is impossible to obey all the DWARF5 rules
on file numbering in the line table
at the same time. They contradict each other,
taking the standard as a whole.
[this consistency issue is solely DWARF5].

A simple solution? is to say that
the file number value 0 meaning of 'no file'
is eliminated so that part
of Section 2.14 page 50 is invalidated.
So then we have a zero-based file array
along with all references to it.
And declare that the 'file' line table
register defaults to zero (DWARF5 Table 6.4 Page
153).? Then the standard is self-consistent.
(Clang has been using this approach for some time now).

I created a document documenting all the places
in the standard involving line table file numbering
but this emaill is already long enough.

David Anderson

Of course power tools and alcohol don't mix.
Everyone knows power tools aren't soluble in alcohol.
-- Crazy Nigel

More information about the Dwarf-discuss mailing list