Speaking of DWARF-2 macro info

Daniel Berlin dan@dberlin.org
Sun Mar 17 10:35:00 GMT 2002


On Sun, 17 Mar 2002, Daniel Berlin wrote:

> On Sun, 17 Mar 2002, Neil Booth wrote:
> 
> > Daniel Berlin wrote:-
> > 
> > > However, we need to end that file as well, no?
> > 
> > On second thoughts, I don't think so.  It's treated as a rename
> > (like #line) not as a new file by cpp:
> > 
> > 	  /* Restore the line map for the main file.  */
> > 	  if (! CPP_OPTION (pfile, preprocessed))
> > 	    _cpp_do_file_change (pfile, LC_RENAME,
> > 				 pfile->line_maps.maps[0].to_file, 1,
> > 0);
> > 
> > This code is in cppinit.c.
> 
> Weird.
> I'll have to just explicitly add another end file to dwarf2out i guess.
Wiat.
We already *do* explicitly end the primary file:


  /* Have to end the primary source file.  */
  if (debug_info_level >= DINFO_LEVEL_VERBOSE)
    {
      named_section_flags (DEBUG_MACINFO_SECTION, SECTION_DEBUG);
      dw2_asm_output_data (1, DW_MACINFO_end_file, "End file");
    }


So we really *are* missing an end file, since cpp never hands us an end 
for any of the files.

> 	 > 
> > Neil.
> > 
> 



More information about the Gcc-bugs mailing list