This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Output dwarf debug info only when needed
- From: Richard Henderson <rth at redhat dot com>
- To: "H . J . Lu" <hjl at lucon dot org>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 11 Jun 2002 14:07:43 -0700
- Subject: Re: PATCH: Output dwarf debug info only when needed
- References: <20020611135943.B17102@lucon.org>
On Tue, Jun 11, 2002 at 01:59:43PM -0700, H . J . Lu wrote:
> /* If no debug information was recorded, nothing to do. */
> - if (all_segs == NULL && files_in_use <= 1)
> + if (all_segs == NULL
> + && (debug_type != DEBUG_DWARF2 || files_in_use <= 1))
This is wrong. When the compiler is emitting .file and .loc
directives, debug_type == DEBUG_NONE.
r~