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 4)
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
d62997ecff
commit
ca83136019
6 changed files with 8 additions and 8 deletions
|
|
@ -1173,7 +1173,7 @@ linux_process_target::attach (unsigned long pid)
|
|||
this->remove_linux_process (proc);
|
||||
|
||||
std::string reason = linux_ptrace_attach_fail_reason_string (ptid, err);
|
||||
error ("Cannot attach to process %ld: %s", pid, reason.c_str ());
|
||||
error (_("Cannot attach to process %ld: %s"), pid, reason.c_str ());
|
||||
}
|
||||
|
||||
open_proc_mem_file (proc);
|
||||
|
|
@ -5280,7 +5280,7 @@ linux_process_target::store_register (const usrregs_info *usrregs,
|
|||
|
||||
|
||||
if (!low_cannot_store_register (regno))
|
||||
error ("writing register %d: %s", regno, safe_strerror (errno));
|
||||
error (_("writing register %d: %s"), regno, safe_strerror (errno));
|
||||
}
|
||||
regaddr += sizeof (PTRACE_XFER_TYPE);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1576,7 +1576,7 @@ parse_debug_options (const char *options)
|
|||
}
|
||||
|
||||
if (!found)
|
||||
error ("unknown debug option '%s'", opt.c_str ());
|
||||
error (_("unknown debug option '%s'"), opt.c_str ());
|
||||
|
||||
options = (*end == ',') ? end + 1 : end;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -274,7 +274,7 @@ find_new_threads_callback (const td_thrhandle_t *th_p, void *data)
|
|||
|
||||
err = thread_db->td_thr_get_info_p (th_p, &ti);
|
||||
if (err != TD_OK)
|
||||
error ("Cannot get thread info: %s", thread_db_err_str (err));
|
||||
error (_("Cannot get thread info: %s"), thread_db_err_str (err));
|
||||
|
||||
if (ti.ti_lid == -1)
|
||||
{
|
||||
|
|
@ -343,7 +343,7 @@ thread_db_find_new_threads (void)
|
|||
}
|
||||
}
|
||||
if (err != TD_OK)
|
||||
error ("Cannot find new threads: %s", thread_db_err_str (err));
|
||||
error (_("Cannot find new threads: %s"), thread_db_err_str (err));
|
||||
}
|
||||
|
||||
/* Cache all future symbols that thread_db might request. We can not
|
||||
|
|
|
|||
|
|
@ -6016,7 +6016,7 @@ upload_fast_traceframes (void)
|
|||
|
||||
if (read_inferior_memory (tf, (unsigned char *) &ipa_tframe,
|
||||
offsetof (struct traceframe, data)))
|
||||
error ("Uploading: couldn't read traceframe at %s\n", paddress (tf));
|
||||
error (_("Uploading: couldn't read traceframe at %s\n"), paddress (tf));
|
||||
|
||||
if (ipa_tframe.tpnum == 0)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -175,7 +175,7 @@ aarch64_get_thread_context (windows_thread_info *th)
|
|||
if (!ret)
|
||||
{
|
||||
DWORD e = GetLastError ();
|
||||
error ("GetThreadContext failure %ld\n", (long) e);
|
||||
error (_("GetThreadContext failure %ld\n"), (long) e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -265,7 +265,7 @@ i386_get_thread_context (windows_thread_info *th)
|
|||
goto again;
|
||||
}
|
||||
|
||||
error ("GetThreadContext failure %ld\n", (long) e);
|
||||
error (_("GetThreadContext failure %ld\n"), (long) e);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue