This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Compiler emitting .debug_line versus binutils
- From: Daniel Jacobowitz <drow at false dot org>
- To: Will Newton <will dot newton at imgtec dot com>
- Cc: binutils at sourceware dot org
- Date: Fri, 29 Jun 2007 11:11:50 -0400
- Subject: Re: Compiler emitting .debug_line versus binutils
- References: <0D107966AF6D79418315B7C5549F4B516432EC@lemail1.le.imgtec.org>
On Fri, Jun 29, 2007 at 03:34:35PM +0100, Will Newton wrote:
> This seems to be done by dwarf2out_finish() in dwarf2out.c inside gcc.
>
> I assemble the result with gas, which then outputs another .debug_line
> section in dwarf2_finish() in dwarf2dbg.c.
It sounds to me like your gcc is passing -g to gas, but not using
.file and .loc directives. If it did use .loc, gas wouldn't add its
own impression of the line number table. If it didn't pass -g, it
wouldn't either.
--
Daniel Jacobowitz
CodeSourcery