This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [hjl@lucon.org: Re: PATCH: Output dwarf debug info only when needed]


On Wed, Jul 31, 2002 at 09:01:49AM -0700, Richard Henderson wrote:
> On Wed, Jul 31, 2002 at 10:30:47AM -0400, Daniel Jacobowitz wrote:
> > But even if there is more than one '.file'
> > directive, if there are no .loc directives I don't see how the
> > .debug_file section serves any purpose...
> 
> The .debug_file file numbers are used by .debug_info.

Oops, that's right.  How about:
  /* We don't need to do anything unless:
     - Some debug information was recorded via .file/.loc
     - or, we are generating DWARF2 information ourself (--gdwarf2)
     - or, there is a user-provided .debug_info section which could
       reference the file table in the .debug_line section we generate
       below.  */
  if (all_segs == NULL
      && debug_type != DEBUG_DWARF2
      && )

Where the bit after the last && is "there is no user .debug_info"
section (which I can't figure out how to say in gas).

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]