mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2026-08-27 00:26:02 -04:00
[gdb] Fix '_ ("foo")'
Our documented style [1] is to use '_("foo")', not '_ ("foo")'.
Fix this in a few places.
[1] https://sourceware.org/gdb/wiki/Internals%20GDB-C-Coding-Standards#Gettext_macro
This commit is contained in:
parent
71ffab58c3
commit
1fa5831f2b
7 changed files with 10 additions and 10 deletions
|
|
@ -396,7 +396,7 @@ mapped_debug_names_reader::scan_all_names ()
|
|||
|
||||
if (parent_it == entry_pool_offsets_to_entries.cend ())
|
||||
{
|
||||
complaint (_ ("Parent entry not found for .debug_names entry"));
|
||||
complaint (_("Parent entry not found for .debug_names entry"));
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1306,10 +1306,10 @@ check_pid_namespace_match (inferior *inf)
|
|||
libthread_db. */
|
||||
if (!linux_ns_same (inf->pid, LINUX_NS_PID))
|
||||
{
|
||||
warning (_ ("Target and debugger are in different PID "
|
||||
"namespaces; thread lists and other data are "
|
||||
"likely unreliable. "
|
||||
"Connect to gdbserver inside the container."));
|
||||
warning (_("Target and debugger are in different PID "
|
||||
"namespaces; thread lists and other data are "
|
||||
"likely unreliable. "
|
||||
"Connect to gdbserver inside the container."));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -515,7 +515,7 @@ riscv_linux_get_syscall_number (struct gdbarch *gdbarch, thread_info *thread)
|
|||
if (regcache->cooked_read (RISCV_A7_REGNUM, &ret)
|
||||
!= register_status::REG_VALID)
|
||||
{
|
||||
warning (_ ("Can not read a7 register"));
|
||||
warning (_("Can not read a7 register"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -260,7 +260,7 @@ set_default_source_symtab_and_line (void)
|
|||
{
|
||||
if (!have_full_symbols (current_program_space)
|
||||
&& !have_partial_symbols (current_program_space))
|
||||
error (_ ("No symbol table is loaded. Use the \"file\" command."));
|
||||
error (_("No symbol table is loaded. Use the \"file\" command."));
|
||||
|
||||
/* Pull in a current source symtab if necessary. */
|
||||
current_source_location *loc = get_source_location (current_program_space);
|
||||
|
|
|
|||
|
|
@ -1059,7 +1059,7 @@ symbol_file_add_with_addrs (const gdb_bfd_ref_ptr &abfd, const char *name,
|
|||
|| ((have_full_symbols (current_program_space)
|
||||
|| have_partial_symbols (current_program_space))
|
||||
&& mainline))
|
||||
&& !query (_ ("Load new symbol table from \"%s\"? "), name))
|
||||
&& !query (_("Load new symbol table from \"%s\"? "), name))
|
||||
error (_("Not confirmed."));
|
||||
|
||||
if (mainline)
|
||||
|
|
|
|||
|
|
@ -4537,7 +4537,7 @@ info_sources_command (const char *args, int from_tty)
|
|||
{
|
||||
if (!have_full_symbols (current_program_space)
|
||||
&& !have_partial_symbols (current_program_space))
|
||||
error (_ ("No symbol table is loaded. Use the \"file\" command."));
|
||||
error (_("No symbol table is loaded. Use the \"file\" command."));
|
||||
|
||||
filename_partial_match_opts match_opts;
|
||||
auto group = make_info_sources_options_def_group (&match_opts);
|
||||
|
|
|
|||
|
|
@ -1575,7 +1575,7 @@ This GDB was configured as follows:\n\
|
|||
"), DEBUGDIR, DEBUGDIR_RELOCATABLE ? " (relocatable)" : "");
|
||||
|
||||
#ifdef ADDITIONAL_DEBUG_DIRS
|
||||
gdb_printf (stream, _ ("\
|
||||
gdb_printf (stream, _("\
|
||||
--with-additional-debug-dirs=%s\n\
|
||||
"), ADDITIONAL_DEBUG_DIRS);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue