PR28149, debug info with wrong file association

Eric Botcazou botcazou@adacore.com
Fri Sep 17 07:25:33 GMT 2021


> gcc-11 and gcc-12 pass -gdwarf-5 to gas, in order to prime gas for
> DWARF 5 level debug info.  Unfortunately it seems there are cases
> where the compiler does not emit a .file or .loc dwarf debug directive
> before any machine instructions.  (Note that the .file directive
> typically emitted as the first line of assembly output doesn't count as
> a dwarf debug directive.  The dwarf .file has a file number before the
> file name string.)

That"s no longer true in DWARF 5, as there is always a .file 0 directive now.

-- 
Eric Botcazou




More information about the Binutils mailing list