This is the mail archive of the
mailing list for the binutils project.
Re: [PATCH] inconsistent DWARF2 sections generated by --gdwarf2
On Thu, Nov 18, 2004 at 10:28:14PM +1030, Alan Modra wrote:
> On Thu, Nov 18, 2004 at 09:22:37AM +0000, Nick Clifton wrote:
> > >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 ?
> .debug_line by itself gives you a mapping between addresses and source
> file line numbers. That might be all a tool needs.
Bob's original mail said it was harmless for GDB - but that's not true.
GDB will only read line number data associated with some compilation
Is there any reason not to emit a compilation unit, if there isn't one
already, and there is line number data?