2005-02-10 Andrew Cagney <cagney@gnu.org>
Mark up all error and warning messages. * ada-lang.c, amd64-tdep.c, arch-utils.c, breakpoint.c: Update. * bsd-kvm.c, bsd-uthread.c, coff-solib.h, coffread.c: Update. * core-aout.c, core-regset.c, corefile.c, corelow.c: Update. * cp-abi.c, cp-support.c, cp-valprint.c, cris-tdep.c: Update. * dbxread.c, demangle.c, doublest.c, dsrec.c: Update. * dve3900-rom.c, dwarf2expr.c, dwarf2loc.c: Update. * dwarf2read.c, dwarfread.c, elfread.c, eval.c: Update. * event-top.c, exec.c, expprint.c, f-lang.c: Update. * f-typeprint.c, f-valprint.c, fbsd-nat.c, findvar.c: Update. * frame.c, frv-linux-tdep.c, gcore.c, gdbtypes.c: Update. * gnu-nat.c, gnu-v2-abi.c, gnu-v3-abi.c, go32-nat.c: Update. * hpacc-abi.c, hppa-hpux-nat.c, hppa-hpux-tdep.c: Update. * hppa-linux-nat.c, hppa-linux-tdep.c, hppa-tdep.c: Update. * hpread.c, hpux-thread.c, i386-linux-nat.c: Update. * i386-linux-tdep.c, i386-tdep.c, i386bsd-nat.c: Update. * i386gnu-nat.c, i387-tdep.c, ia64-linux-nat.c: Update. * ia64-tdep.c, inf-child.c, inf-ptrace.c, inf-ttrace.c: Update. * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Update. * inftarg.c, interps.c, irix5-nat.c, jv-lang.c: Update. * kod-cisco.c, kod.c, language.c, libunwind-frame.c: Update. * linespec.c, linux-nat.c, linux-thread-db.c, m2-lang.c: Update. * m32r-rom.c, m68hc11-tdep.c, m68k-tdep.c: Update. * m68klinux-nat.c, macrocmd.c, macroexp.c, main.c: Update. * maint.c, mdebugread.c, mem-break.c, memattr.c: Update. * mips-linux-tdep.c, mips-tdep.c, mipsread.c, monitor.c: Update. * nlmread.c, nto-procfs.c, objc-lang.c, objfiles.c: Update. * observer.c, ocd.c, p-lang.c, p-typeprint.c: Update. * p-valprint.c, pa64solib.c, parse.c, ppc-linux-tdep.c: Update. * ppcnbsd-tdep.c, printcmd.c, procfs.c, remote-e7000.c: Update. * remote-fileio.c, remote-m32r-sdi.c, remote-rdi.c: Update. * remote-rdp.c, remote-sim.c, remote-st.c: Update. * remote-utils.c, remote-utils.h, remote.c: Update. * rom68k-rom.c, rs6000-nat.c, s390-tdep.c, scm-lang.c: Update. * ser-e7kpc.c, ser-tcp.c, ser-unix.c, sh-tdep.c: Update. * sh3-rom.c, shnbsd-tdep.c, sol-thread.c, solib-aix5.c: Update. * solib-frv.c, solib-irix.c, solib-osf.c, solib-pa64.c: Update. * solib-som.c, solib-sunos.c, solib-svr4.c, solib.c: Update. * somread.c, somsolib.c, source.c, stabsread.c: Update. * stack.c, std-regs.c, symfile-mem.c, symfile.c: Update. * symmisc.c, symtab.c, target.c, thread.c, top.c: Update. * tracepoint.c, trad-frame.c, typeprint.c, utils.c: Update. * uw-thread.c, valarith.c, valops.c, valprint.c: Update. * value.c, varobj.c, version.in, win32-nat.c, wince.c: Update. * xcoffread.c, xcoffsolib.c, cli/cli-cmds.c: Update. * cli/cli-decode.c, cli/cli-dump.c, cli/cli-logging.c: Update. * cli/cli-script.c, cli/cli-setshow.c, mi/mi-cmd-break.c: Update. * mi/mi-cmd-disas.c, mi/mi-cmd-env.c, mi/mi-cmd-file.c: Update. * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-getopt.c: Update. * mi/mi-symbol-cmds.c, tui/tui-layout.c, tui/tui-stack.c: Update. * tui/tui-win.c: Update.
This commit is contained in:
parent
ebdda33727
commit
8a3fe4f86c
185 changed files with 1919 additions and 1910 deletions
|
@ -181,7 +181,7 @@ struct cmd_list_element *showchecklist;
|
|||
void
|
||||
error_no_arg (char *why)
|
||||
{
|
||||
error ("Argument required (%s).", why);
|
||||
error (_("Argument required (%s)."), why);
|
||||
}
|
||||
|
||||
/* The "info" command is defined as a prefix, with allow_unknown = 0.
|
||||
|
@ -305,7 +305,7 @@ void
|
|||
quit_command (char *args, int from_tty)
|
||||
{
|
||||
if (!quit_confirm ())
|
||||
error ("Not confirmed.");
|
||||
error (_("Not confirmed."));
|
||||
quit_force (args, from_tty);
|
||||
}
|
||||
|
||||
|
@ -313,7 +313,7 @@ static void
|
|||
pwd_command (char *args, int from_tty)
|
||||
{
|
||||
if (args)
|
||||
error ("The \"pwd\" command does not take an argument: %s", args);
|
||||
error (_("The \"pwd\" command does not take an argument: %s"), args);
|
||||
getcwd (gdb_dirbuf, sizeof (gdb_dirbuf));
|
||||
|
||||
if (strcmp (gdb_dirbuf, current_directory) != 0)
|
||||
|
@ -432,7 +432,7 @@ source_command (char *args, int from_tty)
|
|||
|
||||
if (file == NULL)
|
||||
{
|
||||
error ("source command requires pathname of file to source.");
|
||||
error (_("source command requires pathname of file to source."));
|
||||
}
|
||||
|
||||
file = tilde_expand (file);
|
||||
|
@ -539,7 +539,7 @@ shell_escape (char *arg, int from_tty)
|
|||
while ((rc = wait (&status)) != pid && rc != -1)
|
||||
;
|
||||
else
|
||||
error ("Fork failed");
|
||||
error (_("Fork failed"));
|
||||
#endif /* Can fork. */
|
||||
}
|
||||
|
||||
|
@ -567,7 +567,7 @@ edit_command (char *arg, int from_tty)
|
|||
if (arg == 0)
|
||||
{
|
||||
if (sal.symtab == 0)
|
||||
error ("No default source file yet.");
|
||||
error (_("No default source file yet."));
|
||||
sal.line += get_lines_to_list () / 2;
|
||||
}
|
||||
else
|
||||
|
@ -589,7 +589,7 @@ edit_command (char *arg, int from_tty)
|
|||
xfree (sals.sals);
|
||||
|
||||
if (*arg1)
|
||||
error ("Junk at end of line specification.");
|
||||
error (_("Junk at end of line specification."));
|
||||
|
||||
/* if line was specified by address,
|
||||
first print exactly which line, and which file.
|
||||
|
@ -599,7 +599,7 @@ edit_command (char *arg, int from_tty)
|
|||
{
|
||||
if (sal.symtab == 0)
|
||||
/* FIXME-32x64--assumes sal.pc fits in long. */
|
||||
error ("No source file for address %s.",
|
||||
error (_("No source file for address %s."),
|
||||
hex_string ((unsigned long) sal.pc));
|
||||
sym = find_pc_function (sal.pc);
|
||||
if (sym)
|
||||
|
@ -621,7 +621,7 @@ edit_command (char *arg, int from_tty)
|
|||
symbol which means no source code. */
|
||||
|
||||
if (sal.symtab == 0)
|
||||
error ("No line number known for %s.", arg);
|
||||
error (_("No line number known for %s."), arg);
|
||||
}
|
||||
|
||||
if ((editor = (char *) getenv ("EDITOR")) == NULL)
|
||||
|
@ -693,7 +693,7 @@ list_command (char *arg, int from_tty)
|
|||
set DUMMY_BEG or DUMMY_END to record that fact. */
|
||||
|
||||
if (!have_full_symbols () && !have_partial_symbols ())
|
||||
error ("No symbol table is loaded. Use the \"file\" command.");
|
||||
error (_("No symbol table is loaded. Use the \"file\" command."));
|
||||
|
||||
arg1 = arg;
|
||||
if (*arg1 == ',')
|
||||
|
@ -750,13 +750,13 @@ list_command (char *arg, int from_tty)
|
|||
}
|
||||
|
||||
if (*arg1)
|
||||
error ("Junk at end of line specification.");
|
||||
error (_("Junk at end of line specification."));
|
||||
|
||||
if (!no_end && !dummy_beg && !dummy_end
|
||||
&& sal.symtab != sal_end.symtab)
|
||||
error ("Specified start and end are in different files.");
|
||||
error (_("Specified start and end are in different files."));
|
||||
if (dummy_beg && dummy_end)
|
||||
error ("Two empty args do not say what lines to list.");
|
||||
error (_("Two empty args do not say what lines to list."));
|
||||
|
||||
/* if line was specified by address,
|
||||
first print exactly which line, and which file.
|
||||
|
@ -766,7 +766,7 @@ list_command (char *arg, int from_tty)
|
|||
{
|
||||
if (sal.symtab == 0)
|
||||
/* FIXME-32x64--assumes sal.pc fits in long. */
|
||||
error ("No source file for address %s.",
|
||||
error (_("No source file for address %s."),
|
||||
hex_string ((unsigned long) sal.pc));
|
||||
sym = find_pc_function (sal.pc);
|
||||
if (sym)
|
||||
|
@ -789,7 +789,7 @@ list_command (char *arg, int from_tty)
|
|||
which means no source code. */
|
||||
|
||||
if (!linenum_beg && sal.symtab == 0)
|
||||
error ("No line number known for %s.", arg);
|
||||
error (_("No line number known for %s."), arg);
|
||||
|
||||
/* If this command is repeated with RET,
|
||||
turn it into the no-arg variant. */
|
||||
|
@ -798,13 +798,13 @@ list_command (char *arg, int from_tty)
|
|||
*arg = 0;
|
||||
|
||||
if (dummy_beg && sal_end.symtab == 0)
|
||||
error ("No default source file yet. Do \"help list\".");
|
||||
error (_("No default source file yet. Do \"help list\"."));
|
||||
if (dummy_beg)
|
||||
print_source_lines (sal_end.symtab,
|
||||
max (sal_end.line - (get_lines_to_list () - 1), 1),
|
||||
sal_end.line + 1, 0);
|
||||
else if (sal.symtab == 0)
|
||||
error ("No default source file yet. Do \"help list\".");
|
||||
error (_("No default source file yet. Do \"help list\"."));
|
||||
else if (no_end)
|
||||
{
|
||||
int first_line = sal.line - get_lines_to_list () / 2;
|
||||
|
@ -846,11 +846,11 @@ disassemble_command (char *arg, int from_tty)
|
|||
if (!arg)
|
||||
{
|
||||
if (!deprecated_selected_frame)
|
||||
error ("No frame selected.\n");
|
||||
error (_("No frame selected."));
|
||||
|
||||
pc = get_frame_pc (deprecated_selected_frame);
|
||||
if (find_pc_partial_function (pc, &name, &low, &high) == 0)
|
||||
error ("No function contains program counter for selected frame.\n");
|
||||
error (_("No function contains program counter for selected frame."));
|
||||
#if defined(TUI)
|
||||
/* NOTE: cagney/2003-02-13 The `tui_active' was previously
|
||||
`tui_version'. */
|
||||
|
@ -865,7 +865,7 @@ disassemble_command (char *arg, int from_tty)
|
|||
/* One argument. */
|
||||
pc = parse_and_eval_address (arg);
|
||||
if (find_pc_partial_function (pc, &name, &low, &high) == 0)
|
||||
error ("No function contains specified address.\n");
|
||||
error (_("No function contains specified address."));
|
||||
#if defined(TUI)
|
||||
/* NOTE: cagney/2003-02-13 The `tui_active' was previously
|
||||
`tui_version'. */
|
||||
|
@ -942,7 +942,7 @@ show_user (char *args, int from_tty)
|
|||
{
|
||||
c = lookup_cmd (&args, cmdlist, "", 0, 1);
|
||||
if (c->class != class_user)
|
||||
error ("Not a user command.");
|
||||
error (_("Not a user command."));
|
||||
show_user_1 (c, gdb_stdout);
|
||||
}
|
||||
else
|
||||
|
@ -967,7 +967,7 @@ apropos_command (char *searchstr, int from_tty)
|
|||
char errorbuffer[512];
|
||||
pattern_fastmap = xcalloc (256, sizeof (char));
|
||||
if (searchstr == NULL)
|
||||
error("REGEXP string is empty");
|
||||
error (_("REGEXP string is empty"));
|
||||
|
||||
if (regcomp(&pattern,searchstr,REG_ICASE) == 0)
|
||||
{
|
||||
|
@ -978,7 +978,7 @@ apropos_command (char *searchstr, int from_tty)
|
|||
else
|
||||
{
|
||||
regerror(regcomp(&pattern,searchstr,REG_ICASE),NULL,errorbuffer,512);
|
||||
error("Error in regular expression:%s",errorbuffer);
|
||||
error (_("Error in regular expression:%s"),errorbuffer);
|
||||
}
|
||||
xfree (pattern_fastmap);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue