diff options
author | Nick Clifton <nickc@redhat.com> | 2011-10-13 15:33:34 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2011-10-13 15:33:34 +0000 |
commit | 9cf03b7e412b9cdeca8b5ea3f73c081e31078a28 (patch) | |
tree | 98414a0b3929e786240399752746cb975e57e37a /binutils/dwarf.c | |
parent | d930d06e3fd1c821a020561a8cc583db005f7c10 (diff) | |
download | gdb-9cf03b7e412b9cdeca8b5ea3f73c081e31078a28.zip gdb-9cf03b7e412b9cdeca8b5ea3f73c081e31078a28.tar.gz gdb-9cf03b7e412b9cdeca8b5ea3f73c081e31078a28.tar.bz2 |
2011-10-13 Nick Clifton <nickc@redhat.com>
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.
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r-- | binutils/dwarf.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c index f4b7f73..9d874ca 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -129,7 +129,7 @@ print_dwarf_vma (dwarf_vma val, unsigned byte_size) if (byte_size > 0 && byte_size <= 8) offset = 16 - 2 * byte_size; else - error ("Wrong size in print_dwarf_vma"); + error (_("Wrong size in print_dwarf_vma")); } fputs (buff + offset, stdout); @@ -353,21 +353,21 @@ process_extended_line_op (unsigned char *data, int is_stmt) break; case DW_LNE_HP_SFC_associate: printf (" DW_LNE_HP_SFC_associate "); - printf (_("(%s"), + printf ("(%s", dwarf_vmatoa ("u", read_leb128 (data, & bytes_read, 0))); data += bytes_read; - printf (_(",%s"), + printf (",%s", dwarf_vmatoa ("u", read_leb128 (data, & bytes_read, 0))); data += bytes_read; - printf (_(",%s)\n"), + printf (",%s)\n", dwarf_vmatoa ("u", read_leb128 (data, & bytes_read, 0))); data += bytes_read; break; default: - printf (" UNKNOW DW_LNE_HP_SFC opcode (%u)\n", opc); + printf (_(" UNKNOWN DW_LNE_HP_SFC opcode (%u)\n"), opc); data = edata; break; } @@ -1072,10 +1072,10 @@ decode_location_expression (unsigned char * data, break; case DW_OP_bit_piece: printf ("DW_OP_bit_piece: "); - printf ("size: %s ", + printf (_("size: %s "), dwarf_vmatoa ("u", read_leb128 (data, &bytes_read, 0))); data += bytes_read; - printf ("offset: %s ", + printf (_("offset: %s "), dwarf_vmatoa ("u", read_leb128 (data, &bytes_read, 0))); data += bytes_read; break; @@ -1095,7 +1095,7 @@ decode_location_expression (unsigned char * data, /* GNU extensions. */ case DW_OP_GNU_push_tls_address: - printf ("DW_OP_GNU_push_tls_address or DW_OP_HP_unknown"); + printf (_("DW_OP_GNU_push_tls_address or DW_OP_HP_unknown")); break; case DW_OP_GNU_uninit: printf ("DW_OP_GNU_uninit"); @@ -1605,10 +1605,10 @@ read_and_display_attr_value (unsigned long attribute, case DW_LANG_Upc: printf ("(Unified Parallel C)"); break; default: if (uvalue >= DW_LANG_lo_user && uvalue <= DW_LANG_hi_user) - printf ("(implementation defined: %s)", + printf (_("(implementation defined: %s)"), dwarf_vmatoa ("x", uvalue)); else - printf ("(Unknown: %s)", dwarf_vmatoa ("x", uvalue)); + printf (_("(Unknown: %s)"), dwarf_vmatoa ("x", uvalue)); break; } break; @@ -1646,9 +1646,9 @@ read_and_display_attr_value (unsigned long attribute, default: if (uvalue >= DW_ATE_lo_user && uvalue <= DW_ATE_hi_user) - printf ("(user defined type)"); + printf (_("(user defined type)")); else - printf ("(unknown type)"); + printf (_("(unknown type)")); break; } break; @@ -1660,7 +1660,7 @@ read_and_display_attr_value (unsigned long attribute, case DW_ACCESS_protected: printf ("(protected)"); break; case DW_ACCESS_private: printf ("(private)"); break; default: - printf ("(unknown accessibility)"); + printf (_("(unknown accessibility)")); break; } break; @@ -1671,7 +1671,7 @@ read_and_display_attr_value (unsigned long attribute, case DW_VIS_local: printf ("(local)"); break; case DW_VIS_exported: printf ("(exported)"); break; case DW_VIS_qualified: printf ("(qualified)"); break; - default: printf ("(unknown visibility)"); break; + default: printf (_("(unknown visibility)")); break; } break; @@ -1681,7 +1681,7 @@ read_and_display_attr_value (unsigned long attribute, case DW_VIRTUALITY_none: printf ("(none)"); break; case DW_VIRTUALITY_virtual: printf ("(virtual)"); break; case DW_VIRTUALITY_pure_virtual:printf ("(pure_virtual)"); break; - default: printf ("(unknown virtuality)"); break; + default: printf (_("(unknown virtuality)")); break; } break; @@ -1692,7 +1692,7 @@ read_and_display_attr_value (unsigned long attribute, case DW_ID_up_case: printf ("(up_case)"); break; case DW_ID_down_case: printf ("(down_case)"); break; case DW_ID_case_insensitive: printf ("(case_insensitive)"); break; - default: printf ("(unknown case)"); break; + default: printf (_("(unknown case)")); break; } break; @@ -1705,16 +1705,16 @@ read_and_display_attr_value (unsigned long attribute, default: if (uvalue >= DW_CC_lo_user && uvalue <= DW_CC_hi_user) - printf ("(user defined)"); + printf (_("(user defined)")); else - printf ("(unknown convention)"); + printf (_("(unknown convention)")); } break; case DW_AT_ordering: switch (uvalue) { - case -1: printf ("(undefined)"); break; + case -1: printf (_("(undefined)")); break; case 0: printf ("(row major)"); break; case 1: printf ("(column major)"); break; } @@ -1783,7 +1783,7 @@ read_and_display_attr_value (unsigned long attribute, abbrev_number = read_leb128 (section->start + uvalue, NULL, 0); - printf ("[Abbrev Number: %ld", abbrev_number); + printf (_("[Abbrev Number: %ld"), abbrev_number); for (entry = first_abbrev; entry != NULL; entry = entry->next) if (entry->entry == abbrev_number) break; |