Commit 5597a350 by Richard Henderson Committed by Richard Henderson

re PR debug/24070 (Dwarf macro info has bad file numbers)

        PR debug/24070
        * dwarf2out.c (lookup_filename): Return the result of maybe_emit_file.
        (dwarf2out_start_source_file): Print it.

From-SVN: r105051
parent 03f9dd3f
2005-10-06 Richard Henderson <rth@redhat.com>
PR debug/24070
* dwarf2out.c (lookup_filename): Return the result of maybe_emit_file.
(dwarf2out_start_source_file): Print it.
2005-10-06 Geoffrey Keating <geoffk@apple.com> 2005-10-06 Geoffrey Keating <geoffk@apple.com>
* config/t-slibgcc-darwin (SHLIB_MAPFILES): Use '+='. * config/t-slibgcc-darwin (SHLIB_MAPFILES): Use '+='.
......
...@@ -13373,7 +13373,7 @@ lookup_filename (const char *file_name) ...@@ -13373,7 +13373,7 @@ lookup_filename (const char *file_name)
prune_unused_types_walk_attribs. */ prune_unused_types_walk_attribs. */
if (DWARF2_ASM_LINE_DEBUG_INFO && ! flag_eliminate_unused_debug_types) if (DWARF2_ASM_LINE_DEBUG_INFO && ! flag_eliminate_unused_debug_types)
maybe_emit_file (i); return maybe_emit_file (i);
return i; return i;
} }
...@@ -13591,13 +13591,15 @@ dwarf2out_start_source_file (unsigned int lineno, const char *filename) ...@@ -13591,13 +13591,15 @@ dwarf2out_start_source_file (unsigned int lineno, const char *filename)
if (debug_info_level >= DINFO_LEVEL_VERBOSE) if (debug_info_level >= DINFO_LEVEL_VERBOSE)
{ {
int fileno;
named_section_flags (DEBUG_MACINFO_SECTION, SECTION_DEBUG); named_section_flags (DEBUG_MACINFO_SECTION, SECTION_DEBUG);
dw2_asm_output_data (1, DW_MACINFO_start_file, "Start new file"); dw2_asm_output_data (1, DW_MACINFO_start_file, "Start new file");
dw2_asm_output_data_uleb128 (lineno, "Included from line number %d", dw2_asm_output_data_uleb128 (lineno, "Included from line number %d",
lineno); lineno);
maybe_emit_file (lookup_filename (filename));
dw2_asm_output_data_uleb128 (lookup_filename (filename), fileno = maybe_emit_file (lookup_filename (filename));
"Filename we just started"); dw2_asm_output_data_uleb128 (fileno, "Filename we just started");
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment