diff options
Diffstat (limited to 'gdb/dwarf2/section.c')
-rw-r--r-- | gdb/dwarf2/section.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/gdb/dwarf2/section.c b/gdb/dwarf2/section.c index c9ef418..ae2ee61 100644 --- a/gdb/dwarf2/section.c +++ b/gdb/dwarf2/section.c @@ -33,8 +33,8 @@ void dwarf2_section_info::overflow_complaint () const { - complaint (_("debug info runs off end of %s section" - " [in module %s]"), + complaint (_ ("debug info runs off end of %s section" + " [in module %s]"), get_name (), get_file_name ()); } @@ -135,14 +135,14 @@ dwarf2_section_info::read (struct objfile *objfile) /* If this is a virtual section we need to read in the real one first. */ if (is_virtual) { - struct dwarf2_section_info *containing_section = - get_containing_section (); + struct dwarf2_section_info *containing_section + = get_containing_section (); gdb_assert (sectp != NULL); if ((sectp->flags & SEC_RELOC) != 0) { - error (_("Dwarf Error: DWP format V2 with relocations is not" - " supported in section %s [in module %s]"), + error (_ ("Dwarf Error: DWP format V2 with relocations is not" + " supported in section %s [in module %s]"), get_name (), get_file_name ()); } containing_section->read (objfile); @@ -184,8 +184,8 @@ dwarf2_section_info::read (struct objfile *objfile) if (bfd_seek (abfd, sectp->filepos, SEEK_SET) != 0 || bfd_bread (buf, size, abfd) != size) { - error (_("Dwarf Error: Can't read DWARF data" - " in section %s [in module %s]"), + error (_ ("Dwarf Error: Can't read DWARF data" + " in section %s [in module %s]"), bfd_section_name (sectp), bfd_get_filename (abfd)); } } @@ -198,15 +198,14 @@ dwarf2_section_info::read_string (struct objfile *objfile, LONGEST str_offset, if (buffer == NULL) { if (get_bfd_section () == nullptr) - error (_("Dwarf Error: %s used without required section"), - form_name); + error (_ ("Dwarf Error: %s used without required section"), form_name); else - error (_("Dwarf Error: %s used without %s section [in module %s]"), + error (_ ("Dwarf Error: %s used without %s section [in module %s]"), form_name, get_name (), get_file_name ()); } if (str_offset >= size) - error (_("%s pointing outside of %s section [in module %s]"), - form_name, get_name (), get_file_name ()); + error (_ ("%s pointing outside of %s section [in module %s]"), form_name, + get_name (), get_file_name ()); gdb_assert (HOST_CHAR_BIT == 8); if (buffer[str_offset] == '\0') return NULL; |