summaryrefslogtreecommitdiff
path: root/binutils/addr2line.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2011-10-13 15:33:31 +0000
committerNick Clifton <nickc@redhat.com>2011-10-13 15:33:31 +0000
commitb8898b047f72c1d89561ea5704f6960c2b220f27 (patch)
treeceaa60666e1a7e8dcedf4bff5d176cbf5c3558c4 /binutils/addr2line.c
parent589342bc49be60680807fa478fc220591fb06942 (diff)
downloadbinutils-redhat-b8898b047f72c1d89561ea5704f6960c2b220f27.tar.gz
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/addr2line.c')
-rw-r--r--binutils/addr2line.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/binutils/addr2line.c b/binutils/addr2line.c
index 1ece80aecd..d0f45671cb 100644
--- a/binutils/addr2line.c
+++ b/binutils/addr2line.c
@@ -268,6 +268,11 @@ translate_addresses (bfd *abfd, asection *section)
printf ("%s", name);
if (pretty_print)
+ /* Note for translators: This printf is used to join the
+ function name just printed above to the line number/
+ file name pair that is about to be printed below. Eg:
+
+ foo at 123:bar.c */
printf (_(" at "));
else
printf ("\n");
@@ -289,10 +294,17 @@ translate_addresses (bfd *abfd, asection *section)
if (!unwind_inlines)
found = FALSE;
else
- found = bfd_find_inliner_info (abfd, &filename, &functionname, &line);
+ found = bfd_find_inliner_info (abfd, &filename, &functionname,
+ &line);
if (! found)
break;
if (pretty_print)
+ /* Note for translators: This printf is used to join the
+ line number/file name pair that has just been printed with
+ the line number/file name pair that is going to be printed
+ by the next iteration of the while loop. Eg:
+
+ 123:bar.c (inlined by) 456:main.c */
printf (_(" (inlined by) "));
}
}