This is the mail archive of the
mailing list for the binutils project.
Re: [PATCH] inconsistent DWARF2 sections generated by --gdwarf2
I do not think so - the DWARF standard does specify that there there
should be a correspondence between the compilation units in the
.debug_info section and the compilation units in the .debug_line section:
From "Section 6.2 Line number Information":
As mentioned in Section 3.1.1, the line number information
generated for a compilation unit is represented in the
.debug_line section of an object file and is referenced by
corresponding compilation unit debugging information entry
in the .debug_info section.
But that's the other way around, .debug_info references .debug_line. In
this case we have .debug_line with no .debug_info, which should be OK.
Does that make sense though ? A .debug_line compilation unit which does
not correspond to any .debug_info compilation unit ? What lines would
it be describing ? Why would these lines exist without any debug info ?