From 9cf03b7e412b9cdeca8b5ea3f73c081e31078a28 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 13 Oct 2011 15:33:34 +0000 Subject: 2011-10-13 Nick Clifton Fixes to aid translation: * addr2line.c (translate_address): Add comments describing context of a couple of printf statements. * ar.c (write_archive): Allow translation of error message. * bucomm.c (endian_string): Allow translation of strings. (display_target_list): Allow translation. * coffdump.c (dump_coff_type): Allow translation of output. (dump_coff_where): Likewise. (dump_coff_symbol): Likewise. (dump_coff_scope): Likewise. (dump_coff_sfile): Likewise. (dump_coff_section): Likewise. (coff_dump): Likewise. * dlltool (def_version): Allow translation of output. (run): Likewise. * dllwrap.c (run): Allow translation of output. * dwarf.c (print_dwarf_vma): Allow translation of output. (process_extended_line_op): Remove spurious translation. Add translation for strings that can be translated. (decode_location_exression): Allow translation of output. (read_and_display_attr_value): Allow translation of output. * readelf.c (slurp_rela_relocs): Add translation for error messages when failing to get data. (slurp_rel_relocs): Likewise. (get_32bit_elf_symbols): Likewise. (get_64bit_elf_symbols): Likewise. (dump_ia64_vms_dynamic_relocs): Replace abbreviation with full word. (process_relocs): Remove spurious translation. (decode_tic6x_unwind_bytecode): Likewise. (process_version_section): Improve error messages. (process_mips_specific): Likewise. (print_gnu_note): Remove spurious translation. (print_stapsdt_note): Likewise. (get_ia64_vms_note_type): Likewise. * sysdump.c (getCHARS): Allow translation. (fillup): Allow translation of output. (getone): Likewise. (must): Likewise. (derived_type): Likewise. * doc/binutils.doc (addr2line): Extend description of command line options. * po/binutils.pot: Regenerate. --- binutils/coffdump.c | 61 +++++++++++++++++++++++++++-------------------------- 1 file changed, 31 insertions(+), 30 deletions(-) (limited to 'binutils/coffdump.c') diff --git a/binutils/coffdump.c b/binutils/coffdump.c index 428f598..d871e1e 100644 --- a/binutils/coffdump.c +++ b/binutils/coffdump.c @@ -127,56 +127,56 @@ static void dump_coff_type (struct coff_type *p) { tab (1); - printf ("size %d ", p->size); + printf (_("size %d "), p->size); switch (p->type) { case coff_secdef_type: - printf ("section definition at %x size %x\n", + printf (_("section definition at %x size %x\n"), p->u.asecdef.address, p->u.asecdef.size); nl (); break; case coff_pointer_type: - printf ("pointer to"); + printf (_("pointer to")); nl (); dump_coff_type (p->u.pointer.points_to); break; case coff_array_type: - printf ("array [%d] of", p->u.array.dim); + printf (_("array [%d] of"), p->u.array.dim); nl (); dump_coff_type (p->u.array.array_of); break; case coff_function_type: - printf ("function returning"); + printf (_("function returning")); nl (); dump_coff_type (p->u.function.function_returns); dump_coff_lines (p->u.function.lines); - printf ("arguments"); + printf (_("arguments")); nl (); dump_coff_scope (p->u.function.parameters); tab (0); - printf ("code"); + printf (_("code")); nl (); dump_coff_scope (p->u.function.code); tab(0); break; case coff_structdef_type: - printf ("structure definition"); + printf (_("structure definition")); nl (); dump_coff_scope (p->u.astructdef.elements); break; case coff_structref_type: if (!p->u.aenumref.ref) - printf ("structure ref to UNKNOWN struct"); + printf (_("structure ref to UNKNOWN struct")); else - printf ("structure ref to %s", p->u.aenumref.ref->name); + printf (_("structure ref to %s"), p->u.aenumref.ref->name); break; case coff_enumref_type: - printf ("enum ref to %s", p->u.astructref.ref->name); + printf (_("enum ref to %s"), p->u.astructref.ref->name); break; case coff_enumdef_type: - printf ("enum definition"); + printf (_("enum definition")); nl (); dump_coff_scope (p->u.aenumdef.elements); break; @@ -249,22 +249,22 @@ dump_coff_where (struct coff_where *p) switch (p->where) { case coff_where_stack: - printf ("Stack offset %x", p->offset); + printf (_("Stack offset %x"), p->offset); break; case coff_where_memory: - printf ("Memory section %s+%x", p->section->name, p->offset); + printf (_("Memory section %s+%x"), p->section->name, p->offset); break; case coff_where_register: - printf ("Register %d", p->offset); + printf (_("Register %d"), p->offset); break; case coff_where_member_of_struct: - printf ("Struct Member offset %x", p->offset); + printf (_("Struct Member offset %x"), p->offset); break; case coff_where_member_of_enum: - printf ("Enum Member offset %x", p->offset); + printf (_("Enum Member offset %x"), p->offset); break; case coff_where_unknown: - printf ("Undefined symbol"); + printf (_("Undefined symbol")); break; case coff_where_strtag: printf ("STRTAG"); @@ -331,27 +331,27 @@ static void dump_coff_symbol (struct coff_symbol *p) { tab (1); - printf ("List of symbols"); + printf (_("List of symbols")); nl (); while (p) { tab (1); tab (1); - printf ("Symbol %s, tag %d, number %d", p->name, p->tag, p->number); + printf (_("Symbol %s, tag %d, number %d"), p->name, p->tag, p->number); nl (); tab (-1); tab (1); - printf ("Type"); + printf (_("Type")); nl (); dump_coff_type (p->type); tab (-1); tab (1); - printf ("Where"); + printf (_("Where")); dump_coff_where (p->where); tab (-1); tab (1); - printf ("Visible"); + printf (_("Visible")); dump_coff_visible (p->visible); tab (-1); p = p->next; @@ -366,7 +366,8 @@ dump_coff_scope (struct coff_scope *p) if (p) { tab (1); - printf ("List of blocks %" BFD_VMA_FMT "x ",(bfd_vma) (uintptr_t) p); + printf ("%s %" BFD_VMA_FMT "x ", + _("List of blocks "), (bfd_vma) (uintptr_t) p); if (p->sec) printf( " %s %x..%x", p->sec->name,p->offset, p->offset + p->size -1); @@ -379,10 +380,10 @@ dump_coff_scope (struct coff_scope *p) while (p) { tab (0); - printf ("vars %d", p->nvars); + printf (_("vars %d"), p->nvars); nl (); dump_coff_symbol (p->vars_head); - printf ("blocks"); + printf (_("blocks")); nl (); dump_coff_scope (p->list_head); nl (); @@ -400,13 +401,13 @@ static void dump_coff_sfile (struct coff_sfile *p) { tab (1); - printf ("List of source files"); + printf (_("List of source files")); nl (); while (p) { tab (0); - printf ("Source file %s", p->name); + printf (_("Source file %s"), p->name); nl (); dump_coff_scope (p->scope); p = p->next; @@ -420,7 +421,7 @@ dump_coff_section (struct coff_section *ptr) int i; tab (1); - printf ("section %s %d %d address %x size %x number %d nrelocs %d", + printf (_("section %s %d %d address %x size %x number %d nrelocs %d"), ptr->name, ptr->code, ptr->data, ptr->address,ptr->size, ptr->number, ptr->nrelocs); nl (); @@ -445,7 +446,7 @@ coff_dump (struct coff_ofile *ptr) printf ("Coff dump"); nl (); - printf ("#sources %d", ptr->nsources); + printf (_("#sources %d"), ptr->nsources); nl (); dump_coff_sfile (ptr->source_head); -- cgit v1.1