This is the mail archive of the
mailing list for the GCC project.
Re: GCC 4.6.1 emits discriminators in DWARF2 mode
> Firstly, aren't discriminators introduced in DWARF 4? Little more
> digging shows that the following fix is missing in 4.6.1 release. It
> breaks the current dwarf2 parsers/readers. I think it is worth filing
> a bug.
Yes, this is a real nuisance for some DWARF consumers. You need to ask a RM
about backporting the fix.
> Secondly, in gcc4.5.1, the directive (.loc) is not emitted and still
> we are able to map line numbers to address. Please help me understand
> how introducing .loc directive affects debug_line format in gcc 4.6.1.
.loc directives are processed by the assembler, which then builds .debug_line.