mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2026-08-27 00:26:02 -04:00
[gdb] Add missing i18n support to error strings (part 3)
Add missing i18n support to some error strings.
Result of:
...
$ find gdb* -type f -name "*.[ch]" -o -name "*.cc" \
| egrep -v /testsuite/ \
| xargs sed -i \
'/"[ \t]*%s[ \t]*"/b l;s/\([ \t]\)error (\("[^"]*"\)\([^)]*\));/\1error (_(\2)\3);/;:l'
...
Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
parent
5a6fa4bf84
commit
d62997ecff
6 changed files with 9 additions and 9 deletions
|
|
@ -5182,7 +5182,7 @@ register_addr (const struct usrregs_info *usrregs, int regnum)
|
|||
int addr;
|
||||
|
||||
if (regnum < 0 || regnum >= usrregs->num_regs)
|
||||
error ("Invalid register number %d.", regnum);
|
||||
error (_("Invalid register number %d."), regnum);
|
||||
|
||||
addr = usrregs->regmap[regnum];
|
||||
|
||||
|
|
|
|||
|
|
@ -373,7 +373,7 @@ tic6x_target::low_arch_setup ()
|
|||
feature = C6X_C6XP;
|
||||
break;
|
||||
default:
|
||||
error ("Unknown CPU ID 0x%02x", cpuid);
|
||||
error (_("Unknown CPU ID 0x%02x"), cpuid);
|
||||
}
|
||||
tic6x_usrregs_info.regmap = tic6x_regmap;
|
||||
|
||||
|
|
|
|||
|
|
@ -1134,13 +1134,13 @@ elf_64_file_p (const char *file)
|
|||
perror_with_name (("read"));
|
||||
gdb::close (fd);
|
||||
if (ret != sizeof (header))
|
||||
error ("Cannot read ELF file header: %s", file);
|
||||
error (_("Cannot read ELF file header: %s"), file);
|
||||
|
||||
if (header.e_ident[EI_MAG0] != ELFMAG0
|
||||
|| header.e_ident[EI_MAG1] != ELFMAG1
|
||||
|| header.e_ident[EI_MAG2] != ELFMAG2
|
||||
|| header.e_ident[EI_MAG3] != ELFMAG3)
|
||||
error ("Unrecognized ELF file header: %s", file);
|
||||
error (_("Unrecognized ELF file header: %s"), file);
|
||||
|
||||
return header.e_ident[EI_CLASS] == ELFCLASS64;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -574,7 +574,7 @@ read_ptid (const char *buf, const char **obuf)
|
|||
/* Multi-process ptid. */
|
||||
pp = unpack_varlen_hex (p + 1, &hex);
|
||||
if (pp == (p + 1) || *pp != '.')
|
||||
error ("invalid remote ptid: %s\n", buf);
|
||||
error (_("invalid remote ptid: %s\n"), buf);
|
||||
|
||||
pid = (ptid_t::pid_type) (LONGEST) hex;
|
||||
if (hex != ((ULONGEST) pid))
|
||||
|
|
@ -583,7 +583,7 @@ read_ptid (const char *buf, const char **obuf)
|
|||
p = pp + 1;
|
||||
hex = hex_or_minus_one (p, &pp);
|
||||
if (pp == p)
|
||||
error ("invalid remote ptid: %s\n", buf);
|
||||
error (_("invalid remote ptid: %s\n"), buf);
|
||||
|
||||
lwp = (ptid_t::lwp_type) (LONGEST) hex;
|
||||
if (hex != ((ULONGEST) lwp))
|
||||
|
|
|
|||
|
|
@ -305,7 +305,7 @@ attach_inferior (int pid)
|
|||
0 if it succeeded, and call error() otherwise. */
|
||||
|
||||
if (find_process_pid (pid) != nullptr)
|
||||
error ("Already attached to process %d\n", pid);
|
||||
error (_("Already attached to process %d\n"), pid);
|
||||
|
||||
if (myattach (pid) != 0)
|
||||
return -1;
|
||||
|
|
|
|||
|
|
@ -537,7 +537,7 @@ tracepoint_action_send (char *buffer, const struct tracepoint_action *action)
|
|||
case 'X':
|
||||
return x_tracepoint_action_send (buffer, action);
|
||||
}
|
||||
error ("Unknown trace action '%c'.", action->type);
|
||||
error (_("Unknown trace action '%c'."), action->type);
|
||||
}
|
||||
|
||||
static CORE_ADDR
|
||||
|
|
@ -552,7 +552,7 @@ tracepoint_action_download (const struct tracepoint_action *action)
|
|||
case 'X':
|
||||
return x_tracepoint_action_download (action);
|
||||
}
|
||||
error ("Unknown trace action '%c'.", action->type);
|
||||
error (_("Unknown trace action '%c'."), action->type);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue