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
|
@ -1,3 +1,57 @@
|
|||
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.
|
||||
|
||||
2005-02-10 Ian Lance Taylor <ian@airs.com>
|
||||
|
||||
* MAINTAINERS: Update my e-mail address.
|
||||
|
|
|
@ -8089,7 +8089,7 @@ get_var_value (char *name, char *err_msg)
|
|||
if (err_msg == NULL)
|
||||
return 0;
|
||||
else
|
||||
error ("%s", err_msg);
|
||||
error (("%s"), err_msg);
|
||||
}
|
||||
|
||||
return value_of_variable (syms[0].sym, syms[0].block);
|
||||
|
|
|
@ -204,7 +204,7 @@ amd64_dwarf_reg_to_regnum (int reg)
|
|||
regnum = amd64_dwarf_regmap[reg];
|
||||
|
||||
if (regnum == -1)
|
||||
warning (_("Unmapped DWARF Register #%d encountered\n"), reg);
|
||||
warning (_("Unmapped DWARF Register #%d encountered."), reg);
|
||||
|
||||
return regnum;
|
||||
}
|
||||
|
|
|
@ -539,7 +539,7 @@ set_gdbarch_from_file (bfd *abfd)
|
|||
|
||||
gdbarch = gdbarch_from_bfd (abfd);
|
||||
if (gdbarch == NULL)
|
||||
error (_("Architecture of file not recognized.\n"));
|
||||
error (_("Architecture of file not recognized."));
|
||||
deprecated_current_gdbarch_select_hack (gdbarch);
|
||||
}
|
||||
|
||||
|
|
175
gdb/breakpoint.c
175
gdb/breakpoint.c
|
@ -305,7 +305,7 @@ int deprecated_exception_support_initialized = 0;
|
|||
|
||||
#ifndef SOLIB_CREATE_CATCH_LOAD_HOOK
|
||||
#define SOLIB_CREATE_CATCH_LOAD_HOOK(pid,tempflag,filename,cond_string) \
|
||||
error ("catch of library loads not yet implemented on this platform")
|
||||
error (_("catch of library loads not yet implemented on this platform"))
|
||||
#endif
|
||||
|
||||
/* This function is called by the "catch unload" command. It allows
|
||||
|
@ -315,7 +315,7 @@ int deprecated_exception_support_initialized = 0;
|
|||
|
||||
#ifndef SOLIB_CREATE_CATCH_UNLOAD_HOOK
|
||||
#define SOLIB_CREATE_CATCH_UNLOAD_HOOK(pid, tempflag, filename, cond_string) \
|
||||
error ("catch of library unloads not yet implemented on this platform")
|
||||
error (_("catch of library unloads not yet implemented on this platform"))
|
||||
#endif
|
||||
|
||||
/* Return whether a breakpoint is an active enabled breakpoint. */
|
||||
|
@ -480,7 +480,7 @@ get_number_or_range (char **pp)
|
|||
end_value = get_number (temp);
|
||||
if (end_value < last_retval)
|
||||
{
|
||||
error ("inverted range");
|
||||
error (_("inverted range"));
|
||||
}
|
||||
else if (end_value == last_retval)
|
||||
{
|
||||
|
@ -494,7 +494,7 @@ get_number_or_range (char **pp)
|
|||
}
|
||||
}
|
||||
else if (! in_range)
|
||||
error ("negative value");
|
||||
error (_("negative value"));
|
||||
else
|
||||
{
|
||||
/* pp points to the '-' that betokens a range. All
|
||||
|
@ -530,7 +530,7 @@ condition_command (char *arg, int from_tty)
|
|||
p = arg;
|
||||
bnum = get_number (&p);
|
||||
if (bnum == 0)
|
||||
error ("Bad breakpoint argument: '%s'", arg);
|
||||
error (_("Bad breakpoint argument: '%s'"), arg);
|
||||
|
||||
ALL_BREAKPOINTS (b)
|
||||
if (b->number == bnum)
|
||||
|
@ -560,7 +560,7 @@ condition_command (char *arg, int from_tty)
|
|||
{
|
||||
b->cond = parse_exp_1 (&arg, block_for_pc (b->loc->address), 0);
|
||||
if (*arg)
|
||||
error ("Junk at end of expression");
|
||||
error (_("Junk at end of expression"));
|
||||
}
|
||||
}
|
||||
breakpoints_changed ();
|
||||
|
@ -568,7 +568,7 @@ condition_command (char *arg, int from_tty)
|
|||
return;
|
||||
}
|
||||
|
||||
error ("No breakpoint number %d.", bnum);
|
||||
error (_("No breakpoint number %d."), bnum);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -584,13 +584,13 @@ commands_command (char *arg, int from_tty)
|
|||
being read from. */
|
||||
|
||||
if (executing_breakpoint_commands)
|
||||
error ("Can't use the \"commands\" command among a breakpoint's commands.");
|
||||
error (_("Can't use the \"commands\" command among a breakpoint's commands."));
|
||||
|
||||
p = arg;
|
||||
bnum = get_number (&p);
|
||||
|
||||
if (p && *p)
|
||||
error ("Unexpected extra arguments following breakpoint number.");
|
||||
error (_("Unexpected extra arguments following breakpoint number."));
|
||||
|
||||
ALL_BREAKPOINTS (b)
|
||||
if (b->number == bnum)
|
||||
|
@ -606,7 +606,7 @@ commands_command (char *arg, int from_tty)
|
|||
breakpoint_modify_event (b->number);
|
||||
return;
|
||||
}
|
||||
error ("No breakpoint number %d.", bnum);
|
||||
error (_("No breakpoint number %d."), bnum);
|
||||
}
|
||||
|
||||
/* Like target_read_memory() but if breakpoints are inserted, return
|
||||
|
@ -632,7 +632,7 @@ deprecated_read_memory_nobpt (CORE_ADDR memaddr, char *myaddr, unsigned len)
|
|||
ALL_BP_LOCATIONS (b)
|
||||
{
|
||||
if (b->owner->type == bp_none)
|
||||
warning ("reading through apparently deleted breakpoint #%d?",
|
||||
warning (_("reading through apparently deleted breakpoint #%d?"),
|
||||
b->owner->number);
|
||||
|
||||
if (b->loc_type != bp_loc_software_breakpoint)
|
||||
|
@ -798,7 +798,7 @@ insert_bp_location (struct bp_location *bpt,
|
|||
so we must try to set a breakpoint at the LMA.
|
||||
This will not work for a hardware breakpoint. */
|
||||
if (bpt->loc_type == bp_loc_hardware_breakpoint)
|
||||
warning ("hardware breakpoint %d not supported in overlay!\n",
|
||||
warning (_("hardware breakpoint %d not supported in overlay!"),
|
||||
bpt->owner->number);
|
||||
else
|
||||
{
|
||||
|
@ -1365,7 +1365,7 @@ detach_breakpoints (int pid)
|
|||
struct cleanup *old_chain = save_inferior_ptid ();
|
||||
|
||||
if (pid == PIDGET (inferior_ptid))
|
||||
error ("Cannot detach breakpoints of inferior_ptid");
|
||||
error (_("Cannot detach breakpoints of inferior_ptid"));
|
||||
|
||||
/* Set inferior_ptid; remove_breakpoint uses this global. */
|
||||
inferior_ptid = pid_to_ptid (pid);
|
||||
|
@ -1395,7 +1395,7 @@ remove_breakpoint (struct bp_location *b, insertion_state_t is)
|
|||
return 0;
|
||||
|
||||
if (b->owner->type == bp_none)
|
||||
warning ("attempted to remove apparently deleted breakpoint #%d?",
|
||||
warning (_("attempted to remove apparently deleted breakpoint #%d?"),
|
||||
b->owner->number);
|
||||
|
||||
if (b->loc_type == bp_loc_software_breakpoint
|
||||
|
@ -1503,7 +1503,7 @@ remove_breakpoint (struct bp_location *b, insertion_state_t is)
|
|||
}
|
||||
/* Failure to remove any of the hardware watchpoints comes here. */
|
||||
if ((is == mark_uninserted) && (b->inserted))
|
||||
warning ("Could not remove hardware watchpoint %d.",
|
||||
warning (_("Could not remove hardware watchpoint %d."),
|
||||
b->owner->number);
|
||||
}
|
||||
else if ((b->owner->type == bp_catch_fork ||
|
||||
|
@ -1525,7 +1525,7 @@ remove_breakpoint (struct bp_location *b, insertion_state_t is)
|
|||
val = target_remove_exec_catchpoint (PIDGET (inferior_ptid));
|
||||
break;
|
||||
default:
|
||||
warning ("Internal error, %s line %d.", __FILE__, __LINE__);
|
||||
warning (_("Internal error, %s line %d."), __FILE__, __LINE__);
|
||||
break;
|
||||
}
|
||||
if (val)
|
||||
|
@ -1643,8 +1643,8 @@ breakpoint_init_inferior (enum inf_context context)
|
|||
/* Don't issue the warning unless it's really needed... */
|
||||
if (warning_needed && (context != inf_exited))
|
||||
{
|
||||
warning ("Exception catchpoints from last run were deleted.");
|
||||
warning ("You must reinsert them explicitly.");
|
||||
warning (_("Exception catchpoints from last run were deleted.\n"
|
||||
"You must reinsert them explicitly."));
|
||||
warning_needed = 0;
|
||||
}
|
||||
}
|
||||
|
@ -1906,8 +1906,7 @@ bpstat_find_step_resume_breakpoint (bpstat bsp)
|
|||
{
|
||||
int current_thread;
|
||||
|
||||
if (bsp == NULL)
|
||||
error ("Internal error (bpstat_find_step_resume_breakpoint)");
|
||||
gdb_assert (bsp != NULL);
|
||||
|
||||
current_thread = pid_to_thread_id (inferior_ptid);
|
||||
|
||||
|
@ -1920,7 +1919,7 @@ bpstat_find_step_resume_breakpoint (bpstat bsp)
|
|||
return bsp->breakpoint_at;
|
||||
}
|
||||
|
||||
error ("Internal error (no step_resume breakpoint found)");
|
||||
internal_error (__FILE__, __LINE__, _("No step_resume breakpoint found."));
|
||||
}
|
||||
|
||||
|
||||
|
@ -3909,10 +3908,10 @@ breakpoint_adjustment_warning (CORE_ADDR from_addr, CORE_ADDR to_addr,
|
|||
strcpy (astr1, hex_string_custom ((unsigned long) from_addr, 8));
|
||||
strcpy (astr2, hex_string_custom ((unsigned long) to_addr, 8));
|
||||
if (have_bnum)
|
||||
warning ("Breakpoint %d address previously adjusted from %s to %s.",
|
||||
warning (_("Breakpoint %d address previously adjusted from %s to %s."),
|
||||
bnum, astr1, astr2);
|
||||
else
|
||||
warning ("Breakpoint address adjusted from %s to %s.", astr1, astr2);
|
||||
warning (_("Breakpoint address adjusted from %s to %s."), astr1, astr2);
|
||||
}
|
||||
|
||||
/* Adjust a breakpoint's address to account for architectural constraints
|
||||
|
@ -4361,10 +4360,10 @@ disable_breakpoints_in_shlibs (int silent)
|
|||
if (!disabled_shlib_breaks)
|
||||
{
|
||||
target_terminal_ours_for_output ();
|
||||
warning ("Temporarily disabling shared library breakpoints:");
|
||||
warning (_("Temporarily disabling shared library breakpoints:"));
|
||||
}
|
||||
disabled_shlib_breaks = 1;
|
||||
warning ("breakpoint #%d ", b->number);
|
||||
warning (_("breakpoint #%d "), b->number);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
@ -4401,7 +4400,7 @@ disable_breakpoints_in_unloaded_shlib (struct so_list *solib)
|
|||
if (!disabled_shlib_breaks)
|
||||
{
|
||||
target_terminal_ours_for_output ();
|
||||
warning ("Temporarily disabling breakpoints for unloaded shared library \"%s\"",
|
||||
warning (_("Temporarily disabling breakpoints for unloaded shared library \"%s\""),
|
||||
so_name);
|
||||
}
|
||||
disabled_shlib_breaks = 1;
|
||||
|
@ -4459,15 +4458,15 @@ solib_load_unload_1 (char *hookname, int tempflag, char *dll_pathname,
|
|||
|
||||
if (sals.nelts == 0)
|
||||
{
|
||||
warning ("Unable to set a breakpoint on dynamic linker callback.");
|
||||
warning ("Suggest linking with /opt/langtools/lib/end.o.");
|
||||
warning ("GDB will be unable to track shl_load/shl_unload calls");
|
||||
warning (_("Unable to set a breakpoint on dynamic linker callback.\n"
|
||||
"Suggest linking with /opt/langtools/lib/end.o.\n"
|
||||
"GDB will be unable to track shl_load/shl_unload calls."));
|
||||
return;
|
||||
}
|
||||
if (sals.nelts != 1)
|
||||
{
|
||||
warning ("Unable to set unique breakpoint on dynamic linker callback.");
|
||||
warning ("GDB will be unable to track shl_load/shl_unload calls");
|
||||
warning (_("Unable to set unique breakpoint on dynamic linker callback.\n"
|
||||
"GDB will be unable to track shl_load/shl_unload calls."));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -4900,9 +4899,9 @@ create_breakpoints (struct symtabs_and_lines sals, char **addr_string,
|
|||
TARGET_CAN_USE_HARDWARE_WATCHPOINT (bp_hardware_breakpoint,
|
||||
i + sals.nelts, 0);
|
||||
if (target_resources_ok == 0)
|
||||
error ("No hardware breakpoint support in the target.");
|
||||
error (_("No hardware breakpoint support in the target."));
|
||||
else if (target_resources_ok < 0)
|
||||
error ("Hardware breakpoints used exceeds limit.");
|
||||
error (_("Hardware breakpoints used exceeds limit."));
|
||||
}
|
||||
|
||||
/* Now set all the breakpoints. */
|
||||
|
@ -4944,7 +4943,7 @@ create_breakpoints (struct symtabs_and_lines sals, char **addr_string,
|
|||
b->cond_string = savestring (arg, strlen (arg));
|
||||
b->cond = parse_exp_1 (&arg, block_for_pc (b->loc->address), 0);
|
||||
if (*arg)
|
||||
error ("Junk at end of pending breakpoint condition expression");
|
||||
error (_("Junk at end of pending breakpoint condition expression"));
|
||||
}
|
||||
/* If there are commands associated with the breakpoint, they should
|
||||
be copied too. */
|
||||
|
@ -4992,7 +4991,7 @@ parse_breakpoint_sals (char **address,
|
|||
sals->nelts = 1;
|
||||
}
|
||||
else
|
||||
error ("No default breakpoint address now.");
|
||||
error (_("No default breakpoint address now."));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -5061,9 +5060,9 @@ breakpoint_sals_to_pc (struct symtabs_and_lines *sals,
|
|||
if (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE (sals->sals[i].pc))
|
||||
{
|
||||
if (address == NULL)
|
||||
error ("Cannot break without a running program.");
|
||||
error (_("Cannot break without a running program."));
|
||||
else
|
||||
error ("Cannot break on %s without a running program.",
|
||||
error (_("Cannot break on %s without a running program."),
|
||||
address);
|
||||
}
|
||||
#endif
|
||||
|
@ -5256,12 +5255,12 @@ break_command_1 (char *arg, int flag, int from_tty, struct breakpoint *pending_b
|
|||
tmptok = tok;
|
||||
thread = strtol (tok, &tok, 0);
|
||||
if (tok == tmptok)
|
||||
error ("Junk after thread keyword.");
|
||||
error (_("Junk after thread keyword."));
|
||||
if (!valid_thread_id (thread))
|
||||
error ("Unknown thread %d\n", thread);
|
||||
error (_("Unknown thread %d."), thread);
|
||||
}
|
||||
else
|
||||
error ("Junk at end of arguments.");
|
||||
error (_("Junk at end of arguments."));
|
||||
}
|
||||
}
|
||||
create_breakpoints (sals, addr_string, cond, cond_string,
|
||||
|
@ -5298,10 +5297,8 @@ break_command_1 (char *arg, int flag, int from_tty, struct breakpoint *pending_b
|
|||
}
|
||||
|
||||
if (sals.nelts > 1)
|
||||
{
|
||||
warning ("Multiple breakpoints were set.");
|
||||
warning ("Use the \"delete\" command to delete unwanted breakpoints.");
|
||||
}
|
||||
warning (_("Multiple breakpoints were set.\n"
|
||||
"Use the \"delete\" command to delete unwanted breakpoints."));
|
||||
/* That's it. Discard the cleanups for data inserted into the
|
||||
breakpoint. */
|
||||
discard_cleanups (breakpoint_chain);
|
||||
|
@ -5386,7 +5383,7 @@ do_captured_breakpoint (struct ui_out *uiout, void *data)
|
|||
address. That way cleanups can take care of freeing any
|
||||
memory. */
|
||||
if (*address_end != '\0')
|
||||
error ("Garbage %s following breakpoint address", address_end);
|
||||
error (_("Garbage %s following breakpoint address"), address_end);
|
||||
|
||||
/* Resolve all line numbers to PC's. */
|
||||
breakpoint_sals_to_pc (&sals, args->address);
|
||||
|
@ -5400,7 +5397,7 @@ do_captured_breakpoint (struct ui_out *uiout, void *data)
|
|||
char *tok = args->condition;
|
||||
cond[i] = parse_exp_1 (&tok, block_for_pc (sals.sals[i].pc), 0);
|
||||
if (*tok != '\0')
|
||||
error ("Garbage %s follows condition", tok);
|
||||
error (_("Garbage %s follows condition"), tok);
|
||||
make_cleanup (xfree, cond[i]);
|
||||
cond_string[i] = xstrdup (args->condition);
|
||||
}
|
||||
|
@ -5448,7 +5445,7 @@ resolve_sal_pc (struct symtab_and_line *sal)
|
|||
if (sal->pc == 0 && sal->symtab != NULL)
|
||||
{
|
||||
if (!find_line_pc (sal->symtab, sal->line, &pc))
|
||||
error ("No line %d in file \"%s\".",
|
||||
error (_("No line %d in file \"%s\"."),
|
||||
sal->line, sal->symtab->filename);
|
||||
sal->pc = pc;
|
||||
}
|
||||
|
@ -5638,7 +5635,7 @@ watch_command_1 (char *arg, int accessflag, int from_tty)
|
|||
cond_end = tok;
|
||||
}
|
||||
if (*tok)
|
||||
error ("Junk at end of command.");
|
||||
error (_("Junk at end of command."));
|
||||
|
||||
if (accessflag == hw_read)
|
||||
bp_type = bp_read_watchpoint;
|
||||
|
@ -5649,7 +5646,7 @@ watch_command_1 (char *arg, int accessflag, int from_tty)
|
|||
|
||||
mem_cnt = can_use_hardware_watchpoint (val);
|
||||
if (mem_cnt == 0 && bp_type != bp_hardware_watchpoint)
|
||||
error ("Expression cannot be implemented with read/access watchpoint.");
|
||||
error (_("Expression cannot be implemented with read/access watchpoint."));
|
||||
if (mem_cnt != 0)
|
||||
{
|
||||
i = hw_watchpoint_used_count (bp_type, &other_type_used);
|
||||
|
@ -5657,10 +5654,10 @@ watch_command_1 (char *arg, int accessflag, int from_tty)
|
|||
TARGET_CAN_USE_HARDWARE_WATCHPOINT (bp_type, i + mem_cnt,
|
||||
other_type_used);
|
||||
if (target_resources_ok == 0 && bp_type != bp_hardware_watchpoint)
|
||||
error ("Target does not support this type of hardware watchpoint.");
|
||||
error (_("Target does not support this type of hardware watchpoint."));
|
||||
|
||||
if (target_resources_ok < 0 && bp_type != bp_hardware_watchpoint)
|
||||
error ("Target can only support one kind of HW watchpoint at a time.");
|
||||
error (_("Target can only support one kind of HW watchpoint at a time."));
|
||||
}
|
||||
|
||||
#if defined(HPUXHPPA)
|
||||
|
@ -5680,7 +5677,7 @@ watch_command_1 (char *arg, int accessflag, int from_tty)
|
|||
set watches after getting the program started. */
|
||||
if (!target_has_execution)
|
||||
{
|
||||
warning ("can't do that without a running program; try \"break main\", \"run\" first");
|
||||
warning (_("can't do that without a running program; try \"break main\"), \"run\" first");
|
||||
return;
|
||||
}
|
||||
#endif /* HPUXHPPA */
|
||||
|
@ -5910,13 +5907,13 @@ until_break_command (char *arg, int from_tty, int anywhere)
|
|||
0, (char ***) NULL, NULL);
|
||||
|
||||
if (sals.nelts != 1)
|
||||
error ("Couldn't get information on specified line.");
|
||||
error (_("Couldn't get information on specified line."));
|
||||
|
||||
sal = sals.sals[0];
|
||||
xfree (sals.sals); /* malloc'd, so freed */
|
||||
|
||||
if (*arg)
|
||||
error ("Junk at end of arguments.");
|
||||
error (_("Junk at end of arguments."));
|
||||
|
||||
resolve_sal_pc (&sal);
|
||||
|
||||
|
@ -6108,7 +6105,7 @@ catch_fork_command_1 (catch_fork_kind fork_kind, char *arg, int tempflag,
|
|||
cond_string = ep_parse_optional_if_clause (&arg);
|
||||
|
||||
if ((*arg != '\0') && !isspace (*arg))
|
||||
error ("Junk at end of arguments.");
|
||||
error (_("Junk at end of arguments."));
|
||||
|
||||
/* If this target supports it, create a fork or vfork catchpoint
|
||||
and enable reporting of such events. */
|
||||
|
@ -6121,7 +6118,7 @@ catch_fork_command_1 (catch_fork_kind fork_kind, char *arg, int tempflag,
|
|||
create_vfork_event_catchpoint (tempflag, cond_string);
|
||||
break;
|
||||
default:
|
||||
error ("unsupported or unknown fork kind; cannot catch it");
|
||||
error (_("unsupported or unknown fork kind; cannot catch it"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -6141,7 +6138,7 @@ catch_exec_command_1 (char *arg, int tempflag, int from_tty)
|
|||
cond_string = ep_parse_optional_if_clause (&arg);
|
||||
|
||||
if ((*arg != '\0') && !isspace (*arg))
|
||||
error ("Junk at end of arguments.");
|
||||
error (_("Junk at end of arguments."));
|
||||
|
||||
/* If this target supports it, create an exec catchpoint
|
||||
and enable reporting of such events. */
|
||||
|
@ -6181,7 +6178,7 @@ catch_load_command_1 (char *arg, int tempflag, int from_tty)
|
|||
}
|
||||
|
||||
if ((*arg != '\0') && !isspace (*arg))
|
||||
error ("Junk at end of arguments.");
|
||||
error (_("Junk at end of arguments."));
|
||||
|
||||
/* Create a load breakpoint that only triggers when a load of
|
||||
the specified dll (or any dll, if no pathname was specified)
|
||||
|
@ -6223,7 +6220,7 @@ catch_unload_command_1 (char *arg, int tempflag, int from_tty)
|
|||
}
|
||||
|
||||
if ((*arg != '\0') && !isspace (*arg))
|
||||
error ("Junk at end of arguments.");
|
||||
error (_("Junk at end of arguments."));
|
||||
|
||||
/* Create an unload breakpoint that only triggers when an unload of
|
||||
the specified dll (or any dll, if no pathname was specified)
|
||||
|
@ -6258,7 +6255,7 @@ create_exception_catchpoint (int tempflag, char *cond_string,
|
|||
bptype = bp_catch_catch;
|
||||
break;
|
||||
default: /* error condition */
|
||||
error ("Internal error -- invalid catchpoint kind");
|
||||
error (_("Internal error -- invalid catchpoint kind"));
|
||||
}
|
||||
|
||||
b = set_raw_breakpoint (*sal, bptype);
|
||||
|
@ -6372,11 +6369,11 @@ catch_exception_command_1 (enum exception_event_kind ex_event, char *arg,
|
|||
cond_string = ep_parse_optional_if_clause (&arg);
|
||||
|
||||
if ((*arg != '\0') && !isspace (*arg))
|
||||
error ("Junk at end of arguments.");
|
||||
error (_("Junk at end of arguments."));
|
||||
|
||||
if ((ex_event != EX_EVENT_THROW) &&
|
||||
(ex_event != EX_EVENT_CATCH))
|
||||
error ("Unsupported or unknown exception event; cannot catch it");
|
||||
error (_("Unsupported or unknown exception event; cannot catch it"));
|
||||
|
||||
if (handle_gnu_v3_exceptions (tempflag, cond_string, ex_event, from_tty))
|
||||
return;
|
||||
|
@ -6394,7 +6391,7 @@ catch_exception_command_1 (enum exception_event_kind ex_event, char *arg,
|
|||
return; /* something went wrong with setting up callbacks */
|
||||
}
|
||||
|
||||
warning ("Unsupported with this platform/compiler combination.");
|
||||
warning (_("Unsupported with this platform/compiler combination."));
|
||||
}
|
||||
|
||||
/* Cover routine to allow wrapping target_enable_exception_catchpoints
|
||||
|
@ -6434,18 +6431,18 @@ catch_command_1 (char *arg, int tempflag, int from_tty)
|
|||
/* catch_throw_command_1 (arg1_start, tempflag, from_tty); */
|
||||
/* return; */
|
||||
/* Now, this is not allowed */
|
||||
error ("Catch requires an event name.");
|
||||
error (_("Catch requires an event name."));
|
||||
|
||||
}
|
||||
arg1_end = ep_find_event_name_end (arg1_start);
|
||||
if (arg1_end == NULL)
|
||||
error ("catch requires an event");
|
||||
error (_("catch requires an event"));
|
||||
arg1_length = arg1_end + 1 - arg1_start;
|
||||
|
||||
/* Try to match what we found against known event names. */
|
||||
if (strncmp (arg1_start, "signal", arg1_length) == 0)
|
||||
{
|
||||
error ("Catch of signal not yet implemented");
|
||||
error (_("Catch of signal not yet implemented"));
|
||||
}
|
||||
else if (strncmp (arg1_start, "catch", arg1_length) == 0)
|
||||
{
|
||||
|
@ -6459,23 +6456,23 @@ catch_command_1 (char *arg, int tempflag, int from_tty)
|
|||
}
|
||||
else if (strncmp (arg1_start, "thread_start", arg1_length) == 0)
|
||||
{
|
||||
error ("Catch of thread_start not yet implemented");
|
||||
error (_("Catch of thread_start not yet implemented"));
|
||||
}
|
||||
else if (strncmp (arg1_start, "thread_exit", arg1_length) == 0)
|
||||
{
|
||||
error ("Catch of thread_exit not yet implemented");
|
||||
error (_("Catch of thread_exit not yet implemented"));
|
||||
}
|
||||
else if (strncmp (arg1_start, "thread_join", arg1_length) == 0)
|
||||
{
|
||||
error ("Catch of thread_join not yet implemented");
|
||||
error (_("Catch of thread_join not yet implemented"));
|
||||
}
|
||||
else if (strncmp (arg1_start, "start", arg1_length) == 0)
|
||||
{
|
||||
error ("Catch of start not yet implemented");
|
||||
error (_("Catch of start not yet implemented"));
|
||||
}
|
||||
else if (strncmp (arg1_start, "exit", arg1_length) == 0)
|
||||
{
|
||||
error ("Catch of exit not yet implemented");
|
||||
error (_("Catch of exit not yet implemented"));
|
||||
}
|
||||
else if (strncmp (arg1_start, "fork", arg1_length) == 0)
|
||||
{
|
||||
|
@ -6499,7 +6496,7 @@ catch_command_1 (char *arg, int tempflag, int from_tty)
|
|||
}
|
||||
else if (strncmp (arg1_start, "stop", arg1_length) == 0)
|
||||
{
|
||||
error ("Catch of stop not yet implemented");
|
||||
error (_("Catch of stop not yet implemented"));
|
||||
}
|
||||
|
||||
/* This doesn't appear to be an event name */
|
||||
|
@ -6510,7 +6507,7 @@ catch_command_1 (char *arg, int tempflag, int from_tty)
|
|||
as the name of an exception */
|
||||
/* catch_throw_command_1 (arg1_start, tempflag, from_tty); */
|
||||
/* Now this is not allowed */
|
||||
error ("Unknown event kind specified for catch");
|
||||
error (_("Unknown event kind specified for catch"));
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -6568,7 +6565,7 @@ clear_command (char *arg, int from_tty)
|
|||
sal.symtab = default_breakpoint_symtab;
|
||||
sal.pc = default_breakpoint_address;
|
||||
if (sal.symtab == 0)
|
||||
error ("No source file specified.");
|
||||
error (_("No source file specified."));
|
||||
|
||||
sals.sals[0] = sal;
|
||||
sals.nelts = 1;
|
||||
|
@ -6646,9 +6643,9 @@ clear_command (char *arg, int from_tty)
|
|||
if (found == 0)
|
||||
{
|
||||
if (arg)
|
||||
error ("No breakpoint at %s.", arg);
|
||||
error (_("No breakpoint at %s."), arg);
|
||||
else
|
||||
error ("No breakpoint at this line.");
|
||||
error (_("No breakpoint at this line."));
|
||||
}
|
||||
|
||||
if (found->next)
|
||||
|
@ -6699,9 +6696,7 @@ delete_breakpoint (struct breakpoint *bpt)
|
|||
bpstat bs;
|
||||
struct bp_location *loc;
|
||||
|
||||
if (bpt == NULL)
|
||||
error ("Internal error (attempted to delete a NULL breakpoint)");
|
||||
|
||||
gdb_assert (bpt != NULL);
|
||||
|
||||
/* Has this bp already been deleted? This can happen because multiple
|
||||
lists can hold pointers to bp's. bpstat lists are especial culprits.
|
||||
|
@ -6959,7 +6954,7 @@ breakpoint_re_set_one (void *bint)
|
|||
switch (b->type)
|
||||
{
|
||||
case bp_none:
|
||||
warning ("attempted to reset apparently deleted breakpoint #%d?",
|
||||
warning (_("attempted to reset apparently deleted breakpoint #%d?"),
|
||||
b->number);
|
||||
return 0;
|
||||
case bp_breakpoint:
|
||||
|
@ -7262,7 +7257,7 @@ set_ignore_count (int bptnum, int count, int from_tty)
|
|||
return;
|
||||
}
|
||||
|
||||
error ("No breakpoint number %d.", bptnum);
|
||||
error (_("No breakpoint number %d."), bptnum);
|
||||
}
|
||||
|
||||
/* Clear the ignore counts of all breakpoints. */
|
||||
|
@ -7288,9 +7283,9 @@ ignore_command (char *args, int from_tty)
|
|||
|
||||
num = get_number (&p);
|
||||
if (num == 0)
|
||||
error ("bad breakpoint number: '%s'", args);
|
||||
error (_("bad breakpoint number: '%s'"), args);
|
||||
if (*p == 0)
|
||||
error ("Second argument (specified ignore-count) is missing.");
|
||||
error (_("Second argument (specified ignore-count) is missing."));
|
||||
|
||||
set_ignore_count (num,
|
||||
longest_to_int (value_as_long (parse_and_eval (p))),
|
||||
|
@ -7322,7 +7317,7 @@ map_breakpoint_numbers (char *args, void (*function) (struct breakpoint *))
|
|||
num = get_number_or_range (&p1);
|
||||
if (num == 0)
|
||||
{
|
||||
warning ("bad breakpoint number at or near '%s'", p);
|
||||
warning (_("bad breakpoint number at or near '%s'"), p);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -7378,7 +7373,7 @@ disable_command (char *args, int from_tty)
|
|||
switch (bpt->type)
|
||||
{
|
||||
case bp_none:
|
||||
warning ("attempted to disable apparently deleted breakpoint #%d?",
|
||||
warning (_("attempted to disable apparently deleted breakpoint #%d?"),
|
||||
bpt->number);
|
||||
continue;
|
||||
case bp_breakpoint:
|
||||
|
@ -7416,9 +7411,9 @@ do_enable_breakpoint (struct breakpoint *bpt, enum bpdisp disposition)
|
|||
TARGET_CAN_USE_HARDWARE_WATCHPOINT (bp_hardware_breakpoint,
|
||||
i + 1, 0);
|
||||
if (target_resources_ok == 0)
|
||||
error ("No hardware breakpoint support in the target.");
|
||||
error (_("No hardware breakpoint support in the target."));
|
||||
else if (target_resources_ok < 0)
|
||||
error ("Hardware breakpoints used exceeds limit.");
|
||||
error (_("Hardware breakpoints used exceeds limit."));
|
||||
}
|
||||
|
||||
if (bpt->pending)
|
||||
|
@ -7529,7 +7524,7 @@ enable_command (char *args, int from_tty)
|
|||
switch (bpt->type)
|
||||
{
|
||||
case bp_none:
|
||||
warning ("attempted to enable apparently deleted breakpoint #%d?",
|
||||
warning (_("attempted to enable apparently deleted breakpoint #%d?"),
|
||||
bpt->number);
|
||||
continue;
|
||||
case bp_breakpoint:
|
||||
|
@ -7594,7 +7589,7 @@ decode_line_spec_1 (char *string, int funfirstline)
|
|||
{
|
||||
struct symtabs_and_lines sals;
|
||||
if (string == 0)
|
||||
error ("Empty line specification.");
|
||||
error (_("Empty line specification."));
|
||||
if (default_breakpoint_valid)
|
||||
sals = decode_line_1 (&string, funfirstline,
|
||||
default_breakpoint_symtab,
|
||||
|
@ -7604,7 +7599,7 @@ decode_line_spec_1 (char *string, int funfirstline)
|
|||
sals = decode_line_1 (&string, funfirstline,
|
||||
(struct symtab *) NULL, 0, (char ***) NULL, NULL);
|
||||
if (*string)
|
||||
error ("Junk at end of line specification: %s", string);
|
||||
error (_("Junk at end of line specification: %s"), string);
|
||||
return sals;
|
||||
}
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@ bsd_kvm_open (char *filename, int from_tty)
|
|||
execfile = get_exec_file (0);
|
||||
temp_kd = kvm_openfiles (execfile, filename, NULL, O_RDONLY, errbuf);
|
||||
if (temp_kd == NULL)
|
||||
error ("%s", errbuf);
|
||||
error (("%s"), errbuf);
|
||||
|
||||
unpush_target (&bsd_kvm_ops);
|
||||
core_kd = temp_kd;
|
||||
|
@ -98,7 +98,7 @@ bsd_kvm_close (int quitting)
|
|||
if (core_kd)
|
||||
{
|
||||
if (kvm_close (core_kd) == -1)
|
||||
warning ("%s", kvm_geterr(core_kd));
|
||||
warning (("%s"), kvm_geterr(core_kd));
|
||||
core_kd = NULL;
|
||||
}
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ bsd_kvm_fetch_pcb (struct pcb *paddr)
|
|||
struct pcb pcb;
|
||||
|
||||
if (kvm_read (core_kd, (unsigned long) paddr, &pcb, sizeof pcb) == -1)
|
||||
error ("%s", kvm_geterr (core_kd));
|
||||
error (("%s"), kvm_geterr (core_kd));
|
||||
|
||||
gdb_assert (bsd_kvm_supply_pcb);
|
||||
return bsd_kvm_supply_pcb (current_regcache, &pcb);
|
||||
|
@ -147,7 +147,7 @@ bsd_kvm_fetch_registers (int regnum)
|
|||
nl[0].n_name = "_dumppcb";
|
||||
|
||||
if (kvm_nlist (core_kd, nl) == -1)
|
||||
error ("%s", kvm_geterr (core_kd));
|
||||
error (("%s"), kvm_geterr (core_kd));
|
||||
|
||||
if (nl[0].n_value != 0)
|
||||
{
|
||||
|
@ -165,7 +165,7 @@ bsd_kvm_fetch_registers (int regnum)
|
|||
nl[0].n_name = "_proc0paddr";
|
||||
|
||||
if (kvm_nlist (core_kd, nl) == -1)
|
||||
error ("%s", kvm_geterr (core_kd));
|
||||
error (("%s"), kvm_geterr (core_kd));
|
||||
|
||||
if (nl[0].n_value != 0)
|
||||
{
|
||||
|
@ -173,7 +173,7 @@ bsd_kvm_fetch_registers (int regnum)
|
|||
|
||||
/* Found proc0paddr. */
|
||||
if (kvm_read (core_kd, nl[0].n_value, &paddr, sizeof paddr) == -1)
|
||||
error ("%s", kvm_geterr (core_kd));
|
||||
error (("%s"), kvm_geterr (core_kd));
|
||||
|
||||
bsd_kvm_fetch_pcb (paddr);
|
||||
return;
|
||||
|
@ -189,7 +189,7 @@ bsd_kvm_fetch_registers (int regnum)
|
|||
nl[0].n_name = "_thread0";
|
||||
|
||||
if (kvm_nlist (core_kd, nl) == -1)
|
||||
error ("%s", kvm_geterr (core_kd));
|
||||
error (("%s"), kvm_geterr (core_kd));
|
||||
|
||||
if (nl[0].n_value != 0)
|
||||
{
|
||||
|
@ -198,7 +198,7 @@ bsd_kvm_fetch_registers (int regnum)
|
|||
/* Found thread0. */
|
||||
nl[0].n_value += offsetof (struct thread, td_pcb);
|
||||
if (kvm_read (core_kd, nl[0].n_value, &paddr, sizeof paddr) == -1)
|
||||
error ("%s", kvm_geterr (core_kd));
|
||||
error (("%s"), kvm_geterr (core_kd));
|
||||
|
||||
bsd_kvm_fetch_pcb (paddr);
|
||||
return;
|
||||
|
@ -240,7 +240,7 @@ bsd_kvm_proc_cmd (char *arg, int fromtty)
|
|||
#endif
|
||||
|
||||
if (kvm_read (core_kd, addr, &bsd_kvm_paddr, sizeof bsd_kvm_paddr) == -1)
|
||||
error ("%s", kvm_geterr (core_kd));
|
||||
error (("%s"), kvm_geterr (core_kd));
|
||||
|
||||
target_fetch_registers (-1);
|
||||
|
||||
|
|
|
@ -97,7 +97,7 @@ bsd_uthread_check_magic (CORE_ADDR addr)
|
|||
ULONGEST magic = read_memory_unsigned_integer (addr, 4);
|
||||
|
||||
if (magic != BSD_UTHREAD_PTHREAD_MAGIC)
|
||||
error ("Bad magic");
|
||||
error (_("Bad magic"));
|
||||
}
|
||||
|
||||
/* Thread states. */
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -1154,7 +1154,7 @@ lookup_cmd_1 (char **text, struct cmd_list_element *clist,
|
|||
static void
|
||||
undef_cmd_error (char *cmdtype, char *q)
|
||||
{
|
||||
error ("Undefined %scommand: \"%s\". Try \"help%s%.*s\".",
|
||||
error (_("Undefined %scommand: \"%s\". Try \"help%s%.*s\"."),
|
||||
cmdtype,
|
||||
q,
|
||||
*cmdtype ? " " : "",
|
||||
|
@ -1192,7 +1192,7 @@ lookup_cmd (char **line, struct cmd_list_element *list, char *cmdtype,
|
|||
if (!allow_unknown)
|
||||
{
|
||||
if (!*line)
|
||||
error ("Lack of needed %scommand", cmdtype);
|
||||
error (_("Lack of needed %scommand"), cmdtype);
|
||||
else
|
||||
{
|
||||
char *p = *line, *q;
|
||||
|
@ -1254,7 +1254,7 @@ lookup_cmd (char **line, struct cmd_list_element *list, char *cmdtype,
|
|||
break;
|
||||
}
|
||||
}
|
||||
error ("Ambiguous %scommand \"%s\": %s.", local_cmdtype,
|
||||
error (_("Ambiguous %scommand \"%s\": %s."), local_cmdtype,
|
||||
*line, ambbuf);
|
||||
return 0; /* lint */
|
||||
}
|
||||
|
@ -1636,7 +1636,7 @@ cmd_func (struct cmd_list_element *cmd, char *args, int from_tty)
|
|||
if (cmd_func_p (cmd))
|
||||
(*cmd->func) (cmd, args, from_tty);
|
||||
else
|
||||
error ("Invalid command");
|
||||
error (_("Invalid command"));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -94,7 +94,7 @@ scan_filename_with_cleanup (char **cmd, const char *defname)
|
|||
if ((*cmd) == NULL)
|
||||
{
|
||||
if (defname == NULL)
|
||||
error ("Missing filename.");
|
||||
error (_("Missing filename."));
|
||||
filename = xstrdup (defname);
|
||||
make_cleanup (xfree, filename);
|
||||
}
|
||||
|
@ -134,12 +134,12 @@ bfd_openr_with_cleanup (const char *filename, const char *target)
|
|||
|
||||
ibfd = bfd_openr (filename, target);
|
||||
if (ibfd == NULL)
|
||||
error ("Failed to open %s: %s.", filename,
|
||||
error (_("Failed to open %s: %s."), filename,
|
||||
bfd_errmsg (bfd_get_error ()));
|
||||
|
||||
make_cleanup_bfd_close (ibfd);
|
||||
if (!bfd_check_format (ibfd, bfd_object))
|
||||
error ("'%s' is not a recognized file format.", filename);
|
||||
error (_("'%s' is not a recognized file format."), filename);
|
||||
|
||||
return ibfd;
|
||||
}
|
||||
|
@ -154,18 +154,18 @@ bfd_openw_with_cleanup (const char *filename, const char *target,
|
|||
{
|
||||
obfd = bfd_openw (filename, target);
|
||||
if (obfd == NULL)
|
||||
error ("Failed to open %s: %s.", filename,
|
||||
error (_("Failed to open %s: %s."), filename,
|
||||
bfd_errmsg (bfd_get_error ()));
|
||||
make_cleanup_bfd_close (obfd);
|
||||
if (!bfd_set_format (obfd, bfd_object))
|
||||
error ("bfd_openw_with_cleanup: %s.", bfd_errmsg (bfd_get_error ()));
|
||||
error (_("bfd_openw_with_cleanup: %s."), bfd_errmsg (bfd_get_error ()));
|
||||
}
|
||||
else if (*mode == 'a') /* Append to existing file */
|
||||
{ /* FIXME -- doesn't work... */
|
||||
error ("bfd_openw does not work with append.");
|
||||
error (_("bfd_openw does not work with append."));
|
||||
}
|
||||
else
|
||||
error ("bfd_openw_with_cleanup: unknown mode %s.", mode);
|
||||
error (_("bfd_openw_with_cleanup: unknown mode %s."), mode);
|
||||
|
||||
return obfd;
|
||||
}
|
||||
|
@ -241,18 +241,18 @@ dump_memory_to_file (char *cmd, char *mode, char *file_format)
|
|||
|
||||
/* Find the low address. */
|
||||
if (cmd == NULL || *cmd == '\0')
|
||||
error ("Missing start address.");
|
||||
error (_("Missing start address."));
|
||||
lo_exp = scan_expression_with_cleanup (&cmd, NULL);
|
||||
|
||||
/* Find the second address - rest of line. */
|
||||
if (cmd == NULL || *cmd == '\0')
|
||||
error ("Missing stop address.");
|
||||
error (_("Missing stop address."));
|
||||
hi_exp = cmd;
|
||||
|
||||
lo = parse_and_eval_address (lo_exp);
|
||||
hi = parse_and_eval_address (hi_exp);
|
||||
if (hi <= lo)
|
||||
error ("Invalid memory address range (start >= end).");
|
||||
error (_("Invalid memory address range (start >= end)."));
|
||||
count = hi - lo;
|
||||
|
||||
/* FIXME: Should use read_memory_partial() and a magic blocking
|
||||
|
@ -292,10 +292,10 @@ dump_value_to_file (char *cmd, char *mode, char *file_format)
|
|||
|
||||
/* Find the value. */
|
||||
if (cmd == NULL || *cmd == '\0')
|
||||
error ("No value to %s.", *mode == 'a' ? "append" : "dump");
|
||||
error (_("No value to %s."), *mode == 'a' ? "append" : "dump");
|
||||
val = parse_and_eval (cmd);
|
||||
if (val == NULL)
|
||||
error ("Invalid expression.");
|
||||
error (_("Invalid expression."));
|
||||
|
||||
/* Have everything. Open/write the data. */
|
||||
if (file_format == NULL || strcmp (file_format, "binary") == 0)
|
||||
|
@ -314,7 +314,7 @@ dump_value_to_file (char *cmd, char *mode, char *file_format)
|
|||
else
|
||||
{
|
||||
vaddr = 0;
|
||||
warning ("value is not an lval: address assumed to be zero");
|
||||
warning (_("value is not an lval: address assumed to be zero"));
|
||||
}
|
||||
|
||||
dump_bfd_file (filename, mode, file_format, vaddr,
|
||||
|
@ -492,7 +492,7 @@ restore_section_callback (bfd *ibfd, asection *isec, void *args)
|
|||
buf = xmalloc (size);
|
||||
old_chain = make_cleanup (xfree, buf);
|
||||
if (!bfd_get_section_contents (ibfd, isec, buf, 0, size))
|
||||
error ("Failed to read bfd file %s: '%s'.", bfd_get_filename (ibfd),
|
||||
error (_("Failed to read bfd file %s: '%s'."), bfd_get_filename (ibfd),
|
||||
bfd_errmsg (bfd_get_error ()));
|
||||
|
||||
printf_filtered ("Restoring section %s (0x%lx to 0x%lx)",
|
||||
|
@ -513,7 +513,7 @@ restore_section_callback (bfd *ibfd, asection *isec, void *args)
|
|||
ret = target_write_memory (sec_start + sec_offset + data->load_offset,
|
||||
buf + sec_offset, sec_load_count);
|
||||
if (ret != 0)
|
||||
warning ("restore: memory write failed (%s).", safe_strerror (ret));
|
||||
warning (_("restore: memory write failed (%s)."), safe_strerror (ret));
|
||||
do_cleanups (old_chain);
|
||||
return;
|
||||
}
|
||||
|
@ -533,7 +533,7 @@ restore_binary_file (char *filename, struct callback_data *data)
|
|||
perror_with_name (filename);
|
||||
|
||||
if (len <= data->load_start)
|
||||
error ("Start address is greater than length of binary file %s.",
|
||||
error (_("Start address is greater than length of binary file %s."),
|
||||
filename);
|
||||
|
||||
/* Chop off "len" if it exceeds the requested load_end addr. */
|
||||
|
@ -562,7 +562,7 @@ restore_binary_file (char *filename, struct callback_data *data)
|
|||
/* Now write the buffer into target memory. */
|
||||
len = target_write_memory (data->load_start + data->load_offset, buf, len);
|
||||
if (len != 0)
|
||||
warning ("restore: memory write failed (%s).", safe_strerror (len));
|
||||
warning (_("restore: memory write failed (%s)."), safe_strerror (len));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -608,7 +608,7 @@ restore_command (char *args, int from_tty)
|
|||
/* Parse end address (optional). */
|
||||
data.load_end = parse_and_eval_long (args);
|
||||
if (data.load_end <= data.load_start)
|
||||
error ("Start must be less than end.");
|
||||
error (_("Start must be less than end."));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -102,7 +102,7 @@ handle_redirections (int from_tty)
|
|||
gdb_stdtarg = output;
|
||||
|
||||
if (ui_out_redirect (uiout, gdb_stdout) < 0)
|
||||
warning ("Current output protocol does not support redirection");
|
||||
warning (_("Current output protocol does not support redirection"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -73,7 +73,7 @@ build_command_line (enum command_control_type type, char *args)
|
|||
struct command_line *cmd;
|
||||
|
||||
if (args == NULL)
|
||||
error ("if/while commands require arguments.\n");
|
||||
error (_("if/while commands require arguments."));
|
||||
|
||||
cmd = (struct command_line *) xmalloc (sizeof (struct command_line));
|
||||
cmd->next = NULL;
|
||||
|
@ -105,7 +105,7 @@ get_command_line (enum command_control_type type, char *arg)
|
|||
/* Read in the body of this command. */
|
||||
if (recurse_read_control_structure (cmd) == invalid_control)
|
||||
{
|
||||
warning ("error reading in control structure\n");
|
||||
warning (_("Error reading in control structure."));
|
||||
do_cleanups (old_chain);
|
||||
return NULL;
|
||||
}
|
||||
|
@ -263,7 +263,7 @@ execute_user_command (struct cmd_list_element *c, char *args)
|
|||
return;
|
||||
|
||||
if (++user_call_depth > max_user_call_depth)
|
||||
error ("Max user call depth exceeded -- command aborted\n");
|
||||
error (_("Max user call depth exceeded -- command aborted."));
|
||||
|
||||
old_chain = make_cleanup (do_restore_user_call_depth, &user_call_depth);
|
||||
|
||||
|
@ -276,7 +276,7 @@ execute_user_command (struct cmd_list_element *c, char *args)
|
|||
ret = execute_control_command (cmdlines);
|
||||
if (ret != simple_control && ret != break_control)
|
||||
{
|
||||
warning ("Error in control structure.\n");
|
||||
warning (_("Error in control structure."));
|
||||
break;
|
||||
}
|
||||
cmdlines = cmdlines->next;
|
||||
|
@ -424,7 +424,7 @@ execute_control_command (struct command_line *cmd)
|
|||
}
|
||||
|
||||
default:
|
||||
warning ("Invalid control type in command structure.");
|
||||
warning (_("Invalid control type in command structure."));
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -512,7 +512,7 @@ setup_user_args (char *p)
|
|||
|
||||
if (arg_count >= MAXUSERARGS)
|
||||
{
|
||||
error ("user defined function may only have %d arguments.\n",
|
||||
error (_("user defined function may only have %d arguments."),
|
||||
MAXUSERARGS);
|
||||
return old_chain;
|
||||
}
|
||||
|
@ -598,7 +598,7 @@ insert_args (char *line)
|
|||
|
||||
if (i >= user_args->count)
|
||||
{
|
||||
error ("Missing argument %d in user function.\n", i);
|
||||
error (_("Missing argument %d in user function."), i);
|
||||
return NULL;
|
||||
}
|
||||
len += user_args->a[i].len;
|
||||
|
@ -679,7 +679,7 @@ read_next_line (struct command_line **command)
|
|||
int i = 0;
|
||||
|
||||
if (control_level >= 254)
|
||||
error ("Control nesting too deep!\n");
|
||||
error (_("Control nesting too deep!"));
|
||||
|
||||
/* Set a prompt based on the nesting of the control commands. */
|
||||
if (instream == stdin || (instream == 0 && deprecated_readline_hook != NULL))
|
||||
|
@ -794,16 +794,10 @@ recurse_read_control_structure (struct command_line *current_cmd)
|
|||
|
||||
/* Sanity checks. */
|
||||
if (current_cmd->control_type == simple_control)
|
||||
{
|
||||
error ("Recursed on a simple control type\n");
|
||||
return invalid_control;
|
||||
}
|
||||
error (_("Recursed on a simple control type."));
|
||||
|
||||
if (current_body > current_cmd->body_count)
|
||||
{
|
||||
error ("Allocated body is smaller than this command type needs\n");
|
||||
return invalid_control;
|
||||
}
|
||||
error (_("Allocated body is smaller than this command type needs."));
|
||||
|
||||
/* Read lines from the input stream and build control structures. */
|
||||
while (1)
|
||||
|
@ -1058,7 +1052,7 @@ validate_comname (char *comname)
|
|||
while (*p)
|
||||
{
|
||||
if (!isalnum (*p) && *p != '-' && *p != '_')
|
||||
error ("Junk in argument list: \"%s\"", p);
|
||||
error (_("Junk in argument list: \"%s\""), p);
|
||||
p++;
|
||||
}
|
||||
}
|
||||
|
@ -1107,7 +1101,7 @@ define_command (char *comname, int from_tty)
|
|||
else
|
||||
q = query ("Really redefine built-in command \"%s\"? ", c->name);
|
||||
if (!q)
|
||||
error ("Command \"%s\" not redefined.", c->name);
|
||||
error (_("Command \"%s\" not redefined."), c->name);
|
||||
}
|
||||
|
||||
/* If this new command is a hook, then mark the command which it
|
||||
|
@ -1134,10 +1128,10 @@ define_command (char *comname, int from_tty)
|
|||
hookc = 0;
|
||||
if (!hookc)
|
||||
{
|
||||
warning ("Your new `%s' command does not hook any existing command.",
|
||||
warning (_("Your new `%s' command does not hook any existing command."),
|
||||
comname);
|
||||
if (!query ("Proceed? "))
|
||||
error ("Not confirmed.");
|
||||
error (_("Not confirmed."));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1194,7 +1188,7 @@ document_command (char *comname, int from_tty)
|
|||
c = lookup_cmd (&tem, cmdlist, "", 0, 1);
|
||||
|
||||
if (c->class != class_user)
|
||||
error ("Command \"%s\" is built-in.", comname);
|
||||
error (_("Command \"%s\" is built-in."), comname);
|
||||
|
||||
sprintf (tmpbuf, "Type documentation for \"%s\".", comname);
|
||||
doclines = read_command_lines (tmpbuf, from_tty);
|
||||
|
|
|
@ -56,7 +56,7 @@ parse_auto_binary_operation (const char *arg)
|
|||
|| (strncmp (arg, "-1", length) == 0 && length > 1))
|
||||
return AUTO_BOOLEAN_AUTO;
|
||||
}
|
||||
error ("\"on\", \"off\" or \"auto\" expected.");
|
||||
error (_("\"on\", \"off\" or \"auto\" expected."));
|
||||
return AUTO_BOOLEAN_AUTO; /* pacify GCC */
|
||||
}
|
||||
|
||||
|
@ -85,7 +85,7 @@ parse_binary_operation (char *arg)
|
|||
return 0;
|
||||
else
|
||||
{
|
||||
error ("\"on\" or \"off\" expected.");
|
||||
error (_("\"on\" or \"off\" expected."));
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@ -183,7 +183,7 @@ do_setshow_command (char *arg, int from_tty, struct cmd_list_element *c)
|
|||
if (val == 0)
|
||||
*(int *) c->var = INT_MAX;
|
||||
else if (val >= INT_MAX)
|
||||
error ("integer %u out of range", val);
|
||||
error (_("integer %u out of range"), val);
|
||||
else
|
||||
*(int *) c->var = val;
|
||||
break;
|
||||
|
@ -213,7 +213,7 @@ do_setshow_command (char *arg, int from_tty, struct cmd_list_element *c)
|
|||
strcat (msg, c->enums[i]);
|
||||
}
|
||||
strcat (msg, ".");
|
||||
error ("%s", msg);
|
||||
error (("%s"), msg);
|
||||
}
|
||||
|
||||
p = strchr (arg, ' ');
|
||||
|
@ -241,16 +241,16 @@ do_setshow_command (char *arg, int from_tty, struct cmd_list_element *c)
|
|||
}
|
||||
|
||||
if (nmatches <= 0)
|
||||
error ("Undefined item: \"%s\".", arg);
|
||||
error (_("Undefined item: \"%s\"."), arg);
|
||||
|
||||
if (nmatches > 1)
|
||||
error ("Ambiguous item \"%s\".", arg);
|
||||
error (_("Ambiguous item \"%s\"."), arg);
|
||||
|
||||
*(const char **) c->var = match;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
error ("gdb internal error: bad var_type in do_setshow_command");
|
||||
error (_("gdb internal error: bad var_type in do_setshow_command"));
|
||||
}
|
||||
}
|
||||
else if (c->type == show_cmd)
|
||||
|
@ -326,7 +326,7 @@ do_setshow_command (char *arg, int from_tty, struct cmd_list_element *c)
|
|||
break;
|
||||
|
||||
default:
|
||||
error ("gdb internal error: bad var_type in do_setshow_command");
|
||||
error (_("gdb internal error: bad var_type in do_setshow_command"));
|
||||
}
|
||||
|
||||
|
||||
|
@ -363,7 +363,7 @@ do_setshow_command (char *arg, int from_tty, struct cmd_list_element *c)
|
|||
do_cleanups (old_chain);
|
||||
}
|
||||
else
|
||||
error ("gdb internal error: bad cmd_type in do_setshow_command");
|
||||
error (_("gdb internal error: bad cmd_type in do_setshow_command"));
|
||||
c->func (c, NULL, from_tty);
|
||||
if (c->type == set_cmd && deprecated_set_hook)
|
||||
deprecated_set_hook (c);
|
||||
|
|
|
@ -62,7 +62,7 @@ extern void coff_solib_create_inferior_hook (void); /* solib.c */
|
|||
Presently, this functionality is not implemented.
|
||||
*/
|
||||
#define SOLIB_CREATE_CATCH_LOAD_HOOK(pid, tempflag, filename, cond_string) \
|
||||
error("catch of library loads/unloads not yet implemented on this platform")
|
||||
error (_("catch of library loads/unloads not yet implemented on this platform"))
|
||||
|
||||
/* This function is called by the "catch unload" command. It allows
|
||||
the debugger to be notified by the dynamic linker when a specified
|
||||
|
@ -71,7 +71,7 @@ extern void coff_solib_create_inferior_hook (void); /* solib.c */
|
|||
Presently, this functionality is not implemented.
|
||||
*/
|
||||
#define SOLIB_CREATE_CATCH_UNLOAD_HOOK(pid, tempflag, filename, cond_string) \
|
||||
error("catch of library loads/unloads not yet implemented on this platform")
|
||||
error (_("catch of library loads/unloads not yet implemented on this platform"))
|
||||
|
||||
/* This function returns TRUE if the dynamic linker has just reported
|
||||
a load of a library.
|
||||
|
|
|
@ -576,7 +576,7 @@ coff_symfile_read (struct objfile *objfile, int mainline)
|
|||
val = init_lineno (abfd, info->min_lineno_offset,
|
||||
info->max_lineno_offset - info->min_lineno_offset);
|
||||
if (val < 0)
|
||||
error (_("\"%s\": error reading line numbers\n"), name);
|
||||
error (_("\"%s\": error reading line numbers."), name);
|
||||
}
|
||||
|
||||
/* Now read the string table, all at once. */
|
||||
|
@ -969,7 +969,7 @@ coff_symtab_read (long symtab_offset, unsigned int nsyms,
|
|||
else if (DEPRECATED_STREQ (cs->c_name, ".ef"))
|
||||
{
|
||||
if (!within_function)
|
||||
error (_("Bad coff function information\n"));
|
||||
error (_("Bad coff function information."));
|
||||
/* the value of .ef is the address of epilogue code;
|
||||
not useful for gdb. */
|
||||
/* { main_aux.x_sym.x_misc.x_lnsz.x_lnno
|
||||
|
|
|
@ -101,7 +101,7 @@ fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, int which,
|
|||
}
|
||||
|
||||
if (bad_reg >= 0)
|
||||
error ("Register %s not found in core file.", REGISTER_NAME (bad_reg));
|
||||
error (_("Register %s not found in core file."), REGISTER_NAME (bad_reg));
|
||||
}
|
||||
|
||||
|
||||
|
@ -116,7 +116,7 @@ register_addr (int regno, CORE_ADDR blockend)
|
|||
CORE_ADDR addr;
|
||||
|
||||
if (regno < 0 || regno >= NUM_REGS)
|
||||
error ("Invalid register number %d.", regno);
|
||||
error (_("Invalid register number %d."), regno);
|
||||
|
||||
REGISTER_U_ADDR (addr, blockend, regno);
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, int which,
|
|||
{
|
||||
case 0:
|
||||
if (core_reg_size != sizeof (gregset))
|
||||
warning ("Wrong size gregset in core file.");
|
||||
warning (_("Wrong size gregset in core file."));
|
||||
else
|
||||
{
|
||||
memcpy (&gregset, core_reg_sect, sizeof (gregset));
|
||||
|
@ -79,7 +79,7 @@ fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, int which,
|
|||
|
||||
case 2:
|
||||
if (core_reg_size != sizeof (fpregset))
|
||||
warning ("Wrong size fpregset in core file.");
|
||||
warning (_("Wrong size fpregset in core file."));
|
||||
else
|
||||
{
|
||||
memcpy (&fpregset, core_reg_sect, sizeof (fpregset));
|
||||
|
|
|
@ -73,7 +73,7 @@ core_file_command (char *filename, int from_tty)
|
|||
|
||||
t = find_core_target ();
|
||||
if (t == NULL)
|
||||
error ("GDB can't read core files on this machine.");
|
||||
error (_("GDB can't read core files on this machine."));
|
||||
|
||||
if (!filename)
|
||||
(t->to_detach) (filename, from_tty);
|
||||
|
@ -181,9 +181,9 @@ validate_files (void)
|
|||
if (exec_bfd && core_bfd)
|
||||
{
|
||||
if (!core_file_matches_executable_p (core_bfd, exec_bfd))
|
||||
warning ("core file may not match specified executable file.");
|
||||
warning (_("core file may not match specified executable file."));
|
||||
else if (bfd_get_mtime (exec_bfd) > bfd_get_mtime (core_bfd))
|
||||
warning ("exec file is newer than core file.");
|
||||
warning (_("exec file is newer than core file."));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -199,8 +199,8 @@ get_exec_file (int err)
|
|||
if (!err)
|
||||
return NULL;
|
||||
|
||||
error ("No executable file specified.\n\
|
||||
Use the \"file\" or \"exec-file\" command.");
|
||||
error (_("No executable file specified.\n\
|
||||
Use the \"file\" or \"exec-file\" command."));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -154,12 +154,12 @@ sniff_core_bfd (bfd *abfd)
|
|||
}
|
||||
if (matches > 1)
|
||||
{
|
||||
warning ("\"%s\": ambiguous core format, %d handlers match",
|
||||
warning (_("\"%s\": ambiguous core format, %d handlers match"),
|
||||
bfd_get_filename (abfd), matches);
|
||||
}
|
||||
else if (matches == 0)
|
||||
{
|
||||
warning ("\"%s\": no core file handler recognizes format, using default",
|
||||
warning (_("\"%s\": no core file handler recognizes format, using default"),
|
||||
bfd_get_filename (abfd));
|
||||
}
|
||||
if (yummy == NULL)
|
||||
|
@ -216,7 +216,7 @@ core_close (int quitting)
|
|||
|
||||
name = bfd_get_filename (core_bfd);
|
||||
if (!bfd_close (core_bfd))
|
||||
warning ("cannot close \"%s\": %s",
|
||||
warning (_("cannot close \"%s\": %s"),
|
||||
name, bfd_errmsg (bfd_get_error ()));
|
||||
xfree (name);
|
||||
core_bfd = NULL;
|
||||
|
@ -290,9 +290,10 @@ core_open (char *filename, int from_tty)
|
|||
target_preopen (from_tty);
|
||||
if (!filename)
|
||||
{
|
||||
error (core_bfd ?
|
||||
"No core file specified. (Use `detach' to stop debugging a core file.)"
|
||||
: "No core file specified.");
|
||||
if (core_bfd)
|
||||
error (_("No core file specified. (Use `detach' to stop debugging a core file.)"));
|
||||
else
|
||||
error (_("No core file specified."));
|
||||
}
|
||||
|
||||
filename = tilde_expand (filename);
|
||||
|
@ -326,7 +327,7 @@ core_open (char *filename, int from_tty)
|
|||
on error it does not free all the storage associated with the
|
||||
bfd). */
|
||||
make_cleanup_bfd_close (temp_bfd);
|
||||
error ("\"%s\" is not a core dump: %s",
|
||||
error (_("\"%s\" is not a core dump: %s"),
|
||||
filename, bfd_errmsg (bfd_get_error ()));
|
||||
}
|
||||
|
||||
|
@ -353,7 +354,7 @@ core_open (char *filename, int from_tty)
|
|||
/* Find the data section */
|
||||
if (build_section_table (core_bfd, &core_ops.to_sections,
|
||||
&core_ops.to_sections_end))
|
||||
error ("\"%s\": Can't find sections: %s",
|
||||
error (_("\"%s\": Can't find sections: %s"),
|
||||
bfd_get_filename (core_bfd), bfd_errmsg (bfd_get_error ()));
|
||||
|
||||
/* If we have no exec file, try to set the architecture from the
|
||||
|
@ -417,7 +418,7 @@ static void
|
|||
core_detach (char *args, int from_tty)
|
||||
{
|
||||
if (args)
|
||||
error ("Too many arguments");
|
||||
error (_("Too many arguments"));
|
||||
unpush_target (&core_ops);
|
||||
reinit_frame_cache ();
|
||||
if (from_tty)
|
||||
|
@ -460,7 +461,7 @@ get_core_register_section (char *name,
|
|||
if (! section)
|
||||
{
|
||||
if (required)
|
||||
warning ("Couldn't find %s registers in core file.\n", human_name);
|
||||
warning (_("Couldn't find %s registers in core file."), human_name);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -469,7 +470,7 @@ get_core_register_section (char *name,
|
|||
if (! bfd_get_section_contents (core_bfd, section, contents,
|
||||
(file_ptr) 0, size))
|
||||
{
|
||||
warning ("Couldn't read %s registers from `%s' section in core file.\n",
|
||||
warning (_("Couldn't read %s registers from `%s' section in core file."),
|
||||
human_name, name);
|
||||
return;
|
||||
}
|
||||
|
@ -482,7 +483,7 @@ get_core_register_section (char *name,
|
|||
if (regset == NULL)
|
||||
{
|
||||
if (required)
|
||||
warning ("Couldn't recognize %s registers in core file.\n",
|
||||
warning (_("Couldn't recognize %s registers in core file."),
|
||||
human_name);
|
||||
return;
|
||||
}
|
||||
|
@ -570,7 +571,7 @@ core_xfer_partial (struct target_ops *ops, enum target_object object,
|
|||
&& !bfd_get_section_contents (core_bfd, section, readbuf,
|
||||
(file_ptr) offset, size))
|
||||
{
|
||||
warning ("Couldn't read NT_AUXV note in core file.");
|
||||
warning (_("Couldn't read NT_AUXV note in core file."));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -602,7 +603,7 @@ core_xfer_partial (struct target_ops *ops, enum target_object object,
|
|||
&& !bfd_get_section_contents (core_bfd, section, readbuf,
|
||||
(file_ptr) offset, size))
|
||||
{
|
||||
warning ("Couldn't read StackGhost cookie in core file.");
|
||||
warning (_("Couldn't read StackGhost cookie in core file."));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
12
gdb/cp-abi.c
12
gdb/cp-abi.c
|
@ -41,7 +41,7 @@ enum ctor_kinds
|
|||
is_constructor_name (const char *name)
|
||||
{
|
||||
if ((current_cp_abi.is_constructor_name) == NULL)
|
||||
error ("ABI doesn't define required function is_constructor_name");
|
||||
error (_("ABI doesn't define required function is_constructor_name"));
|
||||
return (*current_cp_abi.is_constructor_name) (name);
|
||||
}
|
||||
|
||||
|
@ -49,7 +49,7 @@ enum dtor_kinds
|
|||
is_destructor_name (const char *name)
|
||||
{
|
||||
if ((current_cp_abi.is_destructor_name) == NULL)
|
||||
error ("ABI doesn't define required function is_destructor_name");
|
||||
error (_("ABI doesn't define required function is_destructor_name"));
|
||||
return (*current_cp_abi.is_destructor_name) (name);
|
||||
}
|
||||
|
||||
|
@ -57,7 +57,7 @@ int
|
|||
is_vtable_name (const char *name)
|
||||
{
|
||||
if ((current_cp_abi.is_vtable_name) == NULL)
|
||||
error ("ABI doesn't define required function is_vtable_name");
|
||||
error (_("ABI doesn't define required function is_vtable_name"));
|
||||
return (*current_cp_abi.is_vtable_name) (name);
|
||||
}
|
||||
|
||||
|
@ -65,7 +65,7 @@ int
|
|||
is_operator_name (const char *name)
|
||||
{
|
||||
if ((current_cp_abi.is_operator_name) == NULL)
|
||||
error ("ABI doesn't define required function is_operator_name");
|
||||
error (_("ABI doesn't define required function is_operator_name"));
|
||||
return (*current_cp_abi.is_operator_name) (name);
|
||||
}
|
||||
|
||||
|
@ -74,7 +74,7 @@ baseclass_offset (struct type *type, int index, const bfd_byte *valaddr,
|
|||
CORE_ADDR address)
|
||||
{
|
||||
if (current_cp_abi.baseclass_offset == NULL)
|
||||
error ("ABI doesn't define required function baseclass_offset");
|
||||
error (_("ABI doesn't define required function baseclass_offset"));
|
||||
return (*current_cp_abi.baseclass_offset) (type, index, valaddr, address);
|
||||
}
|
||||
|
||||
|
@ -219,7 +219,7 @@ set_cp_abi_cmd (char *args, int from_tty)
|
|||
}
|
||||
|
||||
if (!switch_to_cp_abi (args))
|
||||
error ("Could not find \"%s\" in ABI list", args);
|
||||
error (_("Could not find \"%s\" in ABI list"), args);
|
||||
}
|
||||
|
||||
/* Show the currently selected C++ ABI. */
|
||||
|
|
|
@ -684,13 +684,13 @@ cp_lookup_rtti_type (const char *name, struct block *block)
|
|||
|
||||
if (rtti_sym == NULL)
|
||||
{
|
||||
warning ("RTTI symbol not found for class '%s'", name);
|
||||
warning (_("RTTI symbol not found for class '%s'"), name);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (SYMBOL_CLASS (rtti_sym) != LOC_TYPEDEF)
|
||||
{
|
||||
warning ("RTTI symbol for class '%s' is not a type", name);
|
||||
warning (_("RTTI symbol for class '%s' is not a type"), name);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -705,10 +705,10 @@ cp_lookup_rtti_type (const char *name, struct block *block)
|
|||
symbols for namespaces with the same name as the struct.
|
||||
This warning is an indication of a bug in the lookup order
|
||||
or a bug in the way that the symbol tables are populated. */
|
||||
warning ("RTTI symbol for class '%s' is a namespace", name);
|
||||
warning (_("RTTI symbol for class '%s' is a namespace"), name);
|
||||
return NULL;
|
||||
default:
|
||||
warning ("RTTI symbol for class '%s' has bad type", name);
|
||||
warning (_("RTTI symbol for class '%s' has bad type"), name);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -118,7 +118,7 @@ cp_print_class_method (const bfd_byte *valaddr,
|
|||
fputs_filtered ("?? <not supported with HP aCC>", stream);
|
||||
return;
|
||||
}
|
||||
error ("invalid pointer to member function");
|
||||
error (_("invalid pointer to member function"));
|
||||
}
|
||||
len = TYPE_NFN_FIELDS (domain);
|
||||
for (i = 0; i < len; i++)
|
||||
|
@ -545,8 +545,8 @@ cp_print_value (struct type *type, struct type *real_type,
|
|||
find_rt_vbase_offset (type, TYPE_BASECLASS (type, i),
|
||||
valaddr, offset, &boffset, &skip);
|
||||
if (skip >= 0)
|
||||
error ("Virtual base class offset not found from vtable while"
|
||||
" printing");
|
||||
error (_("Virtual base class offset not found from vtable while"
|
||||
" printing"));
|
||||
base_valaddr = valaddr;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -283,7 +283,7 @@ cris_sigcontext_addr (struct frame_info *next_frame)
|
|||
return (sp + 156);
|
||||
}
|
||||
|
||||
error ("Couldn't recognize signal trampoline.");
|
||||
error (_("Couldn't recognize signal trampoline."));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1607,7 +1607,7 @@ crisv32_register_type (struct gdbarch *gdbarch, int regno)
|
|||
{
|
||||
/* Invalid (unimplemented) register. Should not happen as there are
|
||||
no unimplemented CRISv32 registers. */
|
||||
warning ("crisv32_register_type: unknown regno %d", regno);
|
||||
warning (_("crisv32_register_type: unknown regno %d"), regno);
|
||||
return builtin_type_int0;
|
||||
}
|
||||
}
|
||||
|
@ -1639,7 +1639,7 @@ cris_store_return_value (struct type *type, struct regcache *regcache,
|
|||
regcache_cooked_write_unsigned (regcache, ARG2_REGNUM, val);
|
||||
}
|
||||
else
|
||||
error ("cris_store_return_value: type length too large.");
|
||||
error (_("cris_store_return_value: type length too large."));
|
||||
}
|
||||
|
||||
/* Return the name of register regno as a string. Return NULL for an invalid or
|
||||
|
@ -1759,7 +1759,7 @@ cris_dwarf2_reg_to_regnum (int reg)
|
|||
regnum = cris_dwarf_regmap[reg];
|
||||
|
||||
if (regnum == -1)
|
||||
warning ("Unmapped DWARF Register #%d encountered\n", reg);
|
||||
warning (_("Unmapped DWARF Register #%d encountered."), reg);
|
||||
|
||||
return regnum;
|
||||
}
|
||||
|
@ -1807,7 +1807,7 @@ cris_extract_return_value (struct type *type, struct regcache *regcache,
|
|||
store_unsigned_integer ((char *)valbuf + 4, len - 4, val);
|
||||
}
|
||||
else
|
||||
error ("cris_extract_return_value: type length too large");
|
||||
error (_("cris_extract_return_value: type length too large"));
|
||||
}
|
||||
|
||||
/* Handle the CRIS return value convention. */
|
||||
|
@ -2055,7 +2055,7 @@ cris_software_single_step (enum target_signal ignore, int insert_breakpoints)
|
|||
{
|
||||
/* Could not find a target. Things are likely to go downhill
|
||||
from here. */
|
||||
warning ("CRIS software single step could not find a step target.");
|
||||
warning (_("CRIS software single step could not find a step target."));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -3832,7 +3832,7 @@ fetch_core_registers (char *core_reg_sect, unsigned core_reg_size,
|
|||
if (core_reg_size != sizeof (elf_gregset_t)
|
||||
&& core_reg_size != sizeof (crisv32_elf_gregset_t))
|
||||
{
|
||||
warning ("wrong size gregset struct in core file");
|
||||
warning (_("wrong size gregset struct in core file"));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -221,7 +221,7 @@ find_text_range (bfd * sym_bfd, struct objfile *objfile)
|
|||
}
|
||||
|
||||
if (!found_any)
|
||||
error ("Can't find any code sections in symbol file");
|
||||
error (_("Can't find any code sections in symbol file"));
|
||||
|
||||
DBX_TEXT_ADDR (objfile) = start;
|
||||
DBX_TEXT_SIZE (objfile) = end - start;
|
||||
|
@ -643,7 +643,7 @@ dbx_symfile_init (struct objfile *objfile)
|
|||
|
||||
text_sect = bfd_get_section_by_name (sym_bfd, ".text");
|
||||
if (!text_sect)
|
||||
error ("Can't find .text section in symbol file");
|
||||
error (_("Can't find .text section in symbol file"));
|
||||
DBX_TEXT_ADDR (objfile) = bfd_section_vma (sym_bfd, text_sect);
|
||||
DBX_TEXT_SIZE (objfile) = bfd_section_size (sym_bfd, text_sect);
|
||||
|
||||
|
@ -705,7 +705,7 @@ dbx_symfile_init (struct objfile *objfile)
|
|||
|
||||
if (DBX_STRINGTAB_SIZE (objfile) < sizeof (size_temp)
|
||||
|| DBX_STRINGTAB_SIZE (objfile) > bfd_get_size (sym_bfd))
|
||||
error ("ridiculous string table size (%d bytes).",
|
||||
error (_("ridiculous string table size (%d bytes)."),
|
||||
DBX_STRINGTAB_SIZE (objfile));
|
||||
|
||||
DBX_STRINGTAB (objfile) =
|
||||
|
@ -829,7 +829,7 @@ fill_symbuf (bfd *sym_bfd)
|
|||
if (nbytes < 0)
|
||||
perror_with_name (bfd_get_filename (sym_bfd));
|
||||
else if (nbytes == 0)
|
||||
error ("Premature end of file reading symbol table");
|
||||
error (_("Premature end of file reading symbol table"));
|
||||
symbuf_end = nbytes / symbol_size;
|
||||
symbuf_idx = 0;
|
||||
symbuf_left -= nbytes;
|
||||
|
@ -1417,7 +1417,7 @@ read_dbx_symtab (struct objfile *objfile)
|
|||
next_file_string_table_offset =
|
||||
file_string_table_offset + nlist.n_value;
|
||||
if (next_file_string_table_offset < file_string_table_offset)
|
||||
error ("string table offset backs up at %d", symnum);
|
||||
error (_("string table offset backs up at %d"), symnum);
|
||||
/* FIXME -- replace error() with complaint. */
|
||||
continue;
|
||||
}
|
||||
|
@ -2543,7 +2543,7 @@ read_ofile_symtab (struct partial_symtab *pst)
|
|||
fill_symbuf (abfd);
|
||||
bufp = &symbuf[symbuf_idx];
|
||||
if (bfd_h_get_8 (abfd, bufp->e_type) != N_SO)
|
||||
error ("First symbol in segment of executable not a source symbol");
|
||||
error (_("First symbol in segment of executable not a source symbol"));
|
||||
|
||||
max_symnum = sym_size / symbol_size;
|
||||
|
||||
|
@ -3279,7 +3279,7 @@ coffstab_build_psymtabs (struct objfile *objfile, int mainline,
|
|||
DBX_STRINGTAB_SIZE (objfile) = stabstrsize;
|
||||
|
||||
if (stabstrsize > bfd_get_size (sym_bfd))
|
||||
error ("ridiculous string table size: %d bytes", stabstrsize);
|
||||
error (_("ridiculous string table size: %d bytes"), stabstrsize);
|
||||
DBX_STRINGTAB (objfile) = (char *)
|
||||
obstack_alloc (&objfile->objfile_obstack, stabstrsize + 1);
|
||||
OBJSTAT (objfile, sz_strtab += stabstrsize + 1);
|
||||
|
@ -3376,7 +3376,7 @@ elfstab_build_psymtabs (struct objfile *objfile, int mainline,
|
|||
DBX_STAB_SECTION (objfile) = stabsect;
|
||||
|
||||
if (stabstrsize > bfd_get_size (sym_bfd))
|
||||
error ("ridiculous string table size: %d bytes", stabstrsize);
|
||||
error (_("ridiculous string table size: %d bytes"), stabstrsize);
|
||||
DBX_STRINGTAB (objfile) = (char *)
|
||||
obstack_alloc (&objfile->objfile_obstack, stabstrsize + 1);
|
||||
OBJSTAT (objfile, sz_strtab += stabstrsize + 1);
|
||||
|
@ -3450,7 +3450,7 @@ stabsect_build_psymtabs (struct objfile *objfile, int mainline, char *stab_name,
|
|||
return;
|
||||
|
||||
if (!stabstrsect)
|
||||
error ("stabsect_build_psymtabs: Found stabs (%s), but not string section (%s)",
|
||||
error (_("stabsect_build_psymtabs: Found stabs (%s), but not string section (%s)"),
|
||||
stab_name, stabstr_name);
|
||||
|
||||
objfile->deprecated_sym_stab_info = (struct dbx_symfile_info *)
|
||||
|
@ -3459,7 +3459,7 @@ stabsect_build_psymtabs (struct objfile *objfile, int mainline, char *stab_name,
|
|||
|
||||
text_sect = bfd_get_section_by_name (sym_bfd, text_name);
|
||||
if (!text_sect)
|
||||
error ("Can't find %s section in symbol file", text_name);
|
||||
error (_("Can't find %s section in symbol file"), text_name);
|
||||
DBX_TEXT_ADDR (objfile) = bfd_section_vma (sym_bfd, text_sect);
|
||||
DBX_TEXT_SIZE (objfile) = bfd_section_size (sym_bfd, text_sect);
|
||||
|
||||
|
@ -3470,7 +3470,7 @@ stabsect_build_psymtabs (struct objfile *objfile, int mainline, char *stab_name,
|
|||
DBX_SYMTAB_OFFSET (objfile) = stabsect->filepos; /* XXX - FIXME: POKING INSIDE BFD DATA STRUCTURES */
|
||||
|
||||
if (DBX_STRINGTAB_SIZE (objfile) > bfd_get_size (sym_bfd))
|
||||
error ("ridiculous string table size: %d bytes", DBX_STRINGTAB_SIZE (objfile));
|
||||
error (_("ridiculous string table size: %d bytes"), DBX_STRINGTAB_SIZE (objfile));
|
||||
DBX_STRINGTAB (objfile) = (char *)
|
||||
obstack_alloc (&objfile->objfile_obstack, DBX_STRINGTAB_SIZE (objfile) + 1);
|
||||
OBJSTAT (objfile, sz_strtab += DBX_STRINGTAB_SIZE (objfile) + 1);
|
||||
|
|
|
@ -133,7 +133,7 @@ set_demangling_command (char *ignore, int from_tty, struct cmd_list_element *c)
|
|||
savestring (
|
||||
libiberty_demanglers[0].demangling_style_name,
|
||||
strlen (libiberty_demanglers[0].demangling_style_name));
|
||||
warning ("`%s' style demangling chosen as the default.\n",
|
||||
warning (_("`%s' style demangling chosen as the default."),
|
||||
current_demangling_style_string);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -699,7 +699,7 @@ floatformat_from_length (int len)
|
|||
else
|
||||
format = NULL;
|
||||
if (format == NULL)
|
||||
error ("Unrecognized %d-bit floating-point type.",
|
||||
error (_("Unrecognized %d-bit floating-point type."),
|
||||
len * TARGET_CHAR_BIT);
|
||||
return format;
|
||||
}
|
||||
|
@ -833,7 +833,7 @@ convert_typed_floating (const void *from, const struct type *from_type,
|
|||
assumption might be wrong on targets that support
|
||||
floating-point types that only differ in endianness for
|
||||
example. So we warn instead, and zero out the target buffer. */
|
||||
warning ("Can't convert floating-point number to desired type.");
|
||||
warning (_("Can't convert floating-point number to desired type."));
|
||||
memset (to, 0, TYPE_LENGTH (to_type));
|
||||
}
|
||||
else if (from_fmt == to_fmt)
|
||||
|
|
|
@ -127,7 +127,7 @@ load_srec (struct serial *desc, const char *file, bfd_vma load_offset,
|
|||
if (deprecated_ui_load_progress_hook)
|
||||
if (deprecated_ui_load_progress_hook (section_name,
|
||||
(unsigned long) i))
|
||||
error ("Canceled the download");
|
||||
error (_("Canceled the download"));
|
||||
}
|
||||
while (waitack != NULL && !waitack ());
|
||||
|
||||
|
@ -141,7 +141,7 @@ load_srec (struct serial *desc, const char *file, bfd_vma load_offset,
|
|||
if (deprecated_ui_load_progress_hook)
|
||||
if (deprecated_ui_load_progress_hook (section_name,
|
||||
(unsigned long) i))
|
||||
error ("Canceled the download");
|
||||
error (_("Canceled the download"));
|
||||
putchar_unfiltered ('\n');
|
||||
}
|
||||
|
||||
|
|
|
@ -652,7 +652,7 @@ ignore_packet (void)
|
|||
break;
|
||||
}
|
||||
if (len == 8)
|
||||
error ("Packet header byte not found; %02x seen instead.", c);
|
||||
error (_("Packet header byte not found; %02x seen instead."), c);
|
||||
|
||||
/* Read the packet type and length. */
|
||||
c = debug_readchar (1); /* type */
|
||||
|
@ -885,9 +885,9 @@ r3900_load (char *filename, int from_tty)
|
|||
filename = get_exec_file (1);
|
||||
abfd = bfd_openr (filename, 0);
|
||||
if (!abfd)
|
||||
error ("Unable to open file %s\n", filename);
|
||||
error (_("Unable to open file %s."), filename);
|
||||
if (bfd_check_format (abfd, bfd_object) == 0)
|
||||
error ("File is not an object file\n");
|
||||
error (_("File is not an object file."));
|
||||
|
||||
/* Output the "vconsi" command to get the monitor in the communication
|
||||
state where it will accept a load command. This will cause
|
||||
|
|
|
@ -87,7 +87,7 @@ void
|
|||
dwarf_expr_pop (struct dwarf_expr_context *ctx)
|
||||
{
|
||||
if (ctx->stack_len <= 0)
|
||||
error ("dwarf expression stack underflow");
|
||||
error (_("dwarf expression stack underflow"));
|
||||
ctx->stack_len--;
|
||||
}
|
||||
|
||||
|
@ -97,7 +97,7 @@ CORE_ADDR
|
|||
dwarf_expr_fetch (struct dwarf_expr_context *ctx, int n)
|
||||
{
|
||||
if (ctx->stack_len < n)
|
||||
error ("Asked for position %d of stack, stack only has %d elements on it\n",
|
||||
error (_("Asked for position %d of stack, stack only has %d elements on it."),
|
||||
n, ctx->stack_len);
|
||||
return ctx->stack[ctx->stack_len - (1 + n)];
|
||||
|
||||
|
@ -150,7 +150,7 @@ read_uleb128 (unsigned char *buf, unsigned char *buf_end, ULONGEST * r)
|
|||
while (1)
|
||||
{
|
||||
if (buf >= buf_end)
|
||||
error ("read_uleb128: Corrupted DWARF expression.");
|
||||
error (_("read_uleb128: Corrupted DWARF expression."));
|
||||
|
||||
byte = *buf++;
|
||||
result |= (byte & 0x7f) << shift;
|
||||
|
@ -176,7 +176,7 @@ read_sleb128 (unsigned char *buf, unsigned char *buf_end, LONGEST * r)
|
|||
while (1)
|
||||
{
|
||||
if (buf >= buf_end)
|
||||
error ("read_sleb128: Corrupted DWARF expression.");
|
||||
error (_("read_sleb128: Corrupted DWARF expression."));
|
||||
|
||||
byte = *buf++;
|
||||
result |= (byte & 0x7f) << shift;
|
||||
|
@ -201,7 +201,7 @@ dwarf2_read_address (unsigned char *buf, unsigned char *buf_end, int *bytes_read
|
|||
CORE_ADDR result;
|
||||
|
||||
if (buf_end - buf < TARGET_ADDR_BIT / TARGET_CHAR_BIT)
|
||||
error ("dwarf2_read_address: Corrupted DWARF expression.");
|
||||
error (_("dwarf2_read_address: Corrupted DWARF expression."));
|
||||
|
||||
*bytes_read = TARGET_ADDR_BIT / TARGET_CHAR_BIT;
|
||||
/* NOTE: cagney/2003-05-22: This extract is assuming that a DWARF 2
|
||||
|
@ -383,8 +383,8 @@ execute_stack_op (struct dwarf_expr_context *ctx, unsigned char *op_ptr,
|
|||
case DW_OP_reg30:
|
||||
case DW_OP_reg31:
|
||||
if (op_ptr != op_end && *op_ptr != DW_OP_piece)
|
||||
error ("DWARF-2 expression error: DW_OP_reg operations must be "
|
||||
"used either alone or in conjuction with DW_OP_piece.");
|
||||
error (_("DWARF-2 expression error: DW_OP_reg operations must be "
|
||||
"used either alone or in conjuction with DW_OP_piece."));
|
||||
|
||||
result = op - DW_OP_reg0;
|
||||
ctx->in_reg = 1;
|
||||
|
@ -394,8 +394,8 @@ execute_stack_op (struct dwarf_expr_context *ctx, unsigned char *op_ptr,
|
|||
case DW_OP_regx:
|
||||
op_ptr = read_uleb128 (op_ptr, op_end, ®);
|
||||
if (op_ptr != op_end && *op_ptr != DW_OP_piece)
|
||||
error ("DWARF-2 expression error: DW_OP_reg operations must be "
|
||||
"used either alone or in conjuction with DW_OP_piece.");
|
||||
error (_("DWARF-2 expression error: DW_OP_reg operations must be "
|
||||
"used either alone or in conjuction with DW_OP_piece."));
|
||||
|
||||
result = reg;
|
||||
ctx->in_reg = 1;
|
||||
|
@ -494,7 +494,7 @@ execute_stack_op (struct dwarf_expr_context *ctx, unsigned char *op_ptr,
|
|||
CORE_ADDR t1, t2, t3;
|
||||
|
||||
if (ctx->stack_len < 3)
|
||||
error ("Not enough elements for DW_OP_rot. Need 3, have %d\n",
|
||||
error (_("Not enough elements for DW_OP_rot. Need 3, have %d."),
|
||||
ctx->stack_len);
|
||||
t1 = ctx->stack[ctx->stack_len - 1];
|
||||
t2 = ctx->stack[ctx->stack_len - 2];
|
||||
|
@ -704,7 +704,7 @@ execute_stack_op (struct dwarf_expr_context *ctx, unsigned char *op_ptr,
|
|||
goto no_push;
|
||||
|
||||
default:
|
||||
error ("Unhandled dwarf expression opcode 0x%x", op);
|
||||
error (_("Unhandled dwarf expression opcode 0x%x"), op);
|
||||
}
|
||||
|
||||
/* Most things push a result value. */
|
||||
|
|
|
@ -175,7 +175,7 @@ dwarf_expr_frame_base (void *baton, unsigned char **start, size_t * length)
|
|||
}
|
||||
|
||||
if (*start == NULL)
|
||||
error ("Could not find the frame base for \"%s\".",
|
||||
error (_("Could not find the frame base for \"%s\"."),
|
||||
SYMBOL_NATURAL_NAME (framefunc));
|
||||
}
|
||||
|
||||
|
@ -194,7 +194,7 @@ dwarf_expr_tls_address (void *baton, CORE_ADDR offset)
|
|||
/* It wouldn't be wrong here to try a gdbarch method, too; finding
|
||||
TLS is an ABI-specific thing. But we don't do that yet. */
|
||||
else
|
||||
error ("Cannot find thread-local variables on this target");
|
||||
error (_("Cannot find thread-local variables on this target"));
|
||||
|
||||
return addr;
|
||||
}
|
||||
|
@ -234,8 +234,8 @@ dwarf2_evaluate_loc_desc (struct symbol *var, struct frame_info *frame,
|
|||
{
|
||||
/* We haven't implemented splicing together pieces from
|
||||
arbitrary sources yet. */
|
||||
error ("The value of variable '%s' is distributed across several\n"
|
||||
"locations, and GDB cannot access its value.\n",
|
||||
error (_("The value of variable '%s' is distributed across several\n"
|
||||
"locations, and GDB cannot access its value.\n"),
|
||||
SYMBOL_NATURAL_NAME (var));
|
||||
}
|
||||
else if (ctx->in_reg)
|
||||
|
@ -353,7 +353,7 @@ dwarf2_tracepoint_var_ref (struct symbol * symbol, struct agent_expr * ax,
|
|||
int size)
|
||||
{
|
||||
if (size == 0)
|
||||
error ("Symbol \"%s\" has been optimized out.",
|
||||
error (_("Symbol \"%s\" has been optimized out."),
|
||||
SYMBOL_PRINT_NAME (symbol));
|
||||
|
||||
if (size == 1
|
||||
|
@ -380,7 +380,7 @@ dwarf2_tracepoint_var_ref (struct symbol * symbol, struct agent_expr * ax,
|
|||
|
||||
buf_end = read_sleb128 (data + 1, data + size, &frame_offset);
|
||||
if (buf_end != data + size)
|
||||
error ("Unexpected opcode after DW_OP_fbreg for symbol \"%s\".",
|
||||
error (_("Unexpected opcode after DW_OP_fbreg for symbol \"%s\"."),
|
||||
SYMBOL_PRINT_NAME (symbol));
|
||||
|
||||
TARGET_VIRTUAL_FRAME_POINTER (ax->scope, &frame_reg, &frame_offset);
|
||||
|
@ -393,7 +393,7 @@ dwarf2_tracepoint_var_ref (struct symbol * symbol, struct agent_expr * ax,
|
|||
value->kind = axs_lvalue_memory;
|
||||
}
|
||||
else
|
||||
error ("Unsupported DWARF opcode in the location of \"%s\".",
|
||||
error (_("Unsupported DWARF opcode in the location of \"%s\"."),
|
||||
SYMBOL_PRINT_NAME (symbol));
|
||||
}
|
||||
|
||||
|
@ -512,7 +512,7 @@ loclist_read_variable (struct symbol *symbol, struct frame_info *frame)
|
|||
data = find_location_expression (dlbaton, &size,
|
||||
frame ? get_frame_pc (frame) : 0);
|
||||
if (data == NULL)
|
||||
error ("Variable \"%s\" is not available.", SYMBOL_NATURAL_NAME (symbol));
|
||||
error (_("Variable \"%s\" is not available."), SYMBOL_NATURAL_NAME (symbol));
|
||||
|
||||
val = dwarf2_evaluate_loc_desc (symbol, frame, data, size, dlbaton->objfile);
|
||||
|
||||
|
@ -553,7 +553,7 @@ loclist_tracepoint_var_ref (struct symbol * symbol, struct agent_expr * ax,
|
|||
|
||||
data = find_location_expression (dlbaton, &size, ax->scope);
|
||||
if (data == NULL)
|
||||
error ("Variable \"%s\" is not available.", SYMBOL_NATURAL_NAME (symbol));
|
||||
error (_("Variable \"%s\" is not available."), SYMBOL_NATURAL_NAME (symbol));
|
||||
|
||||
dwarf2_tracepoint_var_ref (symbol, ax, value, data, size);
|
||||
}
|
||||
|
|
|
@ -1296,21 +1296,21 @@ partial_read_comp_unit_head (struct comp_unit_head *header, char *info_ptr,
|
|||
info_ptr = read_comp_unit_head (header, info_ptr, abfd);
|
||||
|
||||
if (header->version != 2)
|
||||
error ("Dwarf Error: wrong version in compilation unit header "
|
||||
"(is %d, should be %d) [in module %s]", header->version,
|
||||
error (_("Dwarf Error: wrong version in compilation unit header "
|
||||
"(is %d, should be %d) [in module %s]"), header->version,
|
||||
2, bfd_get_filename (abfd));
|
||||
|
||||
if (header->abbrev_offset >= dwarf2_per_objfile->abbrev_size)
|
||||
error ("Dwarf Error: bad offset (0x%lx) in compilation unit header "
|
||||
"(offset 0x%lx + 6) [in module %s]",
|
||||
error (_("Dwarf Error: bad offset (0x%lx) in compilation unit header "
|
||||
"(offset 0x%lx + 6) [in module %s]"),
|
||||
(long) header->abbrev_offset,
|
||||
(long) (beg_of_comp_unit - dwarf2_per_objfile->info_buffer),
|
||||
bfd_get_filename (abfd));
|
||||
|
||||
if (beg_of_comp_unit + header->length + header->initial_length_size
|
||||
> dwarf2_per_objfile->info_buffer + dwarf2_per_objfile->info_size)
|
||||
error ("Dwarf Error: bad length (0x%lx) in compilation unit header "
|
||||
"(offset 0x%lx + 0) [in module %s]",
|
||||
error (_("Dwarf Error: bad length (0x%lx) in compilation unit header "
|
||||
"(offset 0x%lx + 0) [in module %s]"),
|
||||
(long) header->length,
|
||||
(long) (beg_of_comp_unit - dwarf2_per_objfile->info_buffer),
|
||||
bfd_get_filename (abfd));
|
||||
|
@ -2150,7 +2150,7 @@ peek_die_abbrev (char *info_ptr, int *bytes_read, struct dwarf2_cu *cu)
|
|||
abbrev = dwarf2_lookup_abbrev (abbrev_number, cu);
|
||||
if (!abbrev)
|
||||
{
|
||||
error ("Dwarf Error: Could not find abbrev number %d [in module %s]", abbrev_number,
|
||||
error (_("Dwarf Error: Could not find abbrev number %d [in module %s]"), abbrev_number,
|
||||
bfd_get_filename (abfd));
|
||||
}
|
||||
|
||||
|
@ -2265,7 +2265,7 @@ skip_one_die (char *info_ptr, struct abbrev_info *abbrev,
|
|||
goto skip_attribute;
|
||||
|
||||
default:
|
||||
error ("Dwarf Error: Cannot handle %s in DWARF reader [in module %s]",
|
||||
error (_("Dwarf Error: Cannot handle %s in DWARF reader [in module %s]"),
|
||||
dwarf_form_name (form),
|
||||
bfd_get_filename (abfd));
|
||||
}
|
||||
|
@ -2309,7 +2309,7 @@ dwarf2_psymtab_to_symtab (struct partial_symtab *pst)
|
|||
{
|
||||
if (pst->readin)
|
||||
{
|
||||
warning ("bug: psymtab for %s is already read in.", pst->filename);
|
||||
warning (_("bug: psymtab for %s is already read in."), pst->filename);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -4932,7 +4932,7 @@ dwarf2_read_section (struct objfile *objfile, asection *sectp)
|
|||
|
||||
if (bfd_seek (abfd, sectp->filepos, SEEK_SET) != 0
|
||||
|| bfd_bread (buf, size, abfd) != size)
|
||||
error ("Dwarf Error: Can't read DWARF data from '%s'",
|
||||
error (_("Dwarf Error: Can't read DWARF data from '%s'"),
|
||||
bfd_get_filename (abfd));
|
||||
|
||||
return buf;
|
||||
|
@ -5543,7 +5543,7 @@ read_full_die (struct die_info **diep, bfd *abfd, char *info_ptr,
|
|||
abbrev = dwarf2_lookup_abbrev (abbrev_number, cu);
|
||||
if (!abbrev)
|
||||
{
|
||||
error ("Dwarf Error: could not find abbrev number %d [in module %s]",
|
||||
error (_("Dwarf Error: could not find abbrev number %d [in module %s]"),
|
||||
abbrev_number,
|
||||
bfd_get_filename (abfd));
|
||||
}
|
||||
|
@ -5715,7 +5715,7 @@ read_attribute_value (struct attribute *attr, unsigned form,
|
|||
info_ptr = read_attribute_value (attr, form, abfd, info_ptr, cu);
|
||||
break;
|
||||
default:
|
||||
error ("Dwarf Error: Cannot handle %s in DWARF reader [in module %s]",
|
||||
error (_("Dwarf Error: Cannot handle %s in DWARF reader [in module %s]"),
|
||||
dwarf_form_name (form),
|
||||
bfd_get_filename (abfd));
|
||||
}
|
||||
|
@ -5975,13 +5975,13 @@ read_indirect_string (bfd *abfd, char *buf,
|
|||
|
||||
if (dwarf2_per_objfile->str_buffer == NULL)
|
||||
{
|
||||
error ("DW_FORM_strp used without .debug_str section [in module %s]",
|
||||
error (_("DW_FORM_strp used without .debug_str section [in module %s]"),
|
||||
bfd_get_filename (abfd));
|
||||
return NULL;
|
||||
}
|
||||
if (str_offset >= dwarf2_per_objfile->str_size)
|
||||
{
|
||||
error ("DW_FORM_strp pointing outside of .debug_str section [in module %s]",
|
||||
error (_("DW_FORM_strp pointing outside of .debug_str section [in module %s]"),
|
||||
bfd_get_filename (abfd));
|
||||
return NULL;
|
||||
}
|
||||
|
@ -7115,7 +7115,7 @@ die_type (struct die_info *die, struct dwarf2_cu *cu)
|
|||
if (!type)
|
||||
{
|
||||
dump_die (type_die);
|
||||
error ("Dwarf Error: Problem turning type die at offset into gdb type [in module %s]",
|
||||
error (_("Dwarf Error: Problem turning type die at offset into gdb type [in module %s]"),
|
||||
cu->objfile->name);
|
||||
}
|
||||
return type;
|
||||
|
@ -7141,7 +7141,7 @@ die_containing_type (struct die_info *die, struct dwarf2_cu *cu)
|
|||
{
|
||||
if (type_die)
|
||||
dump_die (type_die);
|
||||
error ("Dwarf Error: Problem turning containing type into gdb type [in module %s]",
|
||||
error (_("Dwarf Error: Problem turning containing type into gdb type [in module %s]"),
|
||||
cu->objfile->name);
|
||||
}
|
||||
return type;
|
||||
|
@ -7160,7 +7160,7 @@ tag_type_to_type (struct die_info *die, struct dwarf2_cu *cu)
|
|||
if (!die->type)
|
||||
{
|
||||
dump_die (die);
|
||||
error ("Dwarf Error: Cannot find type of die [in module %s]",
|
||||
error (_("Dwarf Error: Cannot find type of die [in module %s]"),
|
||||
cu->objfile->name);
|
||||
}
|
||||
return die->type;
|
||||
|
@ -8484,8 +8484,8 @@ follow_die_ref (struct die_info *src_die, struct attribute *attr,
|
|||
die = die->next_ref;
|
||||
}
|
||||
|
||||
error ("Dwarf Error: Cannot find DIE at 0x%lx referenced from DIE "
|
||||
"at 0x%lx [in module %s]",
|
||||
error (_("Dwarf Error: Cannot find DIE at 0x%lx referenced from DIE "
|
||||
"at 0x%lx [in module %s]"),
|
||||
(long) src_die->offset, (long) offset, cu->objfile->name);
|
||||
|
||||
return NULL;
|
||||
|
@ -8497,7 +8497,7 @@ dwarf2_fundamental_type (struct objfile *objfile, int typeid,
|
|||
{
|
||||
if (typeid < 0 || typeid >= FT_NUM_MEMBERS)
|
||||
{
|
||||
error ("Dwarf Error: internal error - invalid fundamental type id %d [in module %s]",
|
||||
error (_("Dwarf Error: internal error - invalid fundamental type id %d [in module %s]"),
|
||||
typeid, objfile->name);
|
||||
}
|
||||
|
||||
|
@ -9240,8 +9240,8 @@ dwarf2_find_containing_comp_unit (unsigned long offset,
|
|||
if (dwarf2_per_objfile->all_comp_units[low]->offset > offset)
|
||||
{
|
||||
if (low == 0)
|
||||
error ("Dwarf Error: could not find partial DIE containing "
|
||||
"offset 0x%lx [in module %s]",
|
||||
error (_("Dwarf Error: could not find partial DIE containing "
|
||||
"offset 0x%lx [in module %s]"),
|
||||
(long) offset, bfd_get_filename (objfile->obfd));
|
||||
|
||||
gdb_assert (dwarf2_per_objfile->all_comp_units[low-1]->offset <= offset);
|
||||
|
@ -9252,7 +9252,7 @@ dwarf2_find_containing_comp_unit (unsigned long offset,
|
|||
this_cu = dwarf2_per_objfile->all_comp_units[low];
|
||||
if (low == dwarf2_per_objfile->n_comp_units - 1
|
||||
&& offset >= this_cu->offset + this_cu->length)
|
||||
error ("invalid dwarf2 offset %ld", offset);
|
||||
error (_("invalid dwarf2 offset %ld"), offset);
|
||||
gdb_assert (offset < this_cu->offset + this_cu->length);
|
||||
return this_cu;
|
||||
}
|
||||
|
@ -9267,7 +9267,7 @@ dwarf2_find_comp_unit (unsigned long offset, struct objfile *objfile)
|
|||
struct dwarf2_per_cu_data *this_cu;
|
||||
this_cu = dwarf2_find_containing_comp_unit (offset, objfile);
|
||||
if (this_cu->offset != offset)
|
||||
error ("no compilation unit with offset %ld\n", offset);
|
||||
error (_("no compilation unit with offset %ld."), offset);
|
||||
return this_cu;
|
||||
}
|
||||
|
||||
|
|
|
@ -558,7 +558,7 @@ dwarf_fundamental_type (struct objfile *objfile, int typeid)
|
|||
{
|
||||
if (typeid < 0 || typeid >= FT_NUM_MEMBERS)
|
||||
{
|
||||
error ("internal error - invalid fundamental type id %d", typeid);
|
||||
error (_("internal error - invalid fundamental type id %d"), typeid);
|
||||
}
|
||||
|
||||
/* Look for this particular type in the fundamental type vector. If one is
|
||||
|
@ -677,7 +677,7 @@ dwarf_build_psymtabs (struct objfile *objfile, int mainline, file_ptr dbfoff,
|
|||
(bfd_bread (dbbase, dbsize, abfd) != dbsize))
|
||||
{
|
||||
xfree (dbbase);
|
||||
error ("can't read DWARF data from '%s'", bfd_get_filename (abfd));
|
||||
error (_("can't read DWARF data from '%s'"), bfd_get_filename (abfd));
|
||||
}
|
||||
back_to = make_cleanup (xfree, dbbase);
|
||||
|
||||
|
@ -2272,7 +2272,7 @@ read_ofile_symtab (struct partial_symtab *pst)
|
|||
(bfd_bread (dbbase, dbsize, abfd) != dbsize))
|
||||
{
|
||||
xfree (dbbase);
|
||||
error ("can't read DWARF data");
|
||||
error (_("can't read DWARF data"));
|
||||
}
|
||||
back_to = make_cleanup (xfree, dbbase);
|
||||
|
||||
|
@ -2288,7 +2288,7 @@ read_ofile_symtab (struct partial_symtab *pst)
|
|||
(bfd_bread (lnsizedata, sizeof (lnsizedata), abfd)
|
||||
!= sizeof (lnsizedata)))
|
||||
{
|
||||
error ("can't read DWARF line number table size");
|
||||
error (_("can't read DWARF line number table size"));
|
||||
}
|
||||
lnsize = target_to_host (lnsizedata, SIZEOF_LINETBL_LENGTH,
|
||||
GET_UNSIGNED, pst->objfile);
|
||||
|
@ -2297,7 +2297,7 @@ read_ofile_symtab (struct partial_symtab *pst)
|
|||
(bfd_bread (lnbase, lnsize, abfd) != lnsize))
|
||||
{
|
||||
xfree (lnbase);
|
||||
error ("can't read DWARF line numbers");
|
||||
error (_("can't read DWARF line numbers"));
|
||||
}
|
||||
make_cleanup (xfree, lnbase);
|
||||
}
|
||||
|
@ -2335,7 +2335,7 @@ psymtab_to_symtab_1 (struct partial_symtab *pst)
|
|||
{
|
||||
if (pst->readin)
|
||||
{
|
||||
warning ("psymtab for %s already read in. Shouldn't happen.",
|
||||
warning (_("psymtab for %s already read in. Shouldn't happen."),
|
||||
pst->filename);
|
||||
}
|
||||
else
|
||||
|
@ -2404,7 +2404,7 @@ dwarf_psymtab_to_symtab (struct partial_symtab *pst)
|
|||
{
|
||||
if (pst->readin)
|
||||
{
|
||||
warning ("psymtab for %s already read in. Shouldn't happen.",
|
||||
warning (_("psymtab for %s already read in. Shouldn't happen."),
|
||||
pst->filename);
|
||||
}
|
||||
else
|
||||
|
|
|
@ -177,7 +177,7 @@ elf_symtab_read (struct objfile *objfile, int dynamic)
|
|||
{
|
||||
storage_needed = bfd_get_symtab_upper_bound (objfile->obfd);
|
||||
if (storage_needed < 0)
|
||||
error ("Can't read symbols from %s: %s", bfd_get_filename (objfile->obfd),
|
||||
error (_("Can't read symbols from %s: %s"), bfd_get_filename (objfile->obfd),
|
||||
bfd_errmsg (bfd_get_error ()));
|
||||
}
|
||||
if (storage_needed > 0)
|
||||
|
@ -190,7 +190,7 @@ elf_symtab_read (struct objfile *objfile, int dynamic)
|
|||
else
|
||||
number_of_symbols = bfd_canonicalize_symtab (objfile->obfd, symbol_table);
|
||||
if (number_of_symbols < 0)
|
||||
error ("Can't read symbols from %s: %s", bfd_get_filename (objfile->obfd),
|
||||
error (_("Can't read symbols from %s: %s"), bfd_get_filename (objfile->obfd),
|
||||
bfd_errmsg (bfd_get_error ()));
|
||||
|
||||
for (i = 0; i < number_of_symbols; i++)
|
||||
|
|
96
gdb/eval.c
96
gdb/eval.c
|
@ -264,7 +264,7 @@ evaluate_struct_tuple (struct value *struct_val,
|
|||
}
|
||||
}
|
||||
}
|
||||
error ("there is no field named %s", label);
|
||||
error (_("there is no field named %s"), label);
|
||||
found:
|
||||
;
|
||||
}
|
||||
|
@ -285,11 +285,11 @@ evaluate_struct_tuple (struct value *struct_val,
|
|||
fieldno++;
|
||||
subfieldno = fieldno;
|
||||
if (fieldno >= TYPE_NFIELDS (struct_type))
|
||||
error ("too many initializers");
|
||||
error (_("too many initializers"));
|
||||
field_type = TYPE_FIELD_TYPE (struct_type, fieldno);
|
||||
if (TYPE_CODE (field_type) == TYPE_CODE_UNION
|
||||
&& TYPE_FIELD_NAME (struct_type, fieldno)[0] == '0')
|
||||
error ("don't know which variant you want to set");
|
||||
error (_("don't know which variant you want to set"));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -358,7 +358,7 @@ init_array_element (struct value *array, struct value *element,
|
|||
low = value_as_long (evaluate_subexp (NULL_TYPE, exp, pos, noside));
|
||||
high = value_as_long (evaluate_subexp (NULL_TYPE, exp, pos, noside));
|
||||
if (low < low_bound || high > high_bound)
|
||||
error ("tuple range index out of range");
|
||||
error (_("tuple range index out of range"));
|
||||
for (index = low; index <= high; index++)
|
||||
{
|
||||
memcpy (value_contents_raw (array)
|
||||
|
@ -370,7 +370,7 @@ init_array_element (struct value *array, struct value *element,
|
|||
{
|
||||
index = value_as_long (evaluate_subexp (NULL_TYPE, exp, pos, noside));
|
||||
if (index < low_bound || index > high_bound)
|
||||
error ("tuple index out of range");
|
||||
error (_("tuple index out of range"));
|
||||
memcpy (value_contents_raw (array) + (index - low_bound) * element_size,
|
||||
value_contents (element), element_size);
|
||||
}
|
||||
|
@ -410,7 +410,7 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
&exp->elts[pc + 3].string,
|
||||
noside);
|
||||
if (arg1 == NULL)
|
||||
error ("There is no field named %s", &exp->elts[pc + 3].string);
|
||||
error (_("There is no field named %s"), &exp->elts[pc + 3].string);
|
||||
return arg1;
|
||||
|
||||
case OP_LONG:
|
||||
|
@ -451,7 +451,7 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
struct value *val = value_of_register (regno, get_selected_frame (NULL));
|
||||
(*pos) += 2;
|
||||
if (val == NULL)
|
||||
error ("Value of register %s not available.",
|
||||
error (_("Value of register %s not available."),
|
||||
frame_map_regnum_to_name (get_selected_frame (NULL), regno));
|
||||
else
|
||||
return val;
|
||||
|
@ -544,7 +544,7 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
{
|
||||
if (index > high_bound)
|
||||
/* to avoid memory corruption */
|
||||
error ("Too many array elements");
|
||||
error (_("Too many array elements"));
|
||||
memcpy (value_contents_raw (array)
|
||||
+ (index - low_bound) * element_size,
|
||||
value_contents (element),
|
||||
|
@ -570,7 +570,7 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
check_type = TYPE_TARGET_TYPE (check_type);
|
||||
|
||||
if (get_discrete_bounds (element_type, &low_bound, &high_bound) < 0)
|
||||
error ("(power)set type with unknown size");
|
||||
error (_("(power)set type with unknown size"));
|
||||
memset (valaddr, '\0', TYPE_LENGTH (type));
|
||||
for (tem = 0; tem < nargs; tem++)
|
||||
{
|
||||
|
@ -604,18 +604,18 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
(TYPE_CODE (range_low_type) == TYPE_CODE_ENUM &&
|
||||
(range_low_type != range_high_type)))
|
||||
/* different element modes */
|
||||
error ("POWERSET tuple elements of different mode");
|
||||
error (_("POWERSET tuple elements of different mode"));
|
||||
if ((TYPE_CODE (check_type) != TYPE_CODE (range_low_type)) ||
|
||||
(TYPE_CODE (check_type) == TYPE_CODE_ENUM &&
|
||||
range_low_type != check_type))
|
||||
error ("incompatible POWERSET tuple elements");
|
||||
error (_("incompatible POWERSET tuple elements"));
|
||||
if (range_low > range_high)
|
||||
{
|
||||
warning ("empty POWERSET tuple range");
|
||||
warning (_("empty POWERSET tuple range"));
|
||||
continue;
|
||||
}
|
||||
if (range_low < low_bound || range_high > high_bound)
|
||||
error ("POWERSET tuple element out of range");
|
||||
error (_("POWERSET tuple element out of range"));
|
||||
range_low -= low_bound;
|
||||
range_high -= low_bound;
|
||||
for (; range_low <= range_high; range_low++)
|
||||
|
@ -779,14 +779,14 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
responds_selector = lookup_child_selector ("respondsTo:");
|
||||
|
||||
if (responds_selector == 0)
|
||||
error ("no 'respondsTo:' or 'respondsToSelector:' method");
|
||||
error (_("no 'respondsTo:' or 'respondsToSelector:' method"));
|
||||
|
||||
method_selector = lookup_child_selector ("methodForSelector:");
|
||||
if (method_selector == 0)
|
||||
method_selector = lookup_child_selector ("methodFor:");
|
||||
|
||||
if (method_selector == 0)
|
||||
error ("no 'methodFor:' or 'methodForSelector:' method");
|
||||
error (_("no 'methodFor:' or 'methodForSelector:' method"));
|
||||
|
||||
/* Call the verification method, to make sure that the target
|
||||
class implements the desired method. */
|
||||
|
@ -805,7 +805,7 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
ret = call_function_by_hand (argvec[0], 3, argvec + 1);
|
||||
}
|
||||
if (value_as_long (ret) == 0)
|
||||
error ("Target does not respond to this message selector.");
|
||||
error (_("Target does not respond to this message selector."));
|
||||
|
||||
/* Call "methodForSelector:" method, to get the address of a
|
||||
function method that implements this selector for this
|
||||
|
@ -887,7 +887,7 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
if (method)
|
||||
{
|
||||
if (TYPE_CODE (value_type (method)) != TYPE_CODE_FUNC)
|
||||
error ("method address has symbol information with non-function type; skipping");
|
||||
error (_("method address has symbol information with non-function type; skipping"));
|
||||
if (struct_return)
|
||||
VALUE_ADDRESS (method) = value_as_address (msg_send_stret);
|
||||
else
|
||||
|
@ -928,7 +928,7 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
return allocate_value (type);
|
||||
}
|
||||
else
|
||||
error ("Expression of type other than \"method returning ...\" used as a method");
|
||||
error (_("Expression of type other than \"method returning ...\" used as a method"));
|
||||
}
|
||||
|
||||
/* Now depending on whether we found a symbol for the method,
|
||||
|
@ -972,7 +972,7 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
to the function, but possibly to some thunk. */
|
||||
if (deprecated_hp_som_som_object_present)
|
||||
{
|
||||
error ("Not implemented: function invocation through pointer to method with HP aCC");
|
||||
error (_("Not implemented: function invocation through pointer to method with HP aCC"));
|
||||
}
|
||||
|
||||
nargs++;
|
||||
|
@ -1027,7 +1027,7 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
}
|
||||
}
|
||||
if (i < 0)
|
||||
error ("virtual function at index %d not found", fnoffset);
|
||||
error (_("virtual function at index %d not found"), fnoffset);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1208,7 +1208,7 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
if (noside == EVAL_SKIP)
|
||||
goto nosideret;
|
||||
if (argvec[0] == NULL)
|
||||
error ("Cannot evaluate function -- may be inlined");
|
||||
error (_("Cannot evaluate function -- may be inlined"));
|
||||
if (noside == EVAL_AVOID_SIDE_EFFECTS)
|
||||
{
|
||||
/* If the return type doesn't look like a function type, call an
|
||||
|
@ -1224,7 +1224,7 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
if (ftype)
|
||||
return allocate_value (TYPE_TARGET_TYPE (value_type (argvec[0])));
|
||||
else
|
||||
error ("Expression of type other than \"Function returning ...\" used as function");
|
||||
error (_("Expression of type other than \"Function returning ...\" used as function"));
|
||||
}
|
||||
return call_function_by_hand (argvec[0], nargs, argvec + 1);
|
||||
/* pai: FIXME save value from call_function_by_hand, then adjust pc by adjust_fn_pc if +ve */
|
||||
|
@ -1268,7 +1268,7 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
goto do_call_it;
|
||||
|
||||
default:
|
||||
error ("Cannot perform substring on this type");
|
||||
error (_("Cannot perform substring on this type"));
|
||||
}
|
||||
|
||||
op_f77_substr:
|
||||
|
@ -1369,7 +1369,7 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
if (deprecated_hp_som_som_object_present &&
|
||||
(TYPE_CODE (value_type (arg2)) == TYPE_CODE_PTR) &&
|
||||
(TYPE_CODE (TYPE_TARGET_TYPE (value_type (arg2))) == TYPE_CODE_METHOD))
|
||||
error ("Pointers to methods not supported with HP aCC"); /* 1997-08-19 */
|
||||
error (_("Pointers to methods not supported with HP aCC")); /* 1997-08-19 */
|
||||
|
||||
mem_offset = value_as_long (arg2);
|
||||
goto handle_pointer_to_member;
|
||||
|
@ -1382,7 +1382,7 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
if (deprecated_hp_som_som_object_present &&
|
||||
(TYPE_CODE (value_type (arg2)) == TYPE_CODE_PTR) &&
|
||||
(TYPE_CODE (TYPE_TARGET_TYPE (value_type (arg2))) == TYPE_CODE_METHOD))
|
||||
error ("Pointers to methods not supported with HP aCC"); /* 1997-08-19 */
|
||||
error (_("Pointers to methods not supported with HP aCC")); /* 1997-08-19 */
|
||||
|
||||
mem_offset = value_as_long (arg2);
|
||||
|
||||
|
@ -1392,7 +1392,7 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
if (deprecated_hp_som_som_object_present)
|
||||
{
|
||||
if (!mem_offset) /* no bias -> really null */
|
||||
error ("Attempted dereference of null pointer-to-member");
|
||||
error (_("Attempted dereference of null pointer-to-member"));
|
||||
mem_offset &= ~0x20000000;
|
||||
}
|
||||
if (noside == EVAL_SKIP)
|
||||
|
@ -1402,7 +1402,7 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
goto bad_pointer_to_member;
|
||||
type = check_typedef (TYPE_TARGET_TYPE (type));
|
||||
if (TYPE_CODE (type) == TYPE_CODE_METHOD)
|
||||
error ("not implemented: pointer-to-method in pointer-to-member construct");
|
||||
error (_("not implemented: pointer-to-method in pointer-to-member construct"));
|
||||
if (TYPE_CODE (type) != TYPE_CODE_MEMBER)
|
||||
goto bad_pointer_to_member;
|
||||
/* Now, convert these values to an address. */
|
||||
|
@ -1412,7 +1412,7 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
value_as_long (arg1) + mem_offset);
|
||||
return value_ind (arg3);
|
||||
bad_pointer_to_member:
|
||||
error ("non-pointer-to-member value used in pointer-to-member construct");
|
||||
error (_("non-pointer-to-member value used in pointer-to-member construct"));
|
||||
|
||||
case BINOP_CONCAT:
|
||||
arg1 = evaluate_subexp_with_coercion (exp, pos, noside);
|
||||
|
@ -1437,7 +1437,7 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
of the function as it would be in a naive implementation. */
|
||||
if ((TYPE_CODE (value_type (arg1)) == TYPE_CODE_PTR) &&
|
||||
(TYPE_CODE (TYPE_TARGET_TYPE (value_type (arg1))) == TYPE_CODE_METHOD))
|
||||
error ("Assignment to pointers to methods not implemented with HP aCC");
|
||||
error (_("Assignment to pointers to methods not implemented with HP aCC"));
|
||||
|
||||
/* HP aCC pointers to data members require a constant bias */
|
||||
if ((TYPE_CODE (value_type (arg1)) == TYPE_CODE_PTR) &&
|
||||
|
@ -1518,7 +1518,7 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
arg2 = evaluate_subexp (NULL_TYPE, exp, pos, noside);
|
||||
if (noside == EVAL_SKIP)
|
||||
goto nosideret;
|
||||
error ("':' operator used in invalid context");
|
||||
error (_("':' operator used in invalid context"));
|
||||
|
||||
case BINOP_SUBSCRIPT:
|
||||
arg1 = evaluate_subexp_with_coercion (exp, pos, noside);
|
||||
|
@ -1539,10 +1539,10 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
&& TYPE_CODE (type) != TYPE_CODE_PTR)
|
||||
{
|
||||
if (TYPE_NAME (type))
|
||||
error ("cannot subscript something of type `%s'",
|
||||
error (_("cannot subscript something of type `%s'"),
|
||||
TYPE_NAME (type));
|
||||
else
|
||||
error ("cannot subscript requested type");
|
||||
error (_("cannot subscript requested type"));
|
||||
}
|
||||
|
||||
if (noside == EVAL_AVOID_SIDE_EFFECTS)
|
||||
|
@ -1593,7 +1593,7 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
}
|
||||
else
|
||||
{
|
||||
error ("cannot subscript something of type `%s'",
|
||||
error (_("cannot subscript something of type `%s'"),
|
||||
TYPE_NAME (value_type (arg1)));
|
||||
}
|
||||
}
|
||||
|
@ -1618,13 +1618,13 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
int offset_item; /* The array offset where the item lives */
|
||||
|
||||
if (nargs > MAX_FORTRAN_DIMS)
|
||||
error ("Too many subscripts for F77 (%d Max)", MAX_FORTRAN_DIMS);
|
||||
error (_("Too many subscripts for F77 (%d Max)"), MAX_FORTRAN_DIMS);
|
||||
|
||||
tmp_type = check_typedef (value_type (arg1));
|
||||
ndimensions = calc_f77_array_dims (type);
|
||||
|
||||
if (nargs != ndimensions)
|
||||
error ("Wrong number of subscripts");
|
||||
error (_("Wrong number of subscripts"));
|
||||
|
||||
/* Now that we know we have a legal array subscript expression
|
||||
let us actually find out where this element exists in the array. */
|
||||
|
@ -1646,11 +1646,11 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
{
|
||||
retcode = f77_get_dynamic_upperbound (tmp_type, &upper);
|
||||
if (retcode == BOUND_FETCH_ERROR)
|
||||
error ("Cannot obtain dynamic upper bound");
|
||||
error (_("Cannot obtain dynamic upper bound"));
|
||||
|
||||
retcode = f77_get_dynamic_lowerbound (tmp_type, &lower);
|
||||
if (retcode == BOUND_FETCH_ERROR)
|
||||
error ("Cannot obtain dynamic lower bound");
|
||||
error (_("Cannot obtain dynamic lower bound"));
|
||||
|
||||
array_size_array[nargs - i - 1] = upper - lower + 1;
|
||||
|
||||
|
@ -1842,7 +1842,7 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
goto nosideret;
|
||||
type = check_typedef (value_type (arg2));
|
||||
if (TYPE_CODE (type) != TYPE_CODE_INT)
|
||||
error ("Non-integral right operand for \"@\" operator.");
|
||||
error (_("Non-integral right operand for \"@\" operator."));
|
||||
if (noside == EVAL_AVOID_SIDE_EFFECTS)
|
||||
{
|
||||
return allocate_repeat_value (value_type (arg1),
|
||||
|
@ -1893,7 +1893,7 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
if ((TYPE_TARGET_TYPE (value_type (arg1))) &&
|
||||
((TYPE_CODE (TYPE_TARGET_TYPE (value_type (arg1))) == TYPE_CODE_METHOD) ||
|
||||
(TYPE_CODE (TYPE_TARGET_TYPE (value_type (arg1))) == TYPE_CODE_MEMBER)))
|
||||
error ("Attempt to dereference pointer to member without an object");
|
||||
error (_("Attempt to dereference pointer to member without an object"));
|
||||
if (noside == EVAL_SKIP)
|
||||
goto nosideret;
|
||||
if (unop_user_defined_p (op, arg1))
|
||||
|
@ -1912,7 +1912,7 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
/* GDB allows dereferencing an int. */
|
||||
return value_zero (builtin_type_int, lval_memory);
|
||||
else
|
||||
error ("Attempt to take contents of a non-pointer value.");
|
||||
error (_("Attempt to take contents of a non-pointer value."));
|
||||
}
|
||||
return value_ind (arg1);
|
||||
|
||||
|
@ -2046,7 +2046,7 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
return value_of_local ("self", 1);
|
||||
|
||||
case OP_TYPE:
|
||||
error ("Attempt to use a type name as an expression");
|
||||
error (_("Attempt to use a type name as an expression"));
|
||||
|
||||
default:
|
||||
/* Removing this case and compiling with gcc -Wall reveals that
|
||||
|
@ -2058,8 +2058,8 @@ evaluate_subexp_standard (struct type *expect_type,
|
|||
then they should be separate cases, with more descriptive
|
||||
error messages. */
|
||||
|
||||
error ("\
|
||||
GDB does not (yet) know how to evaluate that kind of expression");
|
||||
error (_("\
|
||||
GDB does not (yet) know how to evaluate that kind of expression"));
|
||||
}
|
||||
|
||||
nosideret:
|
||||
|
@ -2114,7 +2114,7 @@ evaluate_subexp_for_address (struct expression *exp, int *pos,
|
|||
|| sym_class == LOC_CONST_BYTES
|
||||
|| sym_class == LOC_REGISTER
|
||||
|| sym_class == LOC_REGPARM)
|
||||
error ("Attempt to take address of register or constant.");
|
||||
error (_("Attempt to take address of register or constant."));
|
||||
|
||||
return
|
||||
value_zero (type, not_lval);
|
||||
|
@ -2134,7 +2134,7 @@ evaluate_subexp_for_address (struct expression *exp, int *pos,
|
|||
return value_zero (lookup_pointer_type (value_type (x)),
|
||||
not_lval);
|
||||
else
|
||||
error ("Attempt to take address of non-lval");
|
||||
error (_("Attempt to take address of non-lval"));
|
||||
}
|
||||
return value_addr (evaluate_subexp (NULL_TYPE, exp, pos, noside));
|
||||
}
|
||||
|
@ -2214,7 +2214,7 @@ evaluate_subexp_for_sizeof (struct expression *exp, int *pos)
|
|||
if (TYPE_CODE (type) != TYPE_CODE_PTR
|
||||
&& TYPE_CODE (type) != TYPE_CODE_REF
|
||||
&& TYPE_CODE (type) != TYPE_CODE_ARRAY)
|
||||
error ("Attempt to take contents of a non-pointer value.");
|
||||
error (_("Attempt to take contents of a non-pointer value."));
|
||||
type = check_typedef (TYPE_TARGET_TYPE (type));
|
||||
return value_from_longest (builtin_type_int, (LONGEST)
|
||||
TYPE_LENGTH (type));
|
||||
|
@ -2252,7 +2252,7 @@ parse_and_eval_type (char *p, int length)
|
|||
tmp[length + 3] = '\0';
|
||||
expr = parse_expression (tmp);
|
||||
if (expr->elts[0].opcode != UNOP_CAST)
|
||||
error ("Internal error in eval_type.");
|
||||
error (_("Internal error in eval_type."));
|
||||
return expr->elts[1].type;
|
||||
}
|
||||
|
||||
|
@ -2263,7 +2263,7 @@ calc_f77_array_dims (struct type *array_type)
|
|||
struct type *tmp_type;
|
||||
|
||||
if ((TYPE_CODE (array_type) != TYPE_CODE_ARRAY))
|
||||
error ("Can't get dimensions for a non-array type");
|
||||
error (_("Can't get dimensions for a non-array type"));
|
||||
|
||||
tmp_type = array_type;
|
||||
|
||||
|
|
|
@ -325,7 +325,7 @@ change_annotation_level (void)
|
|||
{
|
||||
/* The prompt stack has not been initialized to "", we are
|
||||
using gdb w/o the --async switch */
|
||||
warning ("Command has same effect as set annotate");
|
||||
warning (_("Command has same effect as set annotate"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1056,7 +1056,7 @@ async_float_handler (gdb_client_data arg)
|
|||
{
|
||||
/* This message is based on ANSI C, section 4.7. Note that integer
|
||||
divide by zero causes this, so "float" is a misnomer. */
|
||||
error ("Erroneous arithmetic operation.");
|
||||
error (_("Erroneous arithmetic operation."));
|
||||
}
|
||||
|
||||
/* Tell the event loop what to do if SIGWINCH is received.
|
||||
|
|
20
gdb/exec.c
20
gdb/exec.c
|
@ -110,7 +110,7 @@ exec_close (int quitting)
|
|||
else if (vp->bfd != exec_bfd)
|
||||
/* FIXME-leak: We should be freeing vp->name too, I think. */
|
||||
if (!bfd_close (vp->bfd))
|
||||
warning ("cannot close \"%s\": %s",
|
||||
warning (_("cannot close \"%s\": %s"),
|
||||
vp->name, bfd_errmsg (bfd_get_error ()));
|
||||
|
||||
/* FIXME: This routine is #if 0'd in symfile.c. What should we
|
||||
|
@ -129,7 +129,7 @@ exec_close (int quitting)
|
|||
char *name = bfd_get_filename (exec_bfd);
|
||||
|
||||
if (!bfd_close (exec_bfd))
|
||||
warning ("cannot close \"%s\": %s",
|
||||
warning (_("cannot close \"%s\": %s"),
|
||||
name, bfd_errmsg (bfd_get_error ()));
|
||||
xfree (name);
|
||||
exec_bfd = NULL;
|
||||
|
@ -208,7 +208,7 @@ exec_file_attach (char *filename, int from_tty)
|
|||
exec_bfd = bfd_fdopenr (scratch_pathname, gnutarget, scratch_chan);
|
||||
|
||||
if (!exec_bfd)
|
||||
error ("\"%s\": could not open as an executable file: %s",
|
||||
error (_("\"%s\": could not open as an executable file: %s"),
|
||||
scratch_pathname, bfd_errmsg (bfd_get_error ()));
|
||||
|
||||
/* At this point, scratch_pathname and exec_bfd->name both point to the
|
||||
|
@ -223,7 +223,7 @@ exec_file_attach (char *filename, int from_tty)
|
|||
/* Make sure to close exec_bfd, or else "run" might try to use
|
||||
it. */
|
||||
exec_close (0);
|
||||
error ("\"%s\": not in executable format: %s",
|
||||
error (_("\"%s\": not in executable format: %s"),
|
||||
scratch_pathname, bfd_errmsg (bfd_get_error ()));
|
||||
}
|
||||
|
||||
|
@ -238,7 +238,7 @@ exec_file_attach (char *filename, int from_tty)
|
|||
/* Make sure to close exec_bfd, or else "run" might try to use
|
||||
it. */
|
||||
exec_close (0);
|
||||
error ("\"%s\": can't find the file sections: %s",
|
||||
error (_("\"%s\": can't find the file sections: %s"),
|
||||
scratch_pathname, bfd_errmsg (bfd_get_error ()));
|
||||
}
|
||||
#endif /* DEPRECATED_IBM6000_TARGET */
|
||||
|
@ -249,7 +249,7 @@ exec_file_attach (char *filename, int from_tty)
|
|||
/* Make sure to close exec_bfd, or else "run" might try to use
|
||||
it. */
|
||||
exec_close (0);
|
||||
error ("\"%s\": can't find the file sections: %s",
|
||||
error (_("\"%s\": can't find the file sections: %s"),
|
||||
scratch_pathname, bfd_errmsg (bfd_get_error ()));
|
||||
}
|
||||
|
||||
|
@ -301,7 +301,7 @@ exec_file_command (char *args, int from_tty)
|
|||
{;
|
||||
}
|
||||
if (*argv == NULL)
|
||||
error ("No executable file name was specified");
|
||||
error (_("No executable file name was specified"));
|
||||
|
||||
filename = tilde_expand (*argv);
|
||||
make_cleanup (xfree, filename);
|
||||
|
@ -633,7 +633,7 @@ set_section_command (char *args, int from_tty)
|
|||
long offset;
|
||||
|
||||
if (args == 0)
|
||||
error ("Must specify section name and its virtual address");
|
||||
error (_("Must specify section name and its virtual address"));
|
||||
|
||||
/* Parse out section name */
|
||||
for (secname = args; !isspace (*args); args++);
|
||||
|
@ -659,7 +659,7 @@ set_section_command (char *args, int from_tty)
|
|||
seclen = sizeof (secprint) - 1;
|
||||
strncpy (secprint, secname, seclen);
|
||||
secprint[seclen] = '\0';
|
||||
error ("Section %s not found", secprint);
|
||||
error (_("Section %s not found"), secprint);
|
||||
}
|
||||
|
||||
/* If mourn is being called in all the right places, this could be say
|
||||
|
@ -755,5 +755,5 @@ file itself are wrong. Each section must be changed separately. The\n\
|
|||
static char *
|
||||
exec_make_note_section (bfd *obfd, int *note_size)
|
||||
{
|
||||
error ("Can't create a corefile");
|
||||
error (_("Can't create a corefile"));
|
||||
}
|
||||
|
|
|
@ -205,7 +205,7 @@ print_subexp_standard (struct expression *exp, int *pos,
|
|||
if (0 == target_read_string (exp->elts[pc + 1].longconst,
|
||||
&selector, 1024, NULL))
|
||||
{
|
||||
error ("bad selector");
|
||||
error (_("bad selector"));
|
||||
return;
|
||||
}
|
||||
if (nargs)
|
||||
|
@ -418,7 +418,7 @@ print_subexp_standard (struct expression *exp, int *pos,
|
|||
if (op_print_tab[tem].opcode != opcode)
|
||||
/* Not found; don't try to keep going because we don't know how
|
||||
to interpret further elements. */
|
||||
error ("Invalid expression");
|
||||
error (_("Invalid expression"));
|
||||
break;
|
||||
|
||||
/* C++ ops */
|
||||
|
@ -462,7 +462,7 @@ print_subexp_standard (struct expression *exp, int *pos,
|
|||
|
||||
case BINOP_INCL:
|
||||
case BINOP_EXCL:
|
||||
error ("print_subexp: Not implemented.");
|
||||
error (_("print_subexp: Not implemented."));
|
||||
|
||||
/* Default ops */
|
||||
|
||||
|
@ -480,7 +480,7 @@ print_subexp_standard (struct expression *exp, int *pos,
|
|||
/* Not found; don't try to keep going because we don't know how
|
||||
to interpret further elements. For example, this happens
|
||||
if opcode is OP_TYPE. */
|
||||
error ("Invalid expression");
|
||||
error (_("Invalid expression"));
|
||||
}
|
||||
|
||||
/* Note that PREC_BUILTIN will always emit parentheses. */
|
||||
|
|
|
@ -394,7 +394,7 @@ f_create_fundamental_type (struct objfile *objfile, int typeid)
|
|||
type = init_type (TYPE_CODE_INT,
|
||||
TARGET_INT_BIT / TARGET_CHAR_BIT,
|
||||
0, "<?type?>", objfile);
|
||||
warning ("internal error: no F77 fundamental type %d", typeid);
|
||||
warning (_("internal error: no F77 fundamental type %d"), typeid);
|
||||
break;
|
||||
}
|
||||
return (type);
|
||||
|
@ -685,7 +685,7 @@ add_common_block (char *name, CORE_ADDR offset, int secnum, char *func_stab)
|
|||
if (c)
|
||||
*c = '\0';
|
||||
else
|
||||
error ("Malformed function STAB found in add_common_block()");
|
||||
error (_("Malformed function STAB found in add_common_block()"));
|
||||
|
||||
|
||||
tmp->owning_function = xmalloc (strlen (local_copy_func_stab) + 1);
|
||||
|
@ -733,7 +733,7 @@ add_common_entry (struct symbol *entry_sym_ptr)
|
|||
tmp->symbol = entry_sym_ptr;
|
||||
|
||||
if (current_common == NULL)
|
||||
error ("Attempt to add COMMON entry with no block open!");
|
||||
error (_("Attempt to add COMMON entry with no block open!"));
|
||||
else
|
||||
{
|
||||
if (current_common->entries == NULL)
|
||||
|
|
|
@ -400,7 +400,7 @@ f_type_print_base (struct type *type, struct ui_file *stream, int show,
|
|||
if (TYPE_NAME (type) != NULL)
|
||||
fputs_filtered (TYPE_NAME (type), stream);
|
||||
else
|
||||
error ("Invalid type code (%d) in symbol table.", TYPE_CODE (type));
|
||||
error (_("Invalid type code (%d) in symbol table."), TYPE_CODE (type));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -91,7 +91,7 @@ f77_get_dynamic_lowerbound (struct type *type, int *lower_bound)
|
|||
break;
|
||||
|
||||
case BOUND_CANNOT_BE_DETERMINED:
|
||||
error ("Lower bound may not be '*' in F77");
|
||||
error (_("Lower bound may not be '*' in F77"));
|
||||
break;
|
||||
|
||||
case BOUND_BY_REF_ON_STACK:
|
||||
|
@ -114,7 +114,7 @@ f77_get_dynamic_lowerbound (struct type *type, int *lower_bound)
|
|||
case BOUND_BY_REF_IN_REG:
|
||||
case BOUND_BY_VALUE_IN_REG:
|
||||
default:
|
||||
error ("??? unhandled dynamic array bound type ???");
|
||||
error (_("??? unhandled dynamic array bound type ???"));
|
||||
break;
|
||||
}
|
||||
return BOUND_FETCH_OK;
|
||||
|
@ -177,7 +177,7 @@ f77_get_dynamic_upperbound (struct type *type, int *upper_bound)
|
|||
case BOUND_BY_REF_IN_REG:
|
||||
case BOUND_BY_VALUE_IN_REG:
|
||||
default:
|
||||
error ("??? unhandled dynamic array bound type ???");
|
||||
error (_("??? unhandled dynamic array bound type ???"));
|
||||
break;
|
||||
}
|
||||
return BOUND_FETCH_OK;
|
||||
|
@ -208,11 +208,11 @@ f77_get_dynamic_length_of_aggregate (struct type *type)
|
|||
/* Recursion ends here, start setting up lengths. */
|
||||
retcode = f77_get_dynamic_lowerbound (type, &lower_bound);
|
||||
if (retcode == BOUND_FETCH_ERROR)
|
||||
error ("Cannot obtain valid array lower bound");
|
||||
error (_("Cannot obtain valid array lower bound"));
|
||||
|
||||
retcode = f77_get_dynamic_upperbound (type, &upper_bound);
|
||||
if (retcode == BOUND_FETCH_ERROR)
|
||||
error ("Cannot obtain valid array upper bound");
|
||||
error (_("Cannot obtain valid array upper bound"));
|
||||
|
||||
/* Patch in a valid length value. */
|
||||
|
||||
|
@ -240,11 +240,11 @@ f77_create_arrayprint_offset_tbl (struct type *type, struct ui_file *stream)
|
|||
|
||||
retcode = f77_get_dynamic_upperbound (tmp_type, &upper);
|
||||
if (retcode == BOUND_FETCH_ERROR)
|
||||
error ("Cannot obtain dynamic upper bound");
|
||||
error (_("Cannot obtain dynamic upper bound"));
|
||||
|
||||
retcode = f77_get_dynamic_lowerbound (tmp_type, &lower);
|
||||
if (retcode == BOUND_FETCH_ERROR)
|
||||
error ("Cannot obtain dynamic lower bound");
|
||||
error (_("Cannot obtain dynamic lower bound"));
|
||||
|
||||
F77_DIM_SIZE (ndimen) = upper - lower + 1;
|
||||
|
||||
|
@ -330,7 +330,7 @@ f77_print_array (struct type *type, const bfd_byte *valaddr,
|
|||
ndimensions = calc_f77_array_dims (type);
|
||||
|
||||
if (ndimensions > MAX_FORTRAN_DIMS || ndimensions < 0)
|
||||
error ("Type node corrupt! F77 arrays cannot have %d subscripts (%d Max)",
|
||||
error (_("Type node corrupt! F77 arrays cannot have %d subscripts (%d Max)"),
|
||||
ndimensions, MAX_FORTRAN_DIMS);
|
||||
|
||||
/* Since F77 arrays are stored column-major, we set up an
|
||||
|
@ -532,7 +532,7 @@ f_val_print (struct type *type, const bfd_byte *valaddr, int embedded_offset,
|
|||
break;
|
||||
|
||||
default:
|
||||
error ("Logicals of length %d bytes not supported",
|
||||
error (_("Logicals of length %d bytes not supported"),
|
||||
TYPE_LENGTH (type));
|
||||
|
||||
}
|
||||
|
@ -567,7 +567,7 @@ f_val_print (struct type *type, const bfd_byte *valaddr, int embedded_offset,
|
|||
type = builtin_type_f_real_s16;
|
||||
break;
|
||||
default:
|
||||
error ("Cannot print out complex*%d variables", TYPE_LENGTH (type));
|
||||
error (_("Cannot print out complex*%d variables"), TYPE_LENGTH (type));
|
||||
}
|
||||
fputs_filtered ("(", stream);
|
||||
print_floating (valaddr, type, stream);
|
||||
|
@ -584,7 +584,7 @@ f_val_print (struct type *type, const bfd_byte *valaddr, int embedded_offset,
|
|||
break;
|
||||
|
||||
default:
|
||||
error ("Invalid F77 type code %d in symbol table.", TYPE_CODE (type));
|
||||
error (_("Invalid F77 type code %d in symbol table."), TYPE_CODE (type));
|
||||
}
|
||||
gdb_flush (stream);
|
||||
return 0;
|
||||
|
@ -629,7 +629,7 @@ info_common_command (char *comname, int from_tty)
|
|||
fi = deprecated_selected_frame;
|
||||
|
||||
if (fi == NULL)
|
||||
error ("No frame selected");
|
||||
error (_("No frame selected"));
|
||||
|
||||
/* The following is generally ripped off from stack.c's routine
|
||||
print_frame_info() */
|
||||
|
@ -716,12 +716,12 @@ there_is_a_visible_common_named (char *comname)
|
|||
struct symbol *func;
|
||||
|
||||
if (comname == NULL)
|
||||
error ("Cannot deal with NULL common name!");
|
||||
error (_("Cannot deal with NULL common name!"));
|
||||
|
||||
fi = deprecated_selected_frame;
|
||||
|
||||
if (fi == NULL)
|
||||
error ("No frame selected");
|
||||
error (_("No frame selected"));
|
||||
|
||||
/* The following is generally ripped off from stack.c's routine
|
||||
print_frame_info() */
|
||||
|
|
|
@ -93,7 +93,7 @@ fbsd_find_memory_regions (int (*func) (CORE_ADDR, unsigned long,
|
|||
mapfilename = xstrprintf ("/proc/%ld/map", (long) pid);
|
||||
mapfile = fopen (mapfilename, "r");
|
||||
if (mapfile == NULL)
|
||||
error ("Couldn't open %s\n", mapfilename);
|
||||
error (_("Couldn't open %s."), mapfilename);
|
||||
|
||||
if (info_verbose)
|
||||
fprintf_filtered (gdb_stdout,
|
||||
|
|
|
@ -57,8 +57,8 @@ extract_signed_integer (const void *addr, int len)
|
|||
const unsigned char *endaddr = startaddr + len;
|
||||
|
||||
if (len > (int) sizeof (LONGEST))
|
||||
error ("\
|
||||
That operation is not available on integers of more than %d bytes.",
|
||||
error (_("\
|
||||
That operation is not available on integers of more than %d bytes."),
|
||||
(int) sizeof (LONGEST));
|
||||
|
||||
/* Start at the most significant end of the integer, and work towards
|
||||
|
@ -91,8 +91,8 @@ extract_unsigned_integer (const void *addr, int len)
|
|||
const unsigned char *endaddr = startaddr + len;
|
||||
|
||||
if (len > (int) sizeof (ULONGEST))
|
||||
error ("\
|
||||
That operation is not available on integers of more than %d bytes.",
|
||||
error (_("\
|
||||
That operation is not available on integers of more than %d bytes."),
|
||||
(int) sizeof (ULONGEST));
|
||||
|
||||
/* Start at the most significant end of the integer, and work towards
|
||||
|
@ -445,9 +445,9 @@ read_var_value (struct symbol *var, struct frame_info *frame)
|
|||
CORE_ADDR locaddr;
|
||||
struct value *loc;
|
||||
if (!target_has_execution)
|
||||
error ("\
|
||||
error (_("\
|
||||
Attempt to access variable defined in different shared object or load module when\n\
|
||||
addresses have not been bound by the dynamic loader. Try again when executable is running.");
|
||||
addresses have not been bound by the dynamic loader. Try again when executable is running."));
|
||||
|
||||
locaddr = SYMBOL_VALUE_ADDRESS (var);
|
||||
loc = value_at (lookup_pointer_type (type), locaddr);
|
||||
|
@ -495,14 +495,14 @@ addresses have not been bound by the dynamic loader. Try again when executable i
|
|||
regval = value_from_register (lookup_pointer_type (type),
|
||||
SYMBOL_BASEREG (var), frame);
|
||||
if (regval == NULL)
|
||||
error ("Value of base register not available.");
|
||||
error (_("Value of base register not available."));
|
||||
addr = value_as_address (regval);
|
||||
addr += SYMBOL_VALUE (var);
|
||||
break;
|
||||
}
|
||||
|
||||
case LOC_TYPEDEF:
|
||||
error ("Cannot look up value of a typedef");
|
||||
error (_("Cannot look up value of a typedef"));
|
||||
break;
|
||||
|
||||
case LOC_BLOCK:
|
||||
|
@ -532,7 +532,7 @@ addresses have not been bound by the dynamic loader. Try again when executable i
|
|||
frame);
|
||||
|
||||
if (regval == NULL)
|
||||
error ("Value of register variable not available.");
|
||||
error (_("Value of register variable not available."));
|
||||
|
||||
addr = value_as_address (regval);
|
||||
VALUE_LVAL (v) = lval_memory;
|
||||
|
@ -542,7 +542,7 @@ addresses have not been bound by the dynamic loader. Try again when executable i
|
|||
regval = value_from_register (type, regno, frame);
|
||||
|
||||
if (regval == NULL)
|
||||
error ("Value of register variable not available.");
|
||||
error (_("Value of register variable not available."));
|
||||
return regval;
|
||||
}
|
||||
}
|
||||
|
@ -580,7 +580,7 @@ addresses have not been bound by the dynamic loader. Try again when executable i
|
|||
return v;
|
||||
|
||||
default:
|
||||
error ("Cannot look up value of a botched symbol.");
|
||||
error (_("Cannot look up value of a botched symbol."));
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -736,7 +736,7 @@ locate_var_value (struct symbol *var, struct frame_info *frame)
|
|||
|
||||
lazy_value = read_var_value (var, frame);
|
||||
if (lazy_value == 0)
|
||||
error ("Address of \"%s\" is unknown.", SYMBOL_PRINT_NAME (var));
|
||||
error (_("Address of \"%s\" is unknown."), SYMBOL_PRINT_NAME (var));
|
||||
|
||||
if (value_lazy (lazy_value)
|
||||
|| TYPE_CODE (type) == TYPE_CODE_FUNC)
|
||||
|
@ -754,14 +754,14 @@ locate_var_value (struct symbol *var, struct frame_info *frame)
|
|||
case lval_register:
|
||||
gdb_assert (REGISTER_NAME (VALUE_REGNUM (lazy_value)) != NULL
|
||||
&& *REGISTER_NAME (VALUE_REGNUM (lazy_value)) != '\0');
|
||||
error("Address requested for identifier "
|
||||
"\"%s\" which is in register $%s",
|
||||
error (_("Address requested for identifier "
|
||||
"\"%s\" which is in register $%s"),
|
||||
SYMBOL_PRINT_NAME (var),
|
||||
REGISTER_NAME (VALUE_REGNUM (lazy_value)));
|
||||
break;
|
||||
|
||||
default:
|
||||
error ("Can't take address of \"%s\" which isn't an lvalue.",
|
||||
error (_("Can't take address of \"%s\" which isn't an lvalue."),
|
||||
SYMBOL_PRINT_NAME (var));
|
||||
break;
|
||||
}
|
||||
|
|
18
gdb/frame.c
18
gdb/frame.c
|
@ -654,7 +654,7 @@ put_frame_register (struct frame_info *frame, int regnum, const void *buf)
|
|||
CORE_ADDR addr;
|
||||
frame_register (frame, regnum, &optim, &lval, &addr, &realnum, NULL);
|
||||
if (optim)
|
||||
error ("Attempt to assign to a value that was optimized out.");
|
||||
error (_("Attempt to assign to a value that was optimized out."));
|
||||
switch (lval)
|
||||
{
|
||||
case lval_memory:
|
||||
|
@ -670,7 +670,7 @@ put_frame_register (struct frame_info *frame, int regnum, const void *buf)
|
|||
regcache_cooked_write (current_regcache, realnum, buf);
|
||||
break;
|
||||
default:
|
||||
error ("Attempt to assign to an unmodifiable value.");
|
||||
error (_("Attempt to assign to an unmodifiable value."));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -793,11 +793,11 @@ get_current_frame (void)
|
|||
explicitly checks that ``print $pc'' with no registers prints "No
|
||||
registers". */
|
||||
if (!target_has_registers)
|
||||
error ("No registers.");
|
||||
error (_("No registers."));
|
||||
if (!target_has_stack)
|
||||
error ("No stack.");
|
||||
error (_("No stack."));
|
||||
if (!target_has_memory)
|
||||
error ("No memory.");
|
||||
error (_("No memory."));
|
||||
if (current_frame == NULL)
|
||||
{
|
||||
struct frame_info *sentinel_frame =
|
||||
|
@ -830,7 +830,7 @@ get_selected_frame (const char *message)
|
|||
if (message != NULL && (!target_has_registers
|
||||
|| !target_has_stack
|
||||
|| !target_has_memory))
|
||||
error ("%s", message);
|
||||
error (("%s"), message);
|
||||
/* Hey! Don't trust this. It should really be re-finding the
|
||||
last selected frame of the currently selected thread. This,
|
||||
though, is better than nothing. */
|
||||
|
@ -1043,14 +1043,14 @@ get_prev_frame_1 (struct frame_info *this_frame)
|
|||
if (this_frame->next->level >= 0
|
||||
&& this_frame->next->unwind->type != SIGTRAMP_FRAME
|
||||
&& frame_id_inner (this_id, get_frame_id (this_frame->next)))
|
||||
error ("Previous frame inner to this frame (corrupt stack?)");
|
||||
error (_("Previous frame inner to this frame (corrupt stack?)"));
|
||||
|
||||
/* Check that this and the next frame are not identical. If they
|
||||
are, there is most likely a stack cycle. As with the inner-than
|
||||
test above, avoid comparing the inner-most and sentinel frames. */
|
||||
if (this_frame->level > 0
|
||||
&& frame_id_eq (this_id, get_frame_id (this_frame->next)))
|
||||
error ("Previous frame identical to this frame (corrupt stack?)");
|
||||
error (_("Previous frame identical to this frame (corrupt stack?)"));
|
||||
|
||||
/* Allocate the new frame but do not wire it in to the frame chain.
|
||||
Some (bad) code in INIT_FRAME_EXTRA_INFO tries to look along
|
||||
|
@ -1225,7 +1225,7 @@ get_prev_frame (struct frame_info *this_frame)
|
|||
|
||||
if (this_frame->level > backtrace_limit)
|
||||
{
|
||||
error ("Backtrace limit of %d exceeded", backtrace_limit);
|
||||
error (_("Backtrace limit of %d exceeded"), backtrace_limit);
|
||||
}
|
||||
|
||||
/* If we're already inside the entry function for the main objfile,
|
||||
|
|
|
@ -188,7 +188,7 @@ frv_linux_sigcontext_reg_addr (struct frame_info *next_frame, int regno,
|
|||
a sigcontext struct starting 12 bytes in. */
|
||||
if (target_read_memory (sp + 12, buf, sizeof buf) != 0)
|
||||
{
|
||||
warning ("Can't read realtime sigtramp frame.");
|
||||
warning (_("Can't read realtime sigtramp frame."));
|
||||
return 0;
|
||||
}
|
||||
sc_addr = extract_unsigned_integer (buf, sizeof buf);
|
||||
|
|
20
gdb/gcore.c
20
gdb/gcore.c
|
@ -68,7 +68,7 @@ gcore_command (char *args, int from_tty)
|
|||
/* Open the output file. */
|
||||
obfd = bfd_openw (corefilename, default_gcore_target ());
|
||||
if (!obfd)
|
||||
error ("Failed to open '%s' for output.", corefilename);
|
||||
error (_("Failed to open '%s' for output."), corefilename);
|
||||
|
||||
/* Need a cleanup that will close the file (FIXME: delete it?). */
|
||||
old_chain = make_cleanup_bfd_close (obfd);
|
||||
|
@ -84,7 +84,7 @@ gcore_command (char *args, int from_tty)
|
|||
{
|
||||
note_sec = bfd_make_section_anyway (obfd, "note0");
|
||||
if (note_sec == NULL)
|
||||
error ("Failed to create 'note' section for corefile: %s",
|
||||
error (_("Failed to create 'note' section for corefile: %s"),
|
||||
bfd_errmsg (bfd_get_error ()));
|
||||
|
||||
bfd_set_section_vma (obfd, note_sec, 0);
|
||||
|
@ -96,13 +96,13 @@ gcore_command (char *args, int from_tty)
|
|||
|
||||
/* Now create the memory/load sections. */
|
||||
if (gcore_memory_sections (obfd) == 0)
|
||||
error ("gcore: failed to get corefile memory sections from target.");
|
||||
error (_("gcore: failed to get corefile memory sections from target."));
|
||||
|
||||
/* Write out the contents of the note section. */
|
||||
if (note_data != NULL && note_size != 0)
|
||||
{
|
||||
if (!bfd_set_section_contents (obfd, note_sec, note_data, 0, note_size))
|
||||
warning ("writing note section (%s)", bfd_errmsg (bfd_get_error ()));
|
||||
warning (_("writing note section (%s)"), bfd_errmsg (bfd_get_error ()));
|
||||
}
|
||||
|
||||
/* Succeeded. */
|
||||
|
@ -126,7 +126,7 @@ default_gcore_mach (void)
|
|||
return bfdarch->mach;
|
||||
#endif /* TARGET_ARCHITECTURE */
|
||||
if (exec_bfd == NULL)
|
||||
error ("Can't find default bfd machine type (need execfile).");
|
||||
error (_("Can't find default bfd machine type (need execfile)."));
|
||||
|
||||
return bfd_get_mach (exec_bfd);
|
||||
#endif /* 1 */
|
||||
|
@ -142,7 +142,7 @@ default_gcore_arch (void)
|
|||
return bfdarch->arch;
|
||||
#endif
|
||||
if (exec_bfd == NULL)
|
||||
error ("Can't find bfd architecture for corefile (need execfile).");
|
||||
error (_("Can't find bfd architecture for corefile (need execfile)."));
|
||||
|
||||
return bfd_get_arch (exec_bfd);
|
||||
}
|
||||
|
@ -371,7 +371,7 @@ gcore_create_callback (CORE_ADDR vaddr, unsigned long size,
|
|||
osec = bfd_make_section_anyway (obfd, "load");
|
||||
if (osec == NULL)
|
||||
{
|
||||
warning ("Couldn't make gcore segment: %s",
|
||||
warning (_("Couldn't make gcore segment: %s"),
|
||||
bfd_errmsg (bfd_get_error ()));
|
||||
return 1;
|
||||
}
|
||||
|
@ -459,15 +459,15 @@ gcore_copy_callback (bfd *obfd, asection *osec, void *ignored)
|
|||
memhunk = xmalloc (size);
|
||||
/* ??? This is crap since xmalloc should never return NULL. */
|
||||
if (memhunk == NULL)
|
||||
error ("Not enough memory to create corefile.");
|
||||
error (_("Not enough memory to create corefile."));
|
||||
old_chain = make_cleanup (xfree, memhunk);
|
||||
|
||||
if (target_read_memory (bfd_section_vma (obfd, osec),
|
||||
memhunk, size) != 0)
|
||||
warning ("Memory read failed for corefile section, %s bytes at 0x%s\n",
|
||||
warning (_("Memory read failed for corefile section, %s bytes at 0x%s."),
|
||||
paddr_d (size), paddr (bfd_section_vma (obfd, osec)));
|
||||
if (!bfd_set_section_contents (obfd, osec, memhunk, 0, size))
|
||||
warning ("Failed to write corefile contents (%s).",
|
||||
warning (_("Failed to write corefile contents (%s)."),
|
||||
bfd_errmsg (bfd_get_error ()));
|
||||
|
||||
do_cleanups (old_chain); /* Frees MEMHUNK. */
|
||||
|
|
|
@ -411,7 +411,7 @@ address_space_name_to_int (char *space_identifier)
|
|||
&type_flags))
|
||||
return type_flags;
|
||||
else
|
||||
error ("Unknown address space specifier: \"%s\"", space_identifier);
|
||||
error (_("Unknown address space specifier: \"%s\""), space_identifier);
|
||||
}
|
||||
|
||||
/* Identify address space identifier by integer flag as defined in
|
||||
|
@ -1075,7 +1075,7 @@ lookup_typename (char *name, struct block *block, int noerr)
|
|||
}
|
||||
else
|
||||
{
|
||||
error ("No type named %s.", name);
|
||||
error (_("No type named %s."), name);
|
||||
}
|
||||
}
|
||||
return (SYMBOL_TYPE (sym));
|
||||
|
@ -1119,11 +1119,11 @@ lookup_struct (char *name, struct block *block)
|
|||
|
||||
if (sym == NULL)
|
||||
{
|
||||
error ("No struct type named %s.", name);
|
||||
error (_("No struct type named %s."), name);
|
||||
}
|
||||
if (TYPE_CODE (SYMBOL_TYPE (sym)) != TYPE_CODE_STRUCT)
|
||||
{
|
||||
error ("This context has class, union or enum %s, not a struct.", name);
|
||||
error (_("This context has class, union or enum %s, not a struct."), name);
|
||||
}
|
||||
return (SYMBOL_TYPE (sym));
|
||||
}
|
||||
|
@ -1141,7 +1141,7 @@ lookup_union (char *name, struct block *block)
|
|||
(struct symtab **) NULL);
|
||||
|
||||
if (sym == NULL)
|
||||
error ("No union type named %s.", name);
|
||||
error (_("No union type named %s."), name);
|
||||
|
||||
t = SYMBOL_TYPE (sym);
|
||||
|
||||
|
@ -1156,7 +1156,7 @@ lookup_union (char *name, struct block *block)
|
|||
return (t);
|
||||
|
||||
/* If we get here, it's not a union */
|
||||
error ("This context has class, struct or enum %s, not a union.", name);
|
||||
error (_("This context has class, struct or enum %s, not a union."), name);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1172,11 +1172,11 @@ lookup_enum (char *name, struct block *block)
|
|||
(struct symtab **) NULL);
|
||||
if (sym == NULL)
|
||||
{
|
||||
error ("No enum type named %s.", name);
|
||||
error (_("No enum type named %s."), name);
|
||||
}
|
||||
if (TYPE_CODE (SYMBOL_TYPE (sym)) != TYPE_CODE_ENUM)
|
||||
{
|
||||
error ("This context has class, struct or union %s, not an enum.", name);
|
||||
error (_("This context has class, struct or union %s, not an enum."), name);
|
||||
}
|
||||
return (SYMBOL_TYPE (sym));
|
||||
}
|
||||
|
@ -1198,11 +1198,11 @@ lookup_template_type (char *name, struct type *type, struct block *block)
|
|||
|
||||
if (sym == NULL)
|
||||
{
|
||||
error ("No template type named %s.", name);
|
||||
error (_("No template type named %s."), name);
|
||||
}
|
||||
if (TYPE_CODE (SYMBOL_TYPE (sym)) != TYPE_CODE_STRUCT)
|
||||
{
|
||||
error ("This context has class, union or enum %s, not a struct.", name);
|
||||
error (_("This context has class, union or enum %s, not a struct."), name);
|
||||
}
|
||||
return (SYMBOL_TYPE (sym));
|
||||
}
|
||||
|
@ -1238,7 +1238,7 @@ lookup_struct_elt_type (struct type *type, char *name, int noerr)
|
|||
gdb_flush (gdb_stdout);
|
||||
fprintf_unfiltered (gdb_stderr, "Type ");
|
||||
type_print (type, "", gdb_stderr, -1);
|
||||
error (" is not a structure or union type.");
|
||||
error (_(" is not a structure or union type."));
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
@ -1288,7 +1288,7 @@ lookup_struct_elt_type (struct type *type, char *name, int noerr)
|
|||
type_print (type, "", gdb_stderr, -1);
|
||||
fprintf_unfiltered (gdb_stderr, " has no component named ");
|
||||
fputs_filtered (name, gdb_stderr);
|
||||
error (".");
|
||||
error (("."));
|
||||
return (struct type *) -1; /* For lint */
|
||||
}
|
||||
|
||||
|
@ -1554,7 +1554,7 @@ check_stub_method (struct type *type, int method_id, int signature_id)
|
|||
p = NULL;
|
||||
|
||||
if (demangled_name == NULL || p == NULL)
|
||||
error ("Internal: Cannot demangle mangled name `%s'.", mangled_name);
|
||||
error (_("Internal: Cannot demangle mangled name `%s'."), mangled_name);
|
||||
|
||||
/* Now, read in the parameters that define this type. */
|
||||
p += 1;
|
||||
|
@ -1811,7 +1811,7 @@ lookup_fundamental_type (struct objfile *objfile, int typeid)
|
|||
|
||||
if (typeid < 0 || typeid >= FT_NUM_MEMBERS)
|
||||
{
|
||||
error ("internal error - invalid fundamental type id %d", typeid);
|
||||
error (_("internal error - invalid fundamental type id %d"), typeid);
|
||||
}
|
||||
|
||||
/* If this is the first time we need a fundamental type for this objfile
|
||||
|
|
108
gdb/gnu-nat.c
108
gdb/gnu-nat.c
|
@ -332,7 +332,7 @@ proc_abort (struct proc *proc, int force)
|
|||
proc->sc = 1;
|
||||
inf_update_suspends (proc->inf);
|
||||
running = 0;
|
||||
warning ("Stopped %s.", proc_string (proc));
|
||||
warning (_("Stopped %s."), proc_string (proc));
|
||||
}
|
||||
else if (proc == inf->wait.thread && inf->wait.exc.reply && !force)
|
||||
/* An exception is pending on PROC, which don't mess with. */
|
||||
|
@ -468,7 +468,7 @@ proc_steal_exc_port (struct proc *proc, mach_port_t exc_port)
|
|||
if (!err)
|
||||
proc->exc_port = exc_port;
|
||||
else
|
||||
warning ("Error setting exception port for %s: %s",
|
||||
warning (_("Error setting exception port for %s: %s"),
|
||||
proc_string (proc), safe_strerror (err));
|
||||
}
|
||||
}
|
||||
|
@ -498,7 +498,7 @@ proc_restore_exc_port (struct proc *proc)
|
|||
if (!err)
|
||||
proc->exc_port = MACH_PORT_NULL;
|
||||
else
|
||||
warning ("Error setting exception port for %s: %s",
|
||||
warning (_("Error setting exception port for %s: %s"),
|
||||
proc_string (proc), safe_strerror (err));
|
||||
}
|
||||
}
|
||||
|
@ -575,7 +575,7 @@ make_proc (struct inf *inf, mach_port_t port, int tid)
|
|||
MACH_MSG_TYPE_MAKE_SEND_ONCE,
|
||||
&prev_port);
|
||||
if (err)
|
||||
warning ("Couldn't request notification for port %d: %s",
|
||||
warning (_("Couldn't request notification for port %d: %s"),
|
||||
port, safe_strerror (err));
|
||||
else
|
||||
{
|
||||
|
@ -725,7 +725,7 @@ inf_startup (struct inf *inf, int pid)
|
|||
err = mach_port_allocate (mach_task_self (),
|
||||
MACH_PORT_RIGHT_RECEIVE, &inf->event_port);
|
||||
if (err)
|
||||
error ("Error allocating event port: %s", safe_strerror (err));
|
||||
error (_("Error allocating event port: %s"), safe_strerror (err));
|
||||
|
||||
/* Make a send right for it, so we can easily copy it for other people. */
|
||||
mach_port_insert_right (mach_task_self (), inf->event_port,
|
||||
|
@ -749,7 +749,7 @@ inf_set_pid (struct inf *inf, pid_t pid)
|
|||
{
|
||||
error_t err = proc_pid2task (proc_server, pid, &task_port);
|
||||
if (err)
|
||||
error ("Error getting task for pid %d: %s", pid, safe_strerror (err));
|
||||
error (_("Error getting task for pid %d: %s"), pid, safe_strerror (err));
|
||||
}
|
||||
|
||||
inf_debug (inf, "setting task: %d", task_port);
|
||||
|
@ -859,7 +859,7 @@ inf_validate_task_sc (struct inf *inf)
|
|||
target_terminal_inferior (); /* Give it back to the child. */
|
||||
|
||||
if (abort)
|
||||
error ("Additional task suspend count left untouched.");
|
||||
error (_("Additional task suspend count left untouched."));
|
||||
|
||||
inf->task->cur_sc = suspend_count;
|
||||
}
|
||||
|
@ -885,12 +885,12 @@ inf_set_traced (struct inf *inf, int on)
|
|||
if (err == EIEIO)
|
||||
{
|
||||
if (on)
|
||||
warning ("Can't modify tracing state for pid %d: %s",
|
||||
warning (_("Can't modify tracing state for pid %d: %s"),
|
||||
inf->pid, "No signal thread");
|
||||
inf->traced = on;
|
||||
}
|
||||
else if (err)
|
||||
warning ("Can't modify tracing state for pid %d: %s",
|
||||
warning (_("Can't modify tracing state for pid %d: %s"),
|
||||
inf->pid, safe_strerror (err));
|
||||
else
|
||||
inf->traced = on;
|
||||
|
@ -1325,7 +1325,7 @@ inf_signal (struct inf *inf, enum target_signal sig)
|
|||
e->exception, e->code, e->subcode);
|
||||
}
|
||||
else
|
||||
error ("Can't forward spontaneous exception (%s).", NAME);
|
||||
error (_("Can't forward spontaneous exception (%s)."), NAME);
|
||||
}
|
||||
else
|
||||
/* A Unix signal. */
|
||||
|
@ -1365,9 +1365,9 @@ inf_signal (struct inf *inf, enum target_signal sig)
|
|||
|
||||
if (err == EIEIO)
|
||||
/* Can't do too much... */
|
||||
warning ("Can't deliver signal %s: No signal thread.", NAME);
|
||||
warning (_("Can't deliver signal %s: No signal thread."), NAME);
|
||||
else if (err)
|
||||
warning ("Delivering signal %s: %s", NAME, safe_strerror (err));
|
||||
warning (_("Delivering signal %s: %s"), NAME, safe_strerror (err));
|
||||
|
||||
#undef NAME
|
||||
}
|
||||
|
@ -1398,7 +1398,7 @@ inf_continue (struct inf *inf)
|
|||
}
|
||||
|
||||
if (err)
|
||||
warning ("Can't continue process: %s", safe_strerror (err));
|
||||
warning (_("Can't continue process: %s"), safe_strerror (err));
|
||||
}
|
||||
|
||||
|
||||
|
@ -1437,7 +1437,7 @@ gnu_wait (ptid_t tid, struct target_waitstatus *status)
|
|||
{
|
||||
inf_validate_procs (inf);
|
||||
if (!inf->threads && !inf->task->dead)
|
||||
error ("There are no threads; try again later.");
|
||||
error (_("There are no threads; try again later."));
|
||||
}
|
||||
|
||||
waiting_inf = inf;
|
||||
|
@ -1461,7 +1461,7 @@ rewait:
|
|||
err =
|
||||
proc_wait_request (proc_server, inf->event_port, inf->pid, WUNTRACED);
|
||||
if (err)
|
||||
warning ("wait request failed: %s", safe_strerror (err));
|
||||
warning (_("wait request failed: %s"), safe_strerror (err));
|
||||
else
|
||||
{
|
||||
inf_debug (inf, "waits pending: %d", proc_waits_pending);
|
||||
|
@ -1497,7 +1497,7 @@ rewait:
|
|||
if (err == EMACH_RCV_INTERRUPTED)
|
||||
inf_debug (inf, "interrupted");
|
||||
else if (err)
|
||||
error ("Couldn't wait for an event: %s", safe_strerror (err));
|
||||
error (_("Couldn't wait for an event: %s"), safe_strerror (err));
|
||||
else
|
||||
{
|
||||
struct
|
||||
|
@ -1517,10 +1517,10 @@ rewait:
|
|||
&& !process_reply_server (&msg.hdr, &reply.hdr)
|
||||
&& !msg_reply_server (&msg.hdr, &reply.hdr))
|
||||
/* Whatever it is, it's something strange. */
|
||||
error ("Got a strange event, msg id = %d.", msg.hdr.msgh_id);
|
||||
error (_("Got a strange event, msg id = %d."), msg.hdr.msgh_id);
|
||||
|
||||
if (reply.err)
|
||||
error ("Handling event, msgid = %d: %s",
|
||||
error (_("Handling event, msgid = %d: %s"),
|
||||
msg.hdr.msgh_id, safe_strerror (reply.err));
|
||||
}
|
||||
|
||||
|
@ -1703,7 +1703,7 @@ S_exception_raise_request (mach_port_t port, mach_port_t reply_port,
|
|||
void
|
||||
inf_task_died_status (struct inf *inf)
|
||||
{
|
||||
warning ("Pid %d died with unknown exit status, using SIGKILL.", inf->pid);
|
||||
warning (_("Pid %d died with unknown exit status, using SIGKILL."), inf->pid);
|
||||
inf->wait.status.kind = TARGET_WAITKIND_SIGNALLED;
|
||||
inf->wait.status.value.sig = TARGET_SIGNAL_KILL;
|
||||
}
|
||||
|
@ -1753,7 +1753,7 @@ do_mach_notify_dead_name (mach_port_t notify, mach_port_t dead_port)
|
|||
static error_t
|
||||
ill_rpc (char *fun)
|
||||
{
|
||||
warning ("illegal rpc: %s", fun);
|
||||
warning (_("illegal rpc: %s"), fun);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1818,7 +1818,7 @@ S_proc_wait_reply (mach_port_t reply, error_t err,
|
|||
{
|
||||
if (err != EINTR)
|
||||
{
|
||||
warning ("Can't wait for pid %d: %s", inf->pid, safe_strerror (err));
|
||||
warning (_("Can't wait for pid %d: %s"), inf->pid, safe_strerror (err));
|
||||
inf->no_wait = 1;
|
||||
|
||||
/* Since we can't see the inferior's signals, don't trap them. */
|
||||
|
@ -1874,7 +1874,7 @@ S_msg_sig_post_untraced_reply (mach_port_t reply, error_t err)
|
|||
inf->wait.status.value.sig = TARGET_SIGNAL_0;
|
||||
}
|
||||
else if (err)
|
||||
warning ("Signal delivery failed: %s", safe_strerror (err));
|
||||
warning (_("Signal delivery failed: %s"), safe_strerror (err));
|
||||
|
||||
if (err)
|
||||
/* We only get this reply when we've posted a signal to a process which we
|
||||
|
@ -1948,7 +1948,7 @@ gnu_resume (ptid_t tid, int step, enum target_signal sig)
|
|||
abort the faulting thread, which will perhaps retake it. */
|
||||
{
|
||||
proc_abort (inf->wait.thread, 1);
|
||||
warning ("Aborting %s with unforwarded exception %s.",
|
||||
warning (_("Aborting %s with unforwarded exception %s."),
|
||||
proc_string (inf->wait.thread),
|
||||
target_signal_to_name (inf->wait.status.value.sig));
|
||||
}
|
||||
|
@ -1972,7 +1972,7 @@ gnu_resume (ptid_t tid, int step, enum target_signal sig)
|
|||
{
|
||||
struct proc *thread = inf_tid_to_thread (inf, PIDGET (tid));
|
||||
if (!thread)
|
||||
error ("Can't run single thread id %d: no such thread!");
|
||||
error (_("Can't run single thread id %d: no such thread!"));
|
||||
inf_debug (inf, "running one thread: %d/%d", inf->pid, thread->tid);
|
||||
inf_set_threads_resume_sc (inf, thread, 0);
|
||||
}
|
||||
|
@ -1981,7 +1981,7 @@ gnu_resume (ptid_t tid, int step, enum target_signal sig)
|
|||
{
|
||||
step_thread = inf_tid_to_thread (inf, PIDGET (tid));
|
||||
if (!step_thread)
|
||||
warning ("Can't step thread id %d: no such thread.", PIDGET (tid));
|
||||
warning (_("Can't step thread id %d: no such thread."), PIDGET (tid));
|
||||
else
|
||||
inf_debug (inf, "stepping thread: %d/%d", inf->pid, step_thread->tid);
|
||||
}
|
||||
|
@ -2050,7 +2050,7 @@ gnu_create_inferior (char *exec_file, char *allargs, char **env,
|
|||
/* We're in the child; make this process stop as soon as it execs. */
|
||||
inf_debug (inf, "tracing self");
|
||||
if (ptrace (PTRACE_TRACEME) != 0)
|
||||
error ("ptrace (PTRACE_TRACEME) failed!");
|
||||
error (_("ptrace (PTRACE_TRACEME) failed!"));
|
||||
}
|
||||
void attach_to_child (int pid)
|
||||
{
|
||||
|
@ -2118,7 +2118,7 @@ gnu_attach (char *args, int from_tty)
|
|||
pid = atoi (args);
|
||||
|
||||
if (pid == getpid ()) /* Trying to masturbate? */
|
||||
error ("I refuse to debug myself!");
|
||||
error (_("I refuse to debug myself!"));
|
||||
|
||||
if (from_tty)
|
||||
{
|
||||
|
@ -2211,19 +2211,19 @@ gnu_prepare_to_store (void)
|
|||
static void
|
||||
gnu_open (char *arg, int from_tty)
|
||||
{
|
||||
error ("Use the \"run\" command to start a Unix child process.");
|
||||
error (_("Use the \"run\" command to start a Unix child process."));
|
||||
}
|
||||
|
||||
static void
|
||||
gnu_stop (void)
|
||||
{
|
||||
error ("to_stop target function not implemented");
|
||||
error (_("to_stop target function not implemented"));
|
||||
}
|
||||
|
||||
static char *
|
||||
gnu_pid_to_exec_file (int pid)
|
||||
{
|
||||
error ("to_pid_to_exec_file target function not implemented");
|
||||
error (_("to_pid_to_exec_file target function not implemented"));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -2257,13 +2257,13 @@ gnu_read_inferior (task_t task, CORE_ADDR addr, char *myaddr, int length)
|
|||
err = hurd_safe_copyin (myaddr, (void *) addr - low_address + copied, length);
|
||||
if (err)
|
||||
{
|
||||
warning ("Read from inferior faulted: %s", safe_strerror (err));
|
||||
warning (_("Read from inferior faulted: %s"), safe_strerror (err));
|
||||
length = 0;
|
||||
}
|
||||
|
||||
err = vm_deallocate (mach_task_self (), copied, copy_count);
|
||||
if (err)
|
||||
warning ("gnu_read_inferior vm_deallocate failed: %s", safe_strerror (err));
|
||||
warning (_("gnu_read_inferior vm_deallocate failed: %s"), safe_strerror (err));
|
||||
|
||||
return length;
|
||||
}
|
||||
|
@ -2348,7 +2348,7 @@ gnu_write_inferior (task_t task, CORE_ADDR addr, char *myaddr, int length)
|
|||
/* Check for holes in memory */
|
||||
if (old_address != region_address)
|
||||
{
|
||||
warning ("No memory at 0x%x. Nothing written",
|
||||
warning (_("No memory at 0x%x. Nothing written"),
|
||||
old_address);
|
||||
err = KERN_SUCCESS;
|
||||
length = 0;
|
||||
|
@ -2357,7 +2357,7 @@ gnu_write_inferior (task_t task, CORE_ADDR addr, char *myaddr, int length)
|
|||
|
||||
if (!(max_protection & VM_PROT_WRITE))
|
||||
{
|
||||
warning ("Memory at address 0x%x is unwritable. Nothing written",
|
||||
warning (_("Memory at address 0x%x is unwritable. Nothing written"),
|
||||
old_address);
|
||||
err = KERN_SUCCESS;
|
||||
length = 0;
|
||||
|
@ -2431,7 +2431,7 @@ out:
|
|||
|
||||
if (err != KERN_SUCCESS)
|
||||
{
|
||||
warning ("%s: %s", errstr, mach_error_string (err));
|
||||
warning (_("%s: %s"), errstr, mach_error_string (err));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -2510,7 +2510,7 @@ gnu_find_memory_regions (int (*func) (CORE_ADDR,
|
|||
break;
|
||||
if (err != KERN_SUCCESS)
|
||||
{
|
||||
warning ("vm_region failed: %s", mach_error_string (err));
|
||||
warning (_("vm_region failed: %s"), mach_error_string (err));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -2674,7 +2674,7 @@ parse_int_arg (char *args, char *cmd_prefix)
|
|||
if (*args && *arg_end == '\0')
|
||||
return val;
|
||||
}
|
||||
error ("Illegal argument for \"%s\" command, should be an integer.", cmd_prefix);
|
||||
error (_("Illegal argument for \"%s\" command, should be an integer."), cmd_prefix);
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -2685,7 +2685,7 @@ _parse_bool_arg (char *args, char *t_val, char *f_val, char *cmd_prefix)
|
|||
else if (strcmp (args, f_val) == 0)
|
||||
return 0;
|
||||
else
|
||||
error ("Illegal argument for \"%s\" command, should be \"%s\" or \"%s\".",
|
||||
error (_("Illegal argument for \"%s\" command, should be \"%s\" or \"%s\"."),
|
||||
cmd_prefix, t_val, f_val);
|
||||
}
|
||||
|
||||
|
@ -2696,7 +2696,7 @@ static void
|
|||
check_empty (char *args, char *cmd_prefix)
|
||||
{
|
||||
if (args)
|
||||
error ("Garbage after \"%s\" command: `%s'", cmd_prefix, args);
|
||||
error (_("Garbage after \"%s\" command: `%s'"), cmd_prefix, args);
|
||||
}
|
||||
|
||||
/* Returns the alive thread named by INFERIOR_PID, or signals an error. */
|
||||
|
@ -2706,7 +2706,7 @@ cur_thread (void)
|
|||
struct inf *inf = cur_inf ();
|
||||
struct proc *thread = inf_tid_to_thread (inf, PIDGET (inferior_ptid));
|
||||
if (!thread)
|
||||
error ("No current thread.");
|
||||
error (_("No current thread."));
|
||||
return thread;
|
||||
}
|
||||
|
||||
|
@ -2716,7 +2716,7 @@ active_inf (void)
|
|||
{
|
||||
struct inf *inf = cur_inf ();
|
||||
if (!inf->task)
|
||||
error ("No current process.");
|
||||
error (_("No current process."));
|
||||
return inf;
|
||||
}
|
||||
|
||||
|
@ -2823,13 +2823,13 @@ steal_exc_port (struct proc *proc, mach_port_t name)
|
|||
mach_msg_type_name_t port_type;
|
||||
|
||||
if (!proc || !proc->inf->task)
|
||||
error ("No inferior task.");
|
||||
error (_("No inferior task."));
|
||||
|
||||
err = mach_port_extract_right (proc->inf->task->port,
|
||||
name, MACH_MSG_TYPE_COPY_SEND,
|
||||
&port, &port_type);
|
||||
if (err)
|
||||
error ("Couldn't extract send right %d from inferior: %s",
|
||||
error (_("Couldn't extract send right %d from inferior: %s"),
|
||||
name, safe_strerror (err));
|
||||
|
||||
if (proc->saved_exc_port)
|
||||
|
@ -2844,7 +2844,7 @@ steal_exc_port (struct proc *proc, mach_port_t name)
|
|||
{
|
||||
proc->exc_port = proc->inf->event_port;
|
||||
err = proc_set_exception_port (proc, proc->exc_port);
|
||||
error ("Can't set exception port for %s: %s",
|
||||
error (_("Can't set exception port for %s: %s"),
|
||||
proc_string (proc), safe_strerror (err));
|
||||
}
|
||||
}
|
||||
|
@ -2854,7 +2854,7 @@ set_task_exc_port_cmd (char *args, int from_tty)
|
|||
{
|
||||
struct inf *inf = cur_inf ();
|
||||
if (!args)
|
||||
error ("No argument to \"set task exception-port\" command.");
|
||||
error (_("No argument to \"set task exception-port\" command."));
|
||||
steal_exc_port (inf->task, parse_and_eval_address (args));
|
||||
}
|
||||
|
||||
|
@ -2879,8 +2879,8 @@ set_sig_thread_cmd (char *args, int from_tty)
|
|||
struct inf *inf = cur_inf ();
|
||||
|
||||
if (!args || (!isdigit (*args) && strcmp (args, "none") != 0))
|
||||
error ("Illegal argument to \"set signal-thread\" command.\n"
|
||||
"Should be an integer thread ID, or `none'.");
|
||||
error (_("Illegal argument to \"set signal-thread\" command.\n"
|
||||
"Should be an integer thread ID, or `none'."));
|
||||
|
||||
if (strcmp (args, "none") == 0)
|
||||
inf->signal_thread = 0;
|
||||
|
@ -2888,8 +2888,8 @@ set_sig_thread_cmd (char *args, int from_tty)
|
|||
{
|
||||
int tid = PIDGET (thread_id_to_pid (atoi (args)));
|
||||
if (tid < 0)
|
||||
error ("Thread ID %s not known. Use the \"info threads\" command to\n"
|
||||
"see the IDs of currently known threads.", args);
|
||||
error (_("Thread ID %s not known. Use the \"info threads\" command to\n"
|
||||
"see the IDs of currently known threads."), args);
|
||||
inf->signal_thread = inf_tid_to_thread (inf, tid);
|
||||
}
|
||||
}
|
||||
|
@ -3019,7 +3019,7 @@ info_port_rights (char *args, mach_port_type_t only)
|
|||
print_port_info (right, 0, inf->task->port, PORTINFO_DETAILS,
|
||||
stdout);
|
||||
if (err)
|
||||
error ("%ld: %s.", right, safe_strerror (err));
|
||||
error (_("%ld: %s."), right, safe_strerror (err));
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -3029,7 +3029,7 @@ info_port_rights (char *args, mach_port_type_t only)
|
|||
print_task_ports_info (inf->task->port, only, PORTINFO_DETAILS,
|
||||
stdout);
|
||||
if (err)
|
||||
error ("%s.", safe_strerror (err));
|
||||
error (_("%s."), safe_strerror (err));
|
||||
}
|
||||
|
||||
value_free_to_mark (vmark);
|
||||
|
@ -3263,7 +3263,7 @@ set_thread_exc_port_cmd (char *args, int from_tty)
|
|||
{
|
||||
struct proc *thread = cur_thread ();
|
||||
if (!args)
|
||||
error ("No argument to \"set thread exception-port\" command.");
|
||||
error (_("No argument to \"set thread exception-port\" command."));
|
||||
steal_exc_port (thread, parse_and_eval_address (args));
|
||||
}
|
||||
|
||||
|
@ -3290,7 +3290,7 @@ thread_takeover_sc_cmd (char *args, int from_tty)
|
|||
error_t err =
|
||||
thread_info (thread->port, THREAD_BASIC_INFO, (int *) &info, &info_len);
|
||||
if (err)
|
||||
error ("%s.", safe_strerror (err));
|
||||
error (("%s."), safe_strerror (err));
|
||||
thread->sc = info->suspend_count;
|
||||
if (from_tty)
|
||||
printf_unfiltered ("Suspend count was %d.\n", thread->sc);
|
||||
|
@ -3401,6 +3401,6 @@ flush_inferior_icache (CORE_ADDR pc, int amount)
|
|||
MATTR_CACHE,
|
||||
&flush);
|
||||
if (ret != KERN_SUCCESS)
|
||||
warning ("Error flushing inferior's cache : %s", safe_strerror (ret));
|
||||
warning (_("Error flushing inferior's cache : %s"), safe_strerror (ret));
|
||||
}
|
||||
#endif /* FLUSH_INFERIOR_CACHE */
|
||||
|
|
|
@ -175,7 +175,7 @@ gnuv2_virtual_fn_field (struct value **arg1p, struct fn_field * f, int j,
|
|||
else if (TYPE_CODE (entry_type) == TYPE_CODE_PTR)
|
||||
vfn = entry;
|
||||
else
|
||||
error ("I'm confused: virtual function table has bad type");
|
||||
error (_("I'm confused: virtual function table has bad type"));
|
||||
/* Reinstantiate the function pointer with the correct type. */
|
||||
deprecated_set_value_type (vfn, lookup_pointer_type (TYPE_FN_FIELD_TYPE (f, j)));
|
||||
|
||||
|
|
|
@ -245,10 +245,10 @@ gnuv3_rtti_type (struct value *value,
|
|||
if (vtable_symbol_name == NULL
|
||||
|| strncmp (vtable_symbol_name, "vtable for ", 11))
|
||||
{
|
||||
warning ("can't find linker symbol for virtual table for `%s' value",
|
||||
warning (_("can't find linker symbol for virtual table for `%s' value"),
|
||||
TYPE_NAME (values_type));
|
||||
if (vtable_symbol_name)
|
||||
warning (" found `%s' instead", vtable_symbol_name);
|
||||
warning (_(" found `%s' instead"), vtable_symbol_name);
|
||||
return NULL;
|
||||
}
|
||||
class_name = vtable_symbol_name + 11;
|
||||
|
@ -291,7 +291,7 @@ gnuv3_virtual_fn_field (struct value **value_p,
|
|||
|
||||
/* Some simple sanity checks. */
|
||||
if (TYPE_CODE (values_type) != TYPE_CODE_CLASS)
|
||||
error ("Only classes can have virtual functions.");
|
||||
error (_("Only classes can have virtual functions."));
|
||||
|
||||
/* Find the base class that defines this virtual function. */
|
||||
vfn_base = TYPE_FN_FIELD_FCONTEXT (f, j);
|
||||
|
@ -308,7 +308,7 @@ gnuv3_virtual_fn_field (struct value **value_p,
|
|||
if (TYPE_VPTR_FIELDNO (vfn_base) < 0)
|
||||
fill_in_vptr_fieldno (vfn_base);
|
||||
if (TYPE_VPTR_FIELDNO (vfn_base) < 0)
|
||||
error ("Could not find virtual table pointer for class \"%s\".",
|
||||
error (_("Could not find virtual table pointer for class \"%s\"."),
|
||||
TYPE_TAG_NAME (vfn_base) ? TYPE_TAG_NAME (vfn_base) : "<unknown>");
|
||||
|
||||
/* Now that we know which base class is defining our virtual
|
||||
|
@ -378,11 +378,11 @@ gnuv3_baseclass_offset (struct type *type, int index, char *valaddr,
|
|||
worthwhile. */
|
||||
cur_base_offset = TYPE_BASECLASS_BITPOS (type, index) / 8;
|
||||
if (cur_base_offset >= - vtable_address_point_offset ())
|
||||
error ("Expected a negative vbase offset (old compiler?)");
|
||||
error (_("Expected a negative vbase offset (old compiler?)"));
|
||||
|
||||
cur_base_offset = cur_base_offset + vtable_address_point_offset ();
|
||||
if ((- cur_base_offset) % TYPE_LENGTH (builtin_type_void_data_ptr) != 0)
|
||||
error ("Misaligned vbase offset.");
|
||||
error (_("Misaligned vbase offset."));
|
||||
cur_base_offset = cur_base_offset
|
||||
/ ((int) TYPE_LENGTH (builtin_type_void_data_ptr));
|
||||
|
||||
|
@ -403,7 +403,7 @@ gnuv3_baseclass_offset (struct type *type, int index, char *valaddr,
|
|||
|
||||
if (TYPE_VPTR_FIELDNO (vbasetype) >= 0
|
||||
&& TYPE_FIELD_BITPOS (vbasetype, TYPE_VPTR_FIELDNO (vbasetype)) != 0)
|
||||
error ("Illegal vptr offset in class %s",
|
||||
error (_("Illegal vptr offset in class %s"),
|
||||
TYPE_NAME (vbasetype) ? TYPE_NAME (vbasetype) : "<unknown>");
|
||||
|
||||
vtable_address = value_as_address (value_at_lazy (builtin_type_void_data_ptr,
|
||||
|
|
|
@ -307,9 +307,9 @@ go32_close (int quitting)
|
|||
static void
|
||||
go32_attach (char *args, int from_tty)
|
||||
{
|
||||
error ("\
|
||||
error (_("\
|
||||
You cannot attach to a running program on this platform.\n\
|
||||
Use the `run' command to run DJGPP programs.");
|
||||
Use the `run' command to run DJGPP programs."));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -612,7 +612,7 @@ go32_create_inferior (char *exec_file, char *args, char **env, int from_tty)
|
|||
if (redir_cmdline_parse (args, &child_cmd) == 0)
|
||||
args = child_cmd.command;
|
||||
else
|
||||
error ("Syntax error in command line.");
|
||||
error (_("Syntax error in command line."));
|
||||
}
|
||||
else
|
||||
child_cmd.command = xstrdup (args);
|
||||
|
@ -621,7 +621,7 @@ go32_create_inferior (char *exec_file, char *args, char **env, int from_tty)
|
|||
/* v2loadimage passes command lines via DOS memory, so it cannot
|
||||
possibly handle commands longer than 1MB. */
|
||||
if (cmdlen > 1024*1024)
|
||||
error ("Command line too long.");
|
||||
error (_("Command line too long."));
|
||||
|
||||
cmdline = xmalloc (cmdlen + 4);
|
||||
strcpy (cmdline + 1, args);
|
||||
|
@ -805,7 +805,7 @@ go32_terminal_inferior (void)
|
|||
if (redir_to_child (&child_cmd) == -1)
|
||||
{
|
||||
redir_to_debugger (&child_cmd);
|
||||
error ("Cannot redirect standard handles for program: %s.",
|
||||
error (_("Cannot redirect standard handles for program: %s."),
|
||||
safe_strerror (errno));
|
||||
}
|
||||
/* set the console device of the inferior to whatever mode
|
||||
|
@ -839,7 +839,7 @@ go32_terminal_ours (void)
|
|||
if (redir_to_debugger (&child_cmd) == -1)
|
||||
{
|
||||
redir_to_child (&child_cmd);
|
||||
error ("Cannot redirect standard handles for debugger: %s.",
|
||||
error (_("Cannot redirect standard handles for debugger: %s."),
|
||||
safe_strerror (errno));
|
||||
}
|
||||
}
|
||||
|
@ -1517,7 +1517,7 @@ go32_sldt (char *arg, int from_tty)
|
|||
if (ldt_entry < 0
|
||||
|| (ldt_entry & 4) == 0
|
||||
|| (ldt_entry & 3) != (cpl & 3))
|
||||
error ("Invalid LDT entry 0x%03lx.", (unsigned long)ldt_entry);
|
||||
error (_("Invalid LDT entry 0x%03lx."), (unsigned long)ldt_entry);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1555,7 +1555,7 @@ go32_sldt (char *arg, int from_tty)
|
|||
if (ldt_entry >= 0)
|
||||
{
|
||||
if (ldt_entry > limit)
|
||||
error ("Invalid LDT entry %#lx: outside valid limits [0..%#x]",
|
||||
error (_("Invalid LDT entry %#lx: outside valid limits [0..%#x]"),
|
||||
(unsigned long)ldt_entry, limit);
|
||||
|
||||
display_descriptor (ldt_descr.stype, base, ldt_entry / 8, 1);
|
||||
|
@ -1586,7 +1586,7 @@ go32_sgdt (char *arg, int from_tty)
|
|||
{
|
||||
gdt_entry = parse_and_eval_long (arg);
|
||||
if (gdt_entry < 0 || (gdt_entry & 7) != 0)
|
||||
error ("Invalid GDT entry 0x%03lx: not an integral multiple of 8.",
|
||||
error (_("Invalid GDT entry 0x%03lx: not an integral multiple of 8."),
|
||||
(unsigned long)gdt_entry);
|
||||
}
|
||||
}
|
||||
|
@ -1597,7 +1597,7 @@ go32_sgdt (char *arg, int from_tty)
|
|||
if (gdt_entry >= 0)
|
||||
{
|
||||
if (gdt_entry > gdtr.limit)
|
||||
error ("Invalid GDT entry %#lx: outside valid limits [0..%#x]",
|
||||
error (_("Invalid GDT entry %#lx: outside valid limits [0..%#x]"),
|
||||
(unsigned long)gdt_entry, gdtr.limit);
|
||||
|
||||
display_descriptor (0, gdtr.base, gdt_entry / 8, 1);
|
||||
|
@ -1627,7 +1627,7 @@ go32_sidt (char *arg, int from_tty)
|
|||
{
|
||||
idt_entry = parse_and_eval_long (arg);
|
||||
if (idt_entry < 0)
|
||||
error ("Invalid (negative) IDT entry %ld.", idt_entry);
|
||||
error (_("Invalid (negative) IDT entry %ld."), idt_entry);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1639,7 +1639,7 @@ go32_sidt (char *arg, int from_tty)
|
|||
if (idt_entry >= 0)
|
||||
{
|
||||
if (idt_entry > idtr.limit)
|
||||
error ("Invalid IDT entry %#lx: outside valid limits [0..%#x]",
|
||||
error (_("Invalid IDT entry %#lx: outside valid limits [0..%#x]"),
|
||||
(unsigned long)idt_entry, idtr.limit);
|
||||
|
||||
display_descriptor (1, idtr.base, idt_entry, 1);
|
||||
|
@ -1798,7 +1798,7 @@ go32_pde (char *arg, int from_tty)
|
|||
{
|
||||
pde_idx = parse_and_eval_long (arg);
|
||||
if (pde_idx < 0 || pde_idx >= 1024)
|
||||
error ("Entry %ld is outside valid limits [0..1023].", pde_idx);
|
||||
error (_("Entry %ld is outside valid limits [0..1023]."), pde_idx);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1847,7 +1847,7 @@ go32_pte (char *arg, int from_tty)
|
|||
{
|
||||
pde_idx = parse_and_eval_long (arg);
|
||||
if (pde_idx < 0 || pde_idx >= 1024)
|
||||
error ("Entry %ld is outside valid limits [0..1023].", pde_idx);
|
||||
error (_("Entry %ld is outside valid limits [0..1023]."), pde_idx);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -99,7 +99,7 @@ hpacc_virtual_fn_field (struct value **arg1p, struct fn_field * f, int j,
|
|||
argp = value_cast (type, *arg1p);
|
||||
|
||||
if (VALUE_ADDRESS (argp) == 0)
|
||||
error ("Address of object is null; object may not have been created.");
|
||||
error (_("Address of object is null; object may not have been created."));
|
||||
|
||||
/* pai: FIXME -- 32x64 possible problem? */
|
||||
/* First word (4 bytes) in object layout is the vtable pointer */
|
||||
|
@ -164,7 +164,7 @@ hpacc_virtual_fn_field (struct value **arg1p, struct fn_field * f, int j,
|
|||
}
|
||||
|
||||
if (!coreptr)
|
||||
error ("Address of virtual function is null; error in virtual table?");
|
||||
error (_("Address of virtual function is null; error in virtual table?"));
|
||||
|
||||
/* Wrap this addr in a value and return pointer */
|
||||
vp = allocate_value (ftype);
|
||||
|
@ -243,8 +243,8 @@ hpacc_value_rtti_type (struct value *v, int *full, int *top, int *using_enc)
|
|||
* to the string name */
|
||||
coreptr = *(CORE_ADDR *) (value_contents (vp));
|
||||
if (!coreptr)
|
||||
error ("Retrieved null typeinfo pointer in trying to determine "
|
||||
"run-time type");
|
||||
error (_("Retrieved null typeinfo pointer in trying to determine "
|
||||
"run-time type"));
|
||||
/* 4 -> offset of name field */
|
||||
vp = value_at (builtin_type_int, coreptr + 4);
|
||||
/* FIXME possible 32x64 problem */
|
||||
|
@ -254,13 +254,13 @@ hpacc_value_rtti_type (struct value *v, int *full, int *top, int *using_enc)
|
|||
read_memory_string (coreptr, rtti_type_name, 256);
|
||||
|
||||
if (strlen (rtti_type_name) == 0)
|
||||
error ("Retrieved null type name from typeinfo");
|
||||
error (_("Retrieved null type name from typeinfo"));
|
||||
|
||||
/* search for type */
|
||||
rtti_type = lookup_typename (rtti_type_name, (struct block *) 0, 1);
|
||||
|
||||
if (!rtti_type)
|
||||
error ("Could not find run-time type: invalid type name %s in typeinfo??",
|
||||
error (_("Could not find run-time type: invalid type name %s in typeinfo??"),
|
||||
rtti_type_name);
|
||||
CHECK_TYPEDEF (rtti_type);
|
||||
#if 0
|
||||
|
|
|
@ -109,7 +109,7 @@ hppa_hpux_fetch_register (int regnum)
|
|||
lwpid_t lwp = ptid_get_lwp (inferior_ptid);
|
||||
|
||||
if (ttrace (TT_LWP_RUREGS, pid, lwp, addr, size, (uintptr_t)buf) == -1)
|
||||
error ("Couldn't read register %s (#%d): %s",
|
||||
error (_("Couldn't read register %s (#%d): %s"),
|
||||
REGISTER_NAME (regnum), regnum, safe_strerror (errno));
|
||||
}
|
||||
#else
|
||||
|
@ -122,7 +122,7 @@ hppa_hpux_fetch_register (int regnum)
|
|||
errno = 0;
|
||||
buf[i] = ptrace (PT_RUREGS, pid, (PTRACE_TYPE_ARG3) addr, 0, 0);
|
||||
if (errno != 0)
|
||||
error ("Couldn't read register %s (#%d): %s",
|
||||
error (_("Couldn't read register %s (#%d): %s"),
|
||||
REGISTER_NAME (regnum), regnum, safe_strerror (errno));
|
||||
|
||||
addr += sizeof (PTRACE_TYPE_RET);
|
||||
|
@ -186,7 +186,7 @@ hppa_hpux_store_register (int regnum)
|
|||
lwpid_t lwp = ptid_get_lwp (inferior_ptid);
|
||||
|
||||
if (ttrace (TT_LWP_WUREGS, pid, lwp, addr, size, (uintptr_t)buf) == -1)
|
||||
error ("Couldn't write register %s (#%d): %s",
|
||||
error (_("Couldn't write register %s (#%d): %s"),
|
||||
REGISTER_NAME (regnum), regnum, safe_strerror (errno));
|
||||
}
|
||||
#else
|
||||
|
@ -199,7 +199,7 @@ hppa_hpux_store_register (int regnum)
|
|||
errno = 0;
|
||||
ptrace (PT_WUREGS, pid, (PTRACE_TYPE_ARG3) addr, buf[i], 0);
|
||||
if (errno != 0)
|
||||
error ("Couldn't write register %s (#%d): %s",
|
||||
error (_("Couldn't write register %s (#%d): %s"),
|
||||
REGISTER_NAME (regnum), regnum, safe_strerror (errno));
|
||||
|
||||
addr += sizeof (PTRACE_TYPE_RET);
|
||||
|
|
|
@ -140,7 +140,7 @@ hppa32_hpux_in_solib_call_trampoline (CORE_ADDR pc, char *name)
|
|||
}
|
||||
|
||||
/* Should never happen. */
|
||||
warning ("Unable to find branch in parameter relocation stub.\n");
|
||||
warning (_("Unable to find branch in parameter relocation stub."));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -266,7 +266,7 @@ hppa_hpux_in_solib_return_trampoline (CORE_ADDR pc, char *name)
|
|||
}
|
||||
|
||||
/* Should never happen. */
|
||||
warning ("Unable to find branch in parameter relocation stub.\n");
|
||||
warning (_("Unable to find branch in parameter relocation stub."));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -406,7 +406,7 @@ hppa_hpux_skip_trampoline_code (CORE_ADDR pc)
|
|||
/* Make sure we haven't walked outside the range of this stub. */
|
||||
if (u != find_unwind_entry (loc))
|
||||
{
|
||||
warning ("Unable to find branch in linker stub");
|
||||
warning (_("Unable to find branch in linker stub"));
|
||||
return orig_pc == pc ? 0 : pc & ~0x3;
|
||||
}
|
||||
|
||||
|
@ -423,7 +423,7 @@ hppa_hpux_skip_trampoline_code (CORE_ADDR pc)
|
|||
return (hppa_extract_21 (prev_inst) + hppa_extract_17 (curr_inst)) & ~0x3;
|
||||
else
|
||||
{
|
||||
warning ("Unable to find ldil X,%%r1 before ble Y(%%sr4,%%r1).");
|
||||
warning (_("Unable to find ldil X,%%r1 before ble Y(%%sr4,%%r1)."));
|
||||
return orig_pc == pc ? 0 : pc & ~0x3;
|
||||
}
|
||||
}
|
||||
|
@ -459,14 +459,14 @@ hppa_hpux_skip_trampoline_code (CORE_ADDR pc)
|
|||
stubsym = lookup_minimal_symbol_by_pc (loc);
|
||||
if (stubsym == NULL)
|
||||
{
|
||||
warning ("Unable to find symbol for 0x%lx", loc);
|
||||
warning (_("Unable to find symbol for 0x%lx"), loc);
|
||||
return orig_pc == pc ? 0 : pc & ~0x3;
|
||||
}
|
||||
|
||||
libsym = lookup_minimal_symbol (DEPRECATED_SYMBOL_NAME (stubsym), NULL, NULL);
|
||||
if (libsym == NULL)
|
||||
{
|
||||
warning ("Unable to find library symbol for %s\n",
|
||||
warning (_("Unable to find library symbol for %s."),
|
||||
DEPRECATED_SYMBOL_NAME (stubsym));
|
||||
return orig_pc == pc ? 0 : pc & ~0x3;
|
||||
}
|
||||
|
@ -496,7 +496,7 @@ hppa_hpux_skip_trampoline_code (CORE_ADDR pc)
|
|||
(read_register (HPPA_SP_REGNUM) - 8, 4)) & ~0x3;
|
||||
else
|
||||
{
|
||||
warning ("Unable to find restore of %%rp before bv (%%rp).");
|
||||
warning (_("Unable to find restore of %%rp before bv (%%rp)."));
|
||||
return orig_pc == pc ? 0 : pc & ~0x3;
|
||||
}
|
||||
}
|
||||
|
@ -611,8 +611,8 @@ setup_d_pid_in_inferior (void)
|
|||
msymbol = lookup_minimal_symbol ("__d_pid", NULL, symfile_objfile);
|
||||
if (msymbol == NULL)
|
||||
{
|
||||
warning ("Unable to find __d_pid symbol in object file.");
|
||||
warning ("Suggest linking executable with -g (links in /opt/langtools/lib/end.o).");
|
||||
warning (_("Unable to find __d_pid symbol in object file.\n"
|
||||
"Suggest linking executable with -g (links in /opt/langtools/lib/end.o)."));
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -620,8 +620,8 @@ setup_d_pid_in_inferior (void)
|
|||
store_unsigned_integer (buf, 4, PIDGET (inferior_ptid)); /* FIXME 32x64? */
|
||||
if (target_write_memory (anaddr, buf, 4)) /* FIXME 32x64? */
|
||||
{
|
||||
warning ("Unable to write __d_pid");
|
||||
warning ("Suggest linking executable with -g (links in /opt/langtools/lib/end.o).");
|
||||
warning (_("Unable to write __d_pid.\n"
|
||||
"Suggest linking executable with -g (links in /opt/langtools/lib/end.o)."));
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
@ -709,7 +709,7 @@ find_stub_with_shl_get (struct minimal_symbol *function, CORE_ADDR handle)
|
|||
|
||||
target_read_memory (value_return_addr, (char *) &stub_addr, sizeof (stub_addr));
|
||||
if (stub_addr <= 0)
|
||||
error ("call to __d_shl_get failed, error code is %d", err_value);
|
||||
error (_("call to __d_shl_get failed, error code is %d"), err_value);
|
||||
|
||||
return (stub_addr);
|
||||
}
|
||||
|
@ -794,10 +794,11 @@ initialize_hp_cxx_exception_support (void)
|
|||
}
|
||||
else
|
||||
{
|
||||
warning ("Unable to find exception callback hook (%s).",
|
||||
warning (_("\
|
||||
Unable to find exception callback hook (%s).\n\
|
||||
Executable may not have been compiled debuggable with HP aCC.\n\
|
||||
GDB will be unable to intercept exception events."),
|
||||
HP_ACC_EH_notify_hook);
|
||||
warning ("Executable may not have been compiled debuggable with HP aCC.");
|
||||
warning ("GDB will be unable to intercept exception events.");
|
||||
eh_notify_hook_addr = 0;
|
||||
hp_cxx_exception_support = 0;
|
||||
return 0;
|
||||
|
@ -814,10 +815,11 @@ initialize_hp_cxx_exception_support (void)
|
|||
}
|
||||
else
|
||||
{
|
||||
warning ("Unable to find exception callback routine (%s).",
|
||||
warning (_("\
|
||||
Unable to find exception callback routine (%s).\n\
|
||||
Suggest linking executable with -g (links in /opt/langtools/lib/end.o).\n\
|
||||
GDB will be unable to intercept exception events."),
|
||||
HP_ACC_EH_notify_callback);
|
||||
warning ("Suggest linking executable with -g (links in /opt/langtools/lib/end.o).");
|
||||
warning ("GDB will be unable to intercept exception events.");
|
||||
eh_notify_callback_addr = 0;
|
||||
return 0;
|
||||
}
|
||||
|
@ -859,8 +861,9 @@ initialize_hp_cxx_exception_support (void)
|
|||
{
|
||||
/* We can get here either if there is no plabel in the export list
|
||||
for the main image, or if something strange happened (?) */
|
||||
warning ("Couldn't find a plabel (indirect function label) for the exception callback.");
|
||||
warning ("GDB will not be able to intercept exception events.");
|
||||
warning (_("\
|
||||
Couldn't find a plabel (indirect function label) for the exception callback.\n\
|
||||
GDB will not be able to intercept exception events."));
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@ -878,9 +881,11 @@ initialize_hp_cxx_exception_support (void)
|
|||
}
|
||||
else
|
||||
{
|
||||
warning ("Unable to find exception callback routine to set breakpoint (%s).", HP_ACC_EH_break);
|
||||
warning ("Suggest linking executable with -g (link in /opt/langtools/lib/end.o).");
|
||||
warning ("GDB will be unable to intercept exception events.");
|
||||
warning (_("\
|
||||
Unable to find exception callback routine to set breakpoint (%s).\n\
|
||||
Suggest linking executable with -g (link in /opt/langtools/lib/end.o).\n\
|
||||
GDB will be unable to intercept exception events."),
|
||||
HP_ACC_EH_break);
|
||||
eh_break_addr = 0;
|
||||
return 0;
|
||||
}
|
||||
|
@ -904,9 +909,10 @@ initialize_hp_cxx_exception_support (void)
|
|||
}
|
||||
else
|
||||
{
|
||||
warning ("Unable to enable interception of exception catches.");
|
||||
warning ("Executable may not have been compiled debuggable with HP aCC.");
|
||||
warning ("Suggest linking executable with -g (link in /opt/langtools/lib/end.o).");
|
||||
warning (_("\
|
||||
Unable to enable interception of exception catches.\n\
|
||||
Executable may not have been compiled debuggable with HP aCC.\n\
|
||||
Suggest linking executable with -g (link in /opt/langtools/lib/end.o)."));
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@ -930,9 +936,10 @@ initialize_hp_cxx_exception_support (void)
|
|||
}
|
||||
else
|
||||
{
|
||||
warning ("Unable to enable interception of exception throws.");
|
||||
warning ("Executable may not have been compiled debuggable with HP aCC.");
|
||||
warning ("Suggest linking executable with -g (link in /opt/langtools/lib/end.o).");
|
||||
warning (_("\
|
||||
Unable to enable interception of exception throws.\n\
|
||||
Executable may not have been compiled debuggable with HP aCC.\n\
|
||||
Suggest linking executable with -g (link in /opt/langtools/lib/end.o)."));
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@ -980,8 +987,9 @@ child_enable_exception_callback (enum exception_event_kind kind, int enable)
|
|||
/* pai: (temp) FIXME should there be a pack operation first? */
|
||||
if (target_write_memory (eh_notify_hook_addr, buf, 4)) /* FIXME 32x64 problem */
|
||||
{
|
||||
warning ("Could not write to target memory for exception event callback.");
|
||||
warning ("Interception of exception events may not work.");
|
||||
warning (_("\
|
||||
Could not write to target memory for exception event callback.\n\
|
||||
Interception of exception events may not work."));
|
||||
return (struct symtab_and_line *) -1;
|
||||
}
|
||||
if (enable)
|
||||
|
@ -994,7 +1002,7 @@ child_enable_exception_callback (enum exception_event_kind kind, int enable)
|
|||
}
|
||||
else
|
||||
{
|
||||
warning ("Internal error: Invalid inferior pid? Cannot intercept exception events.");
|
||||
warning (_("Internal error: Invalid inferior pid? Cannot intercept exception events."));
|
||||
return (struct symtab_and_line *) -1;
|
||||
}
|
||||
}
|
||||
|
@ -1005,7 +1013,7 @@ child_enable_exception_callback (enum exception_event_kind kind, int enable)
|
|||
store_unsigned_integer (buf, 4, enable ? 1 : 0);
|
||||
if (target_write_memory (eh_catch_throw_addr, buf, 4)) /* FIXME 32x64? */
|
||||
{
|
||||
warning ("Couldn't enable exception throw interception.");
|
||||
warning (_("Couldn't enable exception throw interception."));
|
||||
return (struct symtab_and_line *) -1;
|
||||
}
|
||||
break;
|
||||
|
@ -1013,12 +1021,12 @@ child_enable_exception_callback (enum exception_event_kind kind, int enable)
|
|||
store_unsigned_integer (buf, 4, enable ? 1 : 0);
|
||||
if (target_write_memory (eh_catch_catch_addr, buf, 4)) /* FIXME 32x64? */
|
||||
{
|
||||
warning ("Couldn't enable exception catch interception.");
|
||||
warning (_("Couldn't enable exception catch interception."));
|
||||
return (struct symtab_and_line *) -1;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
error ("Request to enable unknown or unsupported exception event.");
|
||||
error (_("Request to enable unknown or unsupported exception event."));
|
||||
}
|
||||
|
||||
/* Copy break address into new sal struct, malloc'ing if needed. */
|
||||
|
@ -1351,7 +1359,7 @@ hppa32_hpux_search_dummy_call_sequence (struct gdbarch *gdbarch, CORE_ADDR pc,
|
|||
if (!priv)
|
||||
priv = hppa_init_objfile_priv_data (obj);
|
||||
if (!priv)
|
||||
error ("Internal error creating objfile private data.\n");
|
||||
error (_("Internal error creating objfile private data."));
|
||||
|
||||
/* Use the cached value if we have one. */
|
||||
if (priv->dummy_call_sequence_addr != 0)
|
||||
|
@ -1446,7 +1454,7 @@ hppa64_hpux_search_dummy_call_sequence (struct gdbarch *gdbarch, CORE_ADDR pc,
|
|||
if (!priv)
|
||||
priv = hppa_init_objfile_priv_data (obj);
|
||||
if (!priv)
|
||||
error ("Internal error creating objfile private data.\n");
|
||||
error (_("Internal error creating objfile private data."));
|
||||
|
||||
/* Use the cached value if we have one. */
|
||||
if (priv->dummy_call_sequence_addr != 0)
|
||||
|
@ -1598,8 +1606,8 @@ hppa_hpux_find_dummy_bpaddr (CORE_ADDR addr)
|
|||
}
|
||||
}
|
||||
|
||||
warning ("Cannot find suitable address to place dummy breakpoint; nested "
|
||||
"calls may fail.\n");
|
||||
warning (_("Cannot find suitable address to place dummy breakpoint; nested "
|
||||
"calls may fail."));
|
||||
return addr - 4;
|
||||
}
|
||||
|
||||
|
@ -1702,8 +1710,8 @@ hppa_hpux_push_dummy_code (struct gdbarch *gdbarch, CORE_ADDR sp,
|
|||
return it can return to the space of our trampoline. */
|
||||
stubaddr = hppa_hpux_find_import_stub_for_addr (funcaddr);
|
||||
if (stubaddr == 0)
|
||||
error ("Cannot call external function not referenced by application "
|
||||
"(no import stub).\n");
|
||||
error (_("Cannot call external function not referenced by application "
|
||||
"(no import stub).\n"));
|
||||
regcache_cooked_write_unsigned (current_regcache, 22, stubaddr);
|
||||
|
||||
write_memory (sp, (char *)&hppa32_tramp, sizeof (hppa32_tramp));
|
||||
|
@ -1713,7 +1721,7 @@ hppa_hpux_push_dummy_code (struct gdbarch *gdbarch, CORE_ADDR sp,
|
|||
|
||||
*real_pc = hppa32_hpux_search_dummy_call_sequence (gdbarch, pc, &argreg);
|
||||
if (*real_pc == 0)
|
||||
error ("Cannot make interspace call from here.\n");
|
||||
error (_("Cannot make interspace call from here."));
|
||||
|
||||
regcache_cooked_write_unsigned (current_regcache, argreg, sp);
|
||||
|
||||
|
@ -1739,7 +1747,7 @@ hppa_hpux_push_dummy_code (struct gdbarch *gdbarch, CORE_ADDR sp,
|
|||
|
||||
*real_pc = hppa64_hpux_search_dummy_call_sequence (gdbarch, pc, &argreg);
|
||||
if (*real_pc == 0)
|
||||
error ("Cannot make interspace call from here.\n");
|
||||
error (_("Cannot make interspace call from here."));
|
||||
|
||||
regcache_cooked_write_unsigned (current_regcache, argreg, sp);
|
||||
|
||||
|
@ -1865,7 +1873,7 @@ hppa_hpux_supply_save_state (const struct regset *regset,
|
|||
/* If the SS_WIDEREGS flag is set, we really do need the full
|
||||
`struct save_state'. */
|
||||
if (flags & HPPA_HPUX_SS_WIDEREGS && len < HPPA_HPUX_SAVE_STATE_SIZE)
|
||||
error ("Register set contents too small");
|
||||
error (_("Register set contents too small"));
|
||||
|
||||
if (flags & HPPA_HPUX_SS_WIDEREGS)
|
||||
hppa_hpux_supply_ss_wide (regcache, regnum, save_state);
|
||||
|
|
|
@ -157,7 +157,7 @@ register_addr (int regno, CORE_ADDR blockend)
|
|||
CORE_ADDR addr;
|
||||
|
||||
if ((unsigned) regno >= NUM_REGS)
|
||||
error ("Invalid register number %d.", regno);
|
||||
error (_("Invalid register number %d."), regno);
|
||||
|
||||
if (u_offsets[regno] == -1)
|
||||
addr = 0;
|
||||
|
@ -233,7 +233,7 @@ fetch_register (int regno)
|
|||
errno = 0;
|
||||
val = ptrace (PTRACE_PEEKUSER, tid, register_addr (regno, 0), 0);
|
||||
if (errno != 0)
|
||||
error ("Couldn't read register %s (#%d): %s.", REGISTER_NAME (regno),
|
||||
error (_("Couldn't read register %s (#%d): %s."), REGISTER_NAME (regno),
|
||||
regno, safe_strerror (errno));
|
||||
|
||||
regcache_raw_supply (current_regcache, regno, &val);
|
||||
|
@ -259,7 +259,7 @@ store_register (int regno)
|
|||
regcache_raw_collect (current_regcache, regno, &val);
|
||||
ptrace (PTRACE_POKEUSER, tid, register_addr (regno, 0), val);
|
||||
if (errno != 0)
|
||||
error ("Couldn't write register %s (#%d): %s.", REGISTER_NAME (regno),
|
||||
error (_("Couldn't write register %s (#%d): %s."), REGISTER_NAME (regno),
|
||||
regno, safe_strerror (errno));
|
||||
}
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ hppa_dwarf_reg_to_regnum (int reg)
|
|||
if (reg >= 32 && reg <= 85)
|
||||
return HPPA_FP4_REGNUM + (reg - 32);
|
||||
|
||||
warning ("Unmapped DWARF Register #%d encountered\n", reg);
|
||||
warning (_("Unmapped DWARF Register #%d encountered."), reg);
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
@ -278,7 +278,7 @@ hppa_linux_skip_trampoline_code (CORE_ADDR pc)
|
|||
}
|
||||
else
|
||||
{
|
||||
error ("Cannot resolve plt stub at 0x%s\n",
|
||||
error (_("Cannot resolve plt stub at 0x%s."),
|
||||
paddr_nz (pc));
|
||||
pc = 0;
|
||||
}
|
||||
|
|
|
@ -489,7 +489,7 @@ find_unwind_entry (CORE_ADDR pc)
|
|||
read_unwind_info (objfile);
|
||||
priv = objfile_data (objfile, hppa_objfile_priv_data);
|
||||
if (priv == NULL)
|
||||
error ("Internal error reading unwind information.");
|
||||
error (_("Internal error reading unwind information."));
|
||||
ui = ((struct hppa_objfile_private *) priv)->unwind_info;
|
||||
}
|
||||
|
||||
|
@ -1830,7 +1830,7 @@ hppa_frame_cache (struct frame_info *next_frame, void **this_cache)
|
|||
if (!safe_frame_unwind_memory (next_frame, pc, buf4,
|
||||
sizeof buf4))
|
||||
{
|
||||
error ("Cannot read instruction at 0x%s\n", paddr_nz (pc));
|
||||
error (_("Cannot read instruction at 0x%s."), paddr_nz (pc));
|
||||
return (*this_cache);
|
||||
}
|
||||
|
||||
|
@ -2167,8 +2167,8 @@ hppa_fallback_frame_cache (struct frame_info *next_frame, void **this_cache)
|
|||
|
||||
if (start_pc == 0 || end_pc == 0)
|
||||
{
|
||||
error ("Cannot find bounds of current function (@0x%s), unwinding will "
|
||||
"fail.", paddr_nz (pc));
|
||||
error (_("Cannot find bounds of current function (@0x%s), unwinding will "
|
||||
"fail."), paddr_nz (pc));
|
||||
return cache;
|
||||
}
|
||||
|
||||
|
@ -2327,7 +2327,7 @@ hppa_stub_frame_prev_register (struct frame_info *next_frame,
|
|||
optimizedp, lvalp, addrp, realnump,
|
||||
valuep);
|
||||
else
|
||||
error ("Requesting registers from null frame.\n");
|
||||
error (_("Requesting registers from null frame."));
|
||||
}
|
||||
|
||||
static const struct frame_unwind hppa_stub_frame_unwind = {
|
||||
|
|
72
gdb/hpread.c
72
gdb/hpread.c
|
@ -334,14 +334,14 @@ hpread_call_pxdb (const char *file_name)
|
|||
strcat (p, " ");
|
||||
strcat (p, file_name);
|
||||
|
||||
warning ("File not processed by pxdb--about to process now.\n");
|
||||
warning (_("File not processed by pxdb--about to process now."));
|
||||
status = system (p);
|
||||
|
||||
retval = (status == 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
warning ("pxdb not found at standard location: /opt/langtools/bin\ngdb will not be able to debug %s.\nPlease install pxdb at the above location and then restart gdb.\nYou can also run pxdb on %s with the command\n\"pxdb %s\" and then restart gdb.", file_name, file_name, file_name);
|
||||
warning (_("pxdb not found at standard location: /opt/langtools/bin\ngdb will not be able to debug %s.\nPlease install pxdb at the above location and then restart gdb.\nYou can also run pxdb on %s with the command\n\"pxdb %s\" and then restart gdb."), file_name, file_name, file_name);
|
||||
|
||||
retval = 0;
|
||||
}
|
||||
|
@ -389,18 +389,18 @@ hpread_pxdb_needed (bfd *sym_bfd)
|
|||
header_section,
|
||||
buf, 0,
|
||||
header_section_size))
|
||||
error ("bfd_get_section_contents\n");
|
||||
error (_("bfd_get_section_contents."));
|
||||
|
||||
tmp = bfd_get_32 (sym_bfd, (bfd_byte *) (buf + sizeof (int) * 4));
|
||||
pxdbed = (tmp >> 31) & 0x1;
|
||||
|
||||
if (!pxdbed)
|
||||
error ("file debug header info invalid\n");
|
||||
error (_("file debug header info invalid."));
|
||||
do_pxdb = 0;
|
||||
}
|
||||
|
||||
else
|
||||
error ("invalid $HEADER$ size in executable \n");
|
||||
error (_("invalid $HEADER$ size in executable."));
|
||||
}
|
||||
|
||||
else
|
||||
|
@ -456,7 +456,7 @@ hpread_pxdb_needed (bfd *sym_bfd)
|
|||
header_section,
|
||||
buf, 0,
|
||||
header_section_size))
|
||||
error ("bfd_get_section_contents\n");
|
||||
error (_("bfd_get_section_contents."));
|
||||
|
||||
tmp = bfd_get_32 (sym_bfd, (bfd_byte *) (buf + sizeof (int) * 3));
|
||||
pxdbed = (tmp >> 31) & 0x1;
|
||||
|
@ -464,7 +464,7 @@ hpread_pxdb_needed (bfd *sym_bfd)
|
|||
if (pxdbed)
|
||||
do_pxdb = 0;
|
||||
else
|
||||
error ("file debug header invalid\n");
|
||||
error (_("file debug header invalid."));
|
||||
}
|
||||
else /*not pxdbed and doc OR not pxdbed and non doc */
|
||||
do_pxdb = 1;
|
||||
|
@ -554,7 +554,7 @@ do_pxdb (bfd *sym_bfd)
|
|||
do { \
|
||||
if( !told_objfile ) { \
|
||||
told_objfile = 1; \
|
||||
warning ("\nIn object file \"%s\":\n", \
|
||||
warning (_("\nIn object file \"%s\":"), \
|
||||
objfile->name); \
|
||||
} \
|
||||
} while (0)
|
||||
|
@ -773,7 +773,7 @@ scan_procs (int *curr_pd_p, quick_procedure_entry *qPD, int max_procs,
|
|||
if (CURR_PROC_END > end_adr)
|
||||
{
|
||||
TELL_OBJFILE;
|
||||
warning ("Procedure \"%s\" [0x%x] spans file or module boundaries.", rtn_name, curr_pd);
|
||||
warning (_("Procedure \"%s\" [0x%x] spans file or module boundaries."), rtn_name, curr_pd);
|
||||
}
|
||||
|
||||
/* Add this routine symbol to the list in the objfile.
|
||||
|
@ -1078,7 +1078,7 @@ hpread_quick_traverse (struct objfile *objfile, char *gntt_bits,
|
|||
(CURR_MODULE_END == 0) || (CURR_MODULE_END == -1)))
|
||||
{
|
||||
TELL_OBJFILE;
|
||||
warning ("Module \"%s\" [0x%s] has non-standard addresses. It starts at 0x%s, ends at 0x%s, and will be skipped.",
|
||||
warning (_("Module \"%s\" [0x%s] has non-standard addresses. It starts at 0x%s, ends at 0x%s, and will be skipped."),
|
||||
mod_name_string, paddr_nz (curr_md), paddr_nz (start_adr), paddr_nz (end_adr));
|
||||
/* On to next module */
|
||||
curr_md++;
|
||||
|
@ -1107,7 +1107,7 @@ hpread_quick_traverse (struct objfile *objfile, char *gntt_bits,
|
|||
if (CURR_PROC_START < start_adr)
|
||||
{
|
||||
TELL_OBJFILE;
|
||||
warning ("Found procedure \"%s\" [0x%x] that is not in any file or module.",
|
||||
warning (_("Found procedure \"%s\" [0x%x] that is not in any file or module."),
|
||||
&vt_bits[(long) qPD[curr_pd].sbProc], curr_pd);
|
||||
start_adr = CURR_PROC_START;
|
||||
if (CURR_PROC_ISYM < start_sym)
|
||||
|
@ -1121,14 +1121,14 @@ hpread_quick_traverse (struct objfile *objfile, char *gntt_bits,
|
|||
if (VALID_FILE (curr_fd + 1) && (FILE_START (curr_fd + 1) <= end_adr))
|
||||
{
|
||||
TELL_OBJFILE;
|
||||
warning ("File \"%s\" [0x%x] has ending address after starting address of next file; adjusting ending address down.",
|
||||
warning (_("File \"%s\" [0x%x] has ending address after starting address of next file; adjusting ending address down."),
|
||||
full_name_string, curr_fd);
|
||||
end_adr = FILE_START (curr_fd + 1) - 1; /* Is -4 (or -8 for 64-bit) better? */
|
||||
}
|
||||
if (VALID_MODULE (curr_md) && (CURR_MODULE_START <= end_adr))
|
||||
{
|
||||
TELL_OBJFILE;
|
||||
warning ("File \"%s\" [0x%x] has ending address after starting address of next module; adjusting ending address down.",
|
||||
warning (_("File \"%s\" [0x%x] has ending address after starting address of next module; adjusting ending address down."),
|
||||
full_name_string, curr_fd);
|
||||
end_adr = CURR_MODULE_START - 1; /* Is -4 (or -8 for 64-bit) better? */
|
||||
}
|
||||
|
@ -1226,7 +1226,7 @@ hpread_quick_traverse (struct objfile *objfile, char *gntt_bits,
|
|||
record_pst_syms (start_sym, end_sym);
|
||||
|
||||
if (NULL == pst)
|
||||
warning ("No symbols in psymtab for file \"%s\" [0x%x].", full_name_string, curr_fd);
|
||||
warning (_("No symbols in psymtab for file \"%s\" [0x%x]."), full_name_string, curr_fd);
|
||||
|
||||
#ifdef DUMPING
|
||||
if (dumping)
|
||||
|
@ -1258,7 +1258,7 @@ hpread_quick_traverse (struct objfile *objfile, char *gntt_bits,
|
|||
if (CURR_FILE_START < CURR_MODULE_START)
|
||||
{
|
||||
TELL_OBJFILE;
|
||||
warning ("File \"%s\" [0x%x] crosses beginning of module \"%s\".",
|
||||
warning (_("File \"%s\" [0x%x] crosses beginning of module \"%s\"."),
|
||||
&vt_bits[(long) qFD[curr_fd].sbFile],
|
||||
curr_fd, mod_name_string);
|
||||
|
||||
|
@ -1293,7 +1293,7 @@ hpread_quick_traverse (struct objfile *objfile, char *gntt_bits,
|
|||
if (CURR_FILE_END > end_adr)
|
||||
{
|
||||
TELL_OBJFILE;
|
||||
warning ("File \"%s\" [0x%x] crosses end of module \"%s\".",
|
||||
warning (_("File \"%s\" [0x%x] crosses end of module \"%s\"."),
|
||||
&vt_bits[(long) qFD[curr_fd].sbFile],
|
||||
curr_fd, mod_name_string);
|
||||
end_adr = CURR_FILE_END;
|
||||
|
@ -1310,14 +1310,14 @@ hpread_quick_traverse (struct objfile *objfile, char *gntt_bits,
|
|||
if (VALID_MODULE (curr_md + 1) && (MODULE_START (curr_md + 1) <= end_adr))
|
||||
{
|
||||
TELL_OBJFILE;
|
||||
warning ("Module \"%s\" [0x%x] has ending address after starting address of next module; adjusting ending address down.",
|
||||
warning (_("Module \"%s\" [0x%x] has ending address after starting address of next module; adjusting ending address down."),
|
||||
mod_name_string, curr_md);
|
||||
end_adr = MODULE_START (curr_md + 1) - 1; /* Is -4 (or -8 for 64-bit) better? */
|
||||
}
|
||||
if (VALID_FILE (curr_fd + 1) && (FILE_START (curr_fd + 1) <= end_adr))
|
||||
{
|
||||
TELL_OBJFILE;
|
||||
warning ("Module \"%s\" [0x%x] has ending address after starting address of next file; adjusting ending address down.",
|
||||
warning (_("Module \"%s\" [0x%x] has ending address after starting address of next file; adjusting ending address down."),
|
||||
mod_name_string, curr_md);
|
||||
end_adr = FILE_START (curr_fd + 1) - 1; /* Is -4 (or -8 for 64-bit) better? */
|
||||
}
|
||||
|
@ -1355,7 +1355,7 @@ hpread_quick_traverse (struct objfile *objfile, char *gntt_bits,
|
|||
if (CURR_PROC_START < start_adr)
|
||||
{
|
||||
TELL_OBJFILE;
|
||||
warning ("Found procedure \"%s\" [0x%x] that is not in any file or module.",
|
||||
warning (_("Found procedure \"%s\" [0x%x] that is not in any file or module."),
|
||||
&vt_bits[(long) qPD[curr_pd].sbProc], curr_pd);
|
||||
start_adr = CURR_PROC_START;
|
||||
if (CURR_PROC_ISYM < start_sym)
|
||||
|
@ -1454,7 +1454,7 @@ hpread_quick_traverse (struct objfile *objfile, char *gntt_bits,
|
|||
record_pst_syms (start_sym, end_sym);
|
||||
|
||||
if (NULL == pst)
|
||||
warning ("No symbols in psymtab for module \"%s\" [0x%x].", mod_name_string, curr_md);
|
||||
warning (_("No symbols in psymtab for module \"%s\" [0x%x]."), mod_name_string, curr_md);
|
||||
|
||||
#ifdef DUMPING
|
||||
if (dumping)
|
||||
|
@ -1482,7 +1482,7 @@ hpread_quick_traverse (struct objfile *objfile, char *gntt_bits,
|
|||
start_adr = CURR_PROC_START;
|
||||
end_adr = qPD[pxdb_header_p->pd_entries - 1].adrEnd;
|
||||
TELL_OBJFILE;
|
||||
warning ("Found functions beyond end of all files and modules [0x%x].", curr_pd);
|
||||
warning (_("Found functions beyond end of all files and modules [0x%x]."), curr_pd);
|
||||
#ifdef DUMPING
|
||||
if (dumping)
|
||||
{
|
||||
|
@ -1609,7 +1609,7 @@ hpread_get_header (struct objfile *objfile, PXDB_header_ptr pxdb_header_p)
|
|||
if (!doc_header.pxdbed)
|
||||
{
|
||||
/* This shouldn't happen if we check in "symfile.c". */
|
||||
warning ("File \"%s\" not processed by pxdb!", objfile->name);
|
||||
warning (_("File \"%s\" not processed by pxdb!"), objfile->name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -2890,7 +2890,7 @@ hpread_type_translate (dnttpointer typep)
|
|||
{
|
||||
if (!typep.dntti.immediate)
|
||||
{
|
||||
error ("error in hpread_type_translate\n.");
|
||||
error (_("error in hpread_type_translate\n."));
|
||||
return FT_VOID;
|
||||
}
|
||||
|
||||
|
@ -2966,7 +2966,7 @@ hpread_type_translate (dnttpointer typep)
|
|||
case HP_TYPE_GLOBAL_ANYPOINTER:
|
||||
case HP_TYPE_LOCAL_ANYPOINTER:
|
||||
default:
|
||||
warning ("hpread_type_translate: unhandled type code.\n");
|
||||
warning (_("hpread_type_translate: unhandled type code."));
|
||||
return FT_VOID;
|
||||
}
|
||||
}
|
||||
|
@ -3759,7 +3759,7 @@ hpread_read_struct_type (dnttpointer hp_type, union dnttentry *dn_bufp,
|
|||
fieldp = hpread_get_lntt (field.dnttp.index, objfile);
|
||||
if (fieldp->dblock.kind != DNTT_TYPE_TEMPLATE_ARG)
|
||||
{
|
||||
warning ("Invalid debug info: Template argument entry is of wrong kind");
|
||||
warning (_("Invalid debug info: Template argument entry is of wrong kind"));
|
||||
break;
|
||||
}
|
||||
/* Bump the count */
|
||||
|
@ -3867,9 +3867,9 @@ hpread_read_struct_type (dnttpointer hp_type, union dnttentry *dn_bufp,
|
|||
{
|
||||
TYPE_FLAGS (type) |= TYPE_FLAG_INCOMPLETE;
|
||||
if (fixup_class)
|
||||
warning ("Two classes to fix up for method?? Type information may be incorrect for some classes.");
|
||||
warning (_("Two classes to fix up for method?? Type information may be incorrect for some classes."));
|
||||
if (fixup_method)
|
||||
warning ("Two methods to be fixed up at once?? Type information may be incorrect for some classes.");
|
||||
warning (_("Two methods to be fixed up at once?? Type information may be incorrect for some classes."));
|
||||
fixup_class = type; /* remember this class has to be fixed up */
|
||||
fixup_method = memtype; /* remember the method type to be used in fixup */
|
||||
}
|
||||
|
@ -4053,7 +4053,7 @@ hpread_read_struct_type (dnttpointer hp_type, union dnttentry *dn_bufp,
|
|||
Code below is replicated from the case for FIELDs further
|
||||
below, except that fieldp is replaced by fn_fieldp */
|
||||
if (!fn_fieldp->dfield.a_union)
|
||||
warning ("Debug info inconsistent: FIELD of anonymous union doesn't have a_union bit set");
|
||||
warning (_("Debug info inconsistent: FIELD of anonymous union doesn't have a_union bit set"));
|
||||
/* Get space to record the next field/data-member. */
|
||||
new = (struct nextfield *) alloca (sizeof (struct nextfield));
|
||||
memset (new, 0, sizeof (struct nextfield));
|
||||
|
@ -4085,7 +4085,7 @@ hpread_read_struct_type (dnttpointer hp_type, union dnttentry *dn_bufp,
|
|||
{
|
||||
/* Field of anonymous union; union is not inside a class */
|
||||
if (!fn_fieldp->dsvar.a_union)
|
||||
warning ("Debug info inconsistent: SVAR field in anonymous union doesn't have a_union bit set");
|
||||
warning (_("Debug info inconsistent: SVAR field in anonymous union doesn't have a_union bit set"));
|
||||
/* Get space to record the next field/data-member. */
|
||||
new = (struct nextfield *) alloca (sizeof (struct nextfield));
|
||||
memset (new, 0, sizeof (struct nextfield));
|
||||
|
@ -4106,7 +4106,7 @@ hpread_read_struct_type (dnttpointer hp_type, union dnttentry *dn_bufp,
|
|||
{
|
||||
/* Field of anonymous union; union is not inside a class */
|
||||
if (!fn_fieldp->ddvar.a_union)
|
||||
warning ("Debug info inconsistent: DVAR field in anonymous union doesn't have a_union bit set");
|
||||
warning (_("Debug info inconsistent: DVAR field in anonymous union doesn't have a_union bit set"));
|
||||
/* Get space to record the next field/data-member. */
|
||||
new = (struct nextfield *) alloca (sizeof (struct nextfield));
|
||||
memset (new, 0, sizeof (struct nextfield));
|
||||
|
@ -4143,7 +4143,7 @@ hpread_read_struct_type (dnttpointer hp_type, union dnttentry *dn_bufp,
|
|||
if ((fn_fieldp->dblock.kind != DNTT_TYPE_MEMACCESS) &&
|
||||
(fn_fieldp->dblock.kind != DNTT_TYPE_MEMENUM) &&
|
||||
(fn_fieldp->dblock.kind != DNTT_TYPE_FUNC_TEMPLATE))
|
||||
warning ("Internal error: Unexpected debug record kind %d found following DNTT_GENFIELD",
|
||||
warning (_("Internal error: Unexpected debug record kind %d found following DNTT_GENFIELD"),
|
||||
fn_fieldp->dblock.kind);
|
||||
}
|
||||
/* walk to the next FIELD or GENFIELD */
|
||||
|
@ -4221,9 +4221,9 @@ hpread_read_struct_type (dnttpointer hp_type, union dnttentry *dn_bufp,
|
|||
{
|
||||
/* neither field nor genfield ?? is this possible?? */
|
||||
/* pai:: FIXME walk to the next -- how? */
|
||||
warning ("Internal error: unexpected DNTT kind %d encountered as field of struct",
|
||||
warning (_("Internal error: unexpected DNTT kind %d encountered as field of struct"),
|
||||
fieldp->dblock.kind);
|
||||
warning ("Skipping remaining fields of struct");
|
||||
warning (_("Skipping remaining fields of struct"));
|
||||
break; /* get out of loop of fields */
|
||||
}
|
||||
}
|
||||
|
@ -4540,7 +4540,7 @@ hpread_read_array_type (dnttpointer hp_type, union dnttentry *dn_bufp,
|
|||
if (!((dn_bufp->darray.arrayisbytes && dn_bufp->darray.elemisbytes) ||
|
||||
(!dn_bufp->darray.arrayisbytes && !dn_bufp->darray.elemisbytes)))
|
||||
{
|
||||
warning ("error in hpread_array_type.\n");
|
||||
warning (_("error in hpread_array_type."));
|
||||
return NULL;
|
||||
}
|
||||
else if (dn_bufp->darray.arraylength == 0x7fffffff)
|
||||
|
@ -5768,11 +5768,11 @@ hpread_process_one_debug_symbol (union dnttentry *dn_bufp, char *name,
|
|||
priv = (struct hppa_objfile_private *)
|
||||
objfile_data (objfile, hppa_objfile_priv_data);
|
||||
if (priv == NULL)
|
||||
error ("Internal error in reading shared library information.");
|
||||
error (_("Internal error in reading shared library information."));
|
||||
|
||||
so = ((struct hppa_objfile_private *) priv)->so_info;
|
||||
if (so == NULL)
|
||||
error ("Internal error in reading shared library information.");
|
||||
error (_("Internal error in reading shared library information."));
|
||||
|
||||
/* Thread-locals in shared libraries do NOT have the
|
||||
* standard offset ("data_offset"), so we re-calculate
|
||||
|
|
|
@ -128,7 +128,7 @@ find_tcb (ptid_t ptid)
|
|||
}
|
||||
}
|
||||
|
||||
error ("Can't find TCB %d", thread);
|
||||
error (_("Can't find TCB %d"), thread);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -186,7 +186,7 @@ hpux_thread_resume (ptid_t ptid, int step, enum target_signal signo)
|
|||
{
|
||||
pid = thread_to_lwp (pid, -2);
|
||||
if (pid == -2) /* Inactive thread */
|
||||
error ("This version of Solaris can't start inactive threads.");
|
||||
error (_("This version of Solaris can't start inactive threads."));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -180,7 +180,7 @@ fetch_register (int regno)
|
|||
errno = 0;
|
||||
val = ptrace (PTRACE_PEEKUSER, tid, register_addr (regno, 0), 0);
|
||||
if (errno != 0)
|
||||
error ("Couldn't read register %s (#%d): %s.", REGISTER_NAME (regno),
|
||||
error (_("Couldn't read register %s (#%d): %s."), REGISTER_NAME (regno),
|
||||
regno, safe_strerror (errno));
|
||||
|
||||
regcache_raw_supply (current_regcache, regno, &val);
|
||||
|
@ -207,7 +207,7 @@ store_register (int regno)
|
|||
regcache_raw_collect (current_regcache, regno, &val);
|
||||
ptrace (PTRACE_POKEUSER, tid, register_addr (regno, 0), val);
|
||||
if (errno != 0)
|
||||
error ("Couldn't write register %s (#%d): %s.", REGISTER_NAME (regno),
|
||||
error (_("Couldn't write register %s (#%d): %s."), REGISTER_NAME (regno),
|
||||
regno, safe_strerror (errno));
|
||||
}
|
||||
|
||||
|
|
|
@ -308,7 +308,7 @@ i386_linux_sigcontext_addr (struct frame_info *next_frame)
|
|||
return ucontext_addr + I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET;
|
||||
}
|
||||
|
||||
error ("Couldn't recognize signal trampoline.");
|
||||
error (_("Couldn't recognize signal trampoline."));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -1289,7 +1289,7 @@ i386_extract_return_value (struct gdbarch *gdbarch, struct type *type,
|
|||
{
|
||||
if (tdep->st0_regnum < 0)
|
||||
{
|
||||
warning ("Cannot find floating-point return value.");
|
||||
warning (_("Cannot find floating-point return value."));
|
||||
memset (valbuf, 0, len);
|
||||
return;
|
||||
}
|
||||
|
@ -1345,7 +1345,7 @@ i386_store_return_value (struct gdbarch *gdbarch, struct type *type,
|
|||
|
||||
if (tdep->st0_regnum < 0)
|
||||
{
|
||||
warning ("Cannot set floating-point return value.");
|
||||
warning (_("Cannot set floating-point return value."));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -370,9 +370,9 @@ _initialize_i386bsd_nat (void)
|
|||
|
||||
if (SC_PC_OFFSET != offset)
|
||||
{
|
||||
warning ("\
|
||||
warning (_("\
|
||||
offsetof (struct sigcontext, sc_pc) yields %d instead of %d.\n\
|
||||
Please report this to <bug-gdb@gnu.org>.",
|
||||
Please report this to <bug-gdb@gnu.org>."),
|
||||
offset, SC_PC_OFFSET);
|
||||
}
|
||||
|
||||
|
@ -383,9 +383,9 @@ Please report this to <bug-gdb@gnu.org>.",
|
|||
|
||||
if (SC_SP_OFFSET != offset)
|
||||
{
|
||||
warning ("\
|
||||
warning (_("\
|
||||
offsetof (struct sigcontext, sc_sp) yields %d instead of %d.\n\
|
||||
Please report this to <bug-gdb@gnu.org>.",
|
||||
Please report this to <bug-gdb@gnu.org>."),
|
||||
offset, SC_SP_OFFSET);
|
||||
}
|
||||
|
||||
|
@ -396,9 +396,9 @@ Please report this to <bug-gdb@gnu.org>.",
|
|||
|
||||
if (SC_FP_OFFSET != offset)
|
||||
{
|
||||
warning ("\
|
||||
warning (_("\
|
||||
offsetof (struct sigcontext, sc_fp) yields %d instead of %d.\n\
|
||||
Please report this to <bug-gdb@gnu.org>.",
|
||||
Please report this to <bug-gdb@gnu.org>."),
|
||||
offset, SC_FP_OFFSET);
|
||||
}
|
||||
|
||||
|
|
|
@ -75,7 +75,7 @@ fetch_fpregs (struct proc *thread)
|
|||
(thread_state_t) &state, &count);
|
||||
if (err)
|
||||
{
|
||||
warning ("Couldn't fetch floating-point state from %s",
|
||||
warning (_("Couldn't fetch floating-point state from %s"),
|
||||
proc_string (thread));
|
||||
return;
|
||||
}
|
||||
|
@ -121,7 +121,7 @@ gnu_fetch_registers (int regno)
|
|||
|
||||
thread = inf_tid_to_thread (current_inferior, PIDGET (inferior_ptid));
|
||||
if (!thread)
|
||||
error ("Can't fetch registers from thread %d: No such thread",
|
||||
error (_("Can't fetch registers from thread %d: No such thread"),
|
||||
PIDGET (inferior_ptid));
|
||||
|
||||
if (regno < I386_NUM_GREGS || regno == -1)
|
||||
|
@ -132,7 +132,7 @@ gnu_fetch_registers (int regno)
|
|||
state = proc_get_state (thread, 0);
|
||||
if (!state)
|
||||
{
|
||||
warning ("Couldn't fetch registers from %s",
|
||||
warning (_("Couldn't fetch registers from %s"),
|
||||
proc_string (thread));
|
||||
return;
|
||||
}
|
||||
|
@ -179,7 +179,7 @@ store_fpregs (struct proc *thread, int regno)
|
|||
(thread_state_t) &state, &count);
|
||||
if (err)
|
||||
{
|
||||
warning ("Couldn't fetch floating-point state from %s",
|
||||
warning (_("Couldn't fetch floating-point state from %s"),
|
||||
proc_string (thread));
|
||||
return;
|
||||
}
|
||||
|
@ -192,7 +192,7 @@ store_fpregs (struct proc *thread, int regno)
|
|||
(thread_state_t) &state, i386_FLOAT_STATE_COUNT);
|
||||
if (err)
|
||||
{
|
||||
warning ("Couldn't store floating-point state into %s",
|
||||
warning (_("Couldn't store floating-point state into %s"),
|
||||
proc_string (thread));
|
||||
return;
|
||||
}
|
||||
|
@ -210,7 +210,7 @@ gnu_store_registers (int regno)
|
|||
|
||||
thread = inf_tid_to_thread (current_inferior, PIDGET (inferior_ptid));
|
||||
if (!thread)
|
||||
error ("Couldn't store registers into thread %d: No such thread",
|
||||
error (_("Couldn't store registers into thread %d: No such thread"),
|
||||
PIDGET (inferior_ptid));
|
||||
|
||||
if (regno < I386_NUM_GREGS || regno == -1)
|
||||
|
@ -227,7 +227,7 @@ gnu_store_registers (int regno)
|
|||
state = proc_get_state (thread, 1);
|
||||
if (!state)
|
||||
{
|
||||
warning ("Couldn't store registers into %s", proc_string (thread));
|
||||
warning (_("Couldn't store registers into %s"), proc_string (thread));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -247,14 +247,14 @@ gnu_store_registers (int regno)
|
|||
register_size (current_gdbarch, check_regno)))
|
||||
/* Register CHECK_REGNO has changed! Ack! */
|
||||
{
|
||||
warning ("Register %s changed after the thread was aborted",
|
||||
warning (_("Register %s changed after the thread was aborted"),
|
||||
REGISTER_NAME (check_regno));
|
||||
if (regno >= 0 && regno != check_regno)
|
||||
/* Update GDB's copy of the register. */
|
||||
regcache_raw_supply (regcache, check_regno,
|
||||
REG_ADDR (state, check_regno));
|
||||
else
|
||||
warning ("... also writing this register! Suspicious...");
|
||||
warning (_("... also writing this register! Suspicious..."));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -304,8 +304,8 @@ i387_register_to_value (struct frame_info *frame, int regnum,
|
|||
/* We only support floating-point values. */
|
||||
if (TYPE_CODE (type) != TYPE_CODE_FLT)
|
||||
{
|
||||
warning ("Cannot convert floating-point register value "
|
||||
"to non-floating-point type.");
|
||||
warning (_("Cannot convert floating-point register value "
|
||||
"to non-floating-point type."));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -329,8 +329,8 @@ i387_value_to_register (struct frame_info *frame, int regnum,
|
|||
/* We only support floating-point values. */
|
||||
if (TYPE_CODE (type) != TYPE_CODE_FLT)
|
||||
{
|
||||
warning ("Cannot convert non-floating-point type "
|
||||
"to floating-point register value.");
|
||||
warning (_("Cannot convert non-floating-point type "
|
||||
"to floating-point register value."));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -308,7 +308,7 @@ register_addr (int regno, CORE_ADDR blockend)
|
|||
CORE_ADDR addr;
|
||||
|
||||
if (regno < 0 || regno >= NUM_REGS)
|
||||
error ("Invalid register number %d.", regno);
|
||||
error (_("Invalid register number %d."), regno);
|
||||
|
||||
if (u_offsets[regno] == -1)
|
||||
addr = 0;
|
||||
|
|
|
@ -474,8 +474,8 @@ fetch_instruction (CORE_ADDR addr, instruction_type *it, long long *instr)
|
|||
at the assembly language level. */
|
||||
if (slotnum > 2)
|
||||
{
|
||||
warning ("Can't fetch instructions for slot numbers greater than 2.\n"
|
||||
"Using slot 0 instead");
|
||||
warning (_("Can't fetch instructions for slot numbers greater than 2.\n"
|
||||
"Using slot 0 instead"));
|
||||
slotnum = 0;
|
||||
}
|
||||
|
||||
|
@ -532,7 +532,7 @@ ia64_memory_insert_breakpoint (CORE_ADDR addr, char *contents_cache)
|
|||
int template;
|
||||
|
||||
if (slotnum > 2)
|
||||
error("Can't insert breakpoint for slot numbers greater than 2.");
|
||||
error (_("Can't insert breakpoint for slot numbers greater than 2."));
|
||||
|
||||
addr &= ~0x0f;
|
||||
|
||||
|
@ -1550,7 +1550,7 @@ ia64_frame_prev_register (struct frame_info *next_frame, void **this_cache,
|
|||
gdb_assert (regnum >= 0);
|
||||
|
||||
if (!target_has_registers)
|
||||
error ("No registers.");
|
||||
error (_("No registers."));
|
||||
|
||||
*optimizedp = 0;
|
||||
*addrp = 0;
|
||||
|
@ -1951,7 +1951,7 @@ ia64_sigtramp_frame_prev_register (struct frame_info *next_frame,
|
|||
gdb_assert (regnum >= 0);
|
||||
|
||||
if (!target_has_registers)
|
||||
error ("No registers.");
|
||||
error (_("No registers."));
|
||||
|
||||
*optimizedp = 0;
|
||||
*addrp = 0;
|
||||
|
@ -2744,7 +2744,7 @@ ia64_extract_return_value (struct type *type, struct regcache *regcache, void *v
|
|||
CORE_ADDR
|
||||
ia64_extract_struct_value_address (struct regcache *regcache)
|
||||
{
|
||||
error ("ia64_extract_struct_value_address called and cannot get struct value address");
|
||||
error (_("ia64_extract_struct_value_address called and cannot get struct value address"));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@ inf_child_prepare_to_store (void)
|
|||
static void
|
||||
inf_child_open (char *arg, int from_tty)
|
||||
{
|
||||
error ("Use the \"run\" command to start a Unix child process.");
|
||||
error (_("Use the \"run\" command to start a Unix child process."));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -192,10 +192,10 @@ inf_ptrace_attach (char *args, int from_tty)
|
|||
pid = strtol (args, &dummy, 0);
|
||||
/* Some targets don't set errno on errors, grrr! */
|
||||
if (pid == 0 && args == dummy)
|
||||
error ("Illegal process-id: %s\n", args);
|
||||
error (_("Illegal process-id: %s."), args);
|
||||
|
||||
if (pid == getpid ()) /* Trying to masturbate? */
|
||||
error ("I refuse to debug myself!");
|
||||
error (_("I refuse to debug myself!"));
|
||||
|
||||
if (from_tty)
|
||||
{
|
||||
|
@ -218,7 +218,7 @@ inf_ptrace_attach (char *args, int from_tty)
|
|||
perror_with_name ("ptrace");
|
||||
attach_flag = 1;
|
||||
#else
|
||||
error ("This system does not support attaching to a process");
|
||||
error (_("This system does not support attaching to a process"));
|
||||
#endif
|
||||
|
||||
inferior_ptid = pid_to_ptid (pid);
|
||||
|
@ -268,7 +268,7 @@ inf_ptrace_detach (char *args, int from_tty)
|
|||
perror_with_name ("ptrace");
|
||||
attach_flag = 0;
|
||||
#else
|
||||
error ("This system does not support detaching from a process");
|
||||
error (_("This system does not support detaching from a process"));
|
||||
#endif
|
||||
|
||||
inferior_ptid = null_ptid;
|
||||
|
@ -288,7 +288,7 @@ inf_ptrace_files_info (struct target_ops *ignore)
|
|||
static void
|
||||
inf_ptrace_open (char *arg, int from_tty)
|
||||
{
|
||||
error ("Use the \"run\" command to start a Unix child process.");
|
||||
error (_("Use the \"run\" command to start a Unix child process."));
|
||||
}
|
||||
|
||||
/* Stub function which causes the inferior that runs it, to be ptrace-able
|
||||
|
@ -593,7 +593,7 @@ inf_ptrace_fetch_register (int regnum)
|
|||
errno = 0;
|
||||
buf[i] = ptrace (PT_READ_U, pid, (PTRACE_TYPE_ARG3) addr, 0);
|
||||
if (errno != 0)
|
||||
error ("Couldn't read register %s (#%d): %s.", REGISTER_NAME (regnum),
|
||||
error (_("Couldn't read register %s (#%d): %s."), REGISTER_NAME (regnum),
|
||||
regnum, safe_strerror (errno));
|
||||
|
||||
addr += sizeof (PTRACE_TYPE_RET);
|
||||
|
@ -644,7 +644,7 @@ inf_ptrace_store_register (int regnum)
|
|||
errno = 0;
|
||||
ptrace (PT_WRITE_U, pid, (PTRACE_TYPE_ARG3) addr, buf[i]);
|
||||
if (errno != 0)
|
||||
error ("Couldn't write register %s (#%d): %s.", REGISTER_NAME (regnum),
|
||||
error (_("Couldn't write register %s (#%d): %s."), REGISTER_NAME (regnum),
|
||||
regnum, safe_strerror (errno));
|
||||
|
||||
addr += sizeof (PTRACE_TYPE_RET);
|
||||
|
|
|
@ -573,10 +573,10 @@ inf_ttrace_attach (char *args, int from_tty)
|
|||
dummy = args;
|
||||
pid = strtol (args, &dummy, 0);
|
||||
if (pid == 0 && args == dummy)
|
||||
error ("Illegal process-id: %s\n", args);
|
||||
error (_("Illegal process-id: %s."), args);
|
||||
|
||||
if (pid == getpid ()) /* Trying to masturbate? */
|
||||
error ("I refuse to debug myself!");
|
||||
error (_("I refuse to debug myself!"));
|
||||
|
||||
if (from_tty)
|
||||
{
|
||||
|
|
|
@ -204,7 +204,7 @@ find_function_addr (struct value *function, struct type **retval_type)
|
|||
value_type = builtin_type_int;
|
||||
}
|
||||
else
|
||||
error ("Invalid data type for function to be called.");
|
||||
error (_("Invalid data type for function to be called."));
|
||||
|
||||
if (retval_type != NULL)
|
||||
*retval_type = value_type;
|
||||
|
@ -485,7 +485,7 @@ call_function_by_hand (struct value *function, int nargs, struct value **args)
|
|||
}
|
||||
|
||||
if (nargs < TYPE_NFIELDS (ftype))
|
||||
error ("too few arguments in function call");
|
||||
error (_("too few arguments in function call"));
|
||||
|
||||
{
|
||||
int i;
|
||||
|
@ -541,9 +541,9 @@ call_function_by_hand (struct value *function, int nargs, struct value **args)
|
|||
char *arg_name;
|
||||
/* NOTE: cagney/2005-01-02: THIS IS BOGUS. */
|
||||
if (find_pc_partial_function ((CORE_ADDR) value_contents (args[i])[0], &arg_name, NULL, NULL))
|
||||
error ("\
|
||||
error (_("\
|
||||
You cannot use function <%s> as argument. \n\
|
||||
You must use a pointer to function type variable. Command ignored.", arg_name);
|
||||
You must use a pointer to function type variable. Command ignored."), arg_name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -648,7 +648,7 @@ You must use a pointer to function type variable. Command ignored.", arg_name);
|
|||
sp = DEPRECATED_PUSH_ARGUMENTS (nargs, args, sp, struct_return,
|
||||
struct_addr);
|
||||
else
|
||||
error ("This target does not support function calls");
|
||||
error (_("This target does not support function calls"));
|
||||
|
||||
/* Set up a frame ID for the dummy frame so we can pass it to
|
||||
set_momentary_breakpoint. We need to give the breakpoint a frame
|
||||
|
@ -770,11 +770,11 @@ You must use a pointer to function type variable. Command ignored.", arg_name);
|
|||
|
||||
/* FIXME: Insert a bunch of wrap_here; name can be very
|
||||
long if it's a C++ name with arguments and stuff. */
|
||||
error ("\
|
||||
error (_("\
|
||||
The program being debugged was signaled while in a function called from GDB.\n\
|
||||
GDB has restored the context to what it was before the call.\n\
|
||||
To change this behavior use \"set unwindonsignal off\"\n\
|
||||
Evaluation of the expression containing the function (%s) will be abandoned.",
|
||||
Evaluation of the expression containing the function (%s) will be abandoned."),
|
||||
name);
|
||||
}
|
||||
else
|
||||
|
@ -790,11 +790,11 @@ Evaluation of the expression containing the function (%s) will be abandoned.",
|
|||
discard_inferior_status (inf_status);
|
||||
/* FIXME: Insert a bunch of wrap_here; name can be very
|
||||
long if it's a C++ name with arguments and stuff. */
|
||||
error ("\
|
||||
error (_("\
|
||||
The program being debugged was signaled while in a function called from GDB.\n\
|
||||
GDB remains in the frame where the signal was received.\n\
|
||||
To change this behavior use \"set unwindonsignal on\"\n\
|
||||
Evaluation of the expression containing the function (%s) will be abandoned.",
|
||||
Evaluation of the expression containing the function (%s) will be abandoned."),
|
||||
name);
|
||||
}
|
||||
}
|
||||
|
@ -817,11 +817,11 @@ Evaluation of the expression containing the function (%s) will be abandoned.",
|
|||
someday this will be implemented (it would not be easy). */
|
||||
/* FIXME: Insert a bunch of wrap_here; name can be very long if it's
|
||||
a C++ name with arguments and stuff. */
|
||||
error ("\
|
||||
error (_("\
|
||||
The program being debugged stopped while in a function called from GDB.\n\
|
||||
When the function (%s) is done executing, GDB will silently\n\
|
||||
stop (instead of continuing to evaluate the expression containing\n\
|
||||
the function call).", name);
|
||||
the function call)."), name);
|
||||
}
|
||||
|
||||
/* The above code errors out, so ... */
|
||||
|
|
70
gdb/infcmd.c
70
gdb/infcmd.c
|
@ -120,7 +120,7 @@ void _initialize_infcmd (void);
|
|||
#define GO_USAGE "Usage: go <location>\n"
|
||||
|
||||
#define ERROR_NO_INFERIOR \
|
||||
if (!target_has_execution) error ("The program is not being run.");
|
||||
if (!target_has_execution) error (_("The program is not being run."));
|
||||
|
||||
/* String containing arguments to give to the program, separated by spaces.
|
||||
Empty string (pointer to '\0') means no args. */
|
||||
|
@ -319,7 +319,7 @@ construct_inferior_arguments (struct gdbarch *gdbarch, int argc, char **argv)
|
|||
if (cp == NULL)
|
||||
cp = strchr (argv[i], '\n');
|
||||
if (cp != NULL)
|
||||
error ("can't handle command-line argument containing whitespace");
|
||||
error (_("can't handle command-line argument containing whitespace"));
|
||||
length += strlen (argv[i]) + 1;
|
||||
}
|
||||
|
||||
|
@ -389,7 +389,7 @@ kill_if_already_running (int from_tty)
|
|||
if (from_tty
|
||||
&& !query ("The program being debugged has been started already.\n\
|
||||
Start it from the beginning? "))
|
||||
error ("Program not restarted.");
|
||||
error (_("Program not restarted."));
|
||||
target_kill ();
|
||||
#if defined(SOLIB_RESTART)
|
||||
SOLIB_RESTART ();
|
||||
|
@ -445,7 +445,7 @@ run_command (char *args, int from_tty)
|
|||
/* If we get a request for running in the bg but the target
|
||||
doesn't support it, error out. */
|
||||
if (async_exec && !target_can_async_p ())
|
||||
error ("Asynchronous execution not supported on this target.");
|
||||
error (_("Asynchronous execution not supported on this target."));
|
||||
|
||||
/* If we don't get a request of running in the bg, then we need
|
||||
to simulate synchronous (fg) execution. */
|
||||
|
@ -502,7 +502,7 @@ start_command (char *args, int from_tty)
|
|||
minimal symbols for the location where to put the temporary
|
||||
breakpoint before starting. */
|
||||
if (!have_minimal_symbols ())
|
||||
error ("No symbol table loaded. Use the \"file\" command.");
|
||||
error (_("No symbol table loaded. Use the \"file\" command."));
|
||||
|
||||
/* If the inferior is already running, we want to ask the user if we
|
||||
should restart it or not before we insert the temporary breakpoint.
|
||||
|
@ -528,7 +528,7 @@ continue_command (char *proc_count_exp, int from_tty)
|
|||
/* If we must run in the background, but the target can't do it,
|
||||
error out. */
|
||||
if (async_exec && !target_can_async_p ())
|
||||
error ("Asynchronous execution not supported on this target.");
|
||||
error (_("Asynchronous execution not supported on this target."));
|
||||
|
||||
/* If we are not asked to run in the bg, then prepare to run in the
|
||||
foreground, synchronously. */
|
||||
|
@ -622,7 +622,7 @@ step_1 (int skip_subroutines, int single_inst, char *count_string)
|
|||
/* If we get a request for running in the bg but the target
|
||||
doesn't support it, error out. */
|
||||
if (async_exec && !target_can_async_p ())
|
||||
error ("Asynchronous execution not supported on this target.");
|
||||
error (_("Asynchronous execution not supported on this target."));
|
||||
|
||||
/* If we don't get a request of running in the bg, then we need
|
||||
to simulate synchronous (fg) execution. */
|
||||
|
@ -652,7 +652,7 @@ step_1 (int skip_subroutines, int single_inst, char *count_string)
|
|||
|
||||
frame = get_current_frame ();
|
||||
if (!frame) /* Avoid coredump here. Why tho? */
|
||||
error ("No current frame");
|
||||
error (_("No current frame"));
|
||||
step_frame_id = get_frame_id (frame);
|
||||
|
||||
if (!single_inst)
|
||||
|
@ -663,7 +663,7 @@ step_1 (int skip_subroutines, int single_inst, char *count_string)
|
|||
char *name;
|
||||
if (find_pc_partial_function (stop_pc, &name, &step_range_start,
|
||||
&step_range_end) == 0)
|
||||
error ("Cannot find bounds of current function");
|
||||
error (_("Cannot find bounds of current function"));
|
||||
|
||||
target_terminal_ours ();
|
||||
printf_filtered ("\
|
||||
|
@ -751,7 +751,7 @@ step_once (int skip_subroutines, int single_inst, int count)
|
|||
|
||||
frame = get_current_frame ();
|
||||
if (!frame) /* Avoid coredump here. Why tho? */
|
||||
error ("No current frame");
|
||||
error (_("No current frame"));
|
||||
step_frame_id = get_frame_id (frame);
|
||||
|
||||
if (!single_inst)
|
||||
|
@ -768,7 +768,7 @@ step_once (int skip_subroutines, int single_inst, int count)
|
|||
char *name;
|
||||
if (find_pc_partial_function (stop_pc, &name, &step_range_start,
|
||||
&step_range_end) == 0)
|
||||
error ("Cannot find bounds of current function");
|
||||
error (_("Cannot find bounds of current function"));
|
||||
|
||||
target_terminal_ours ();
|
||||
printf_filtered ("\
|
||||
|
@ -830,7 +830,7 @@ jump_command (char *arg, int from_tty)
|
|||
/* If we must run in the background, but the target can't do it,
|
||||
error out. */
|
||||
if (async_exec && !target_can_async_p ())
|
||||
error ("Asynchronous execution not supported on this target.");
|
||||
error (_("Asynchronous execution not supported on this target."));
|
||||
|
||||
/* If we are not asked to run in the bg, then prepare to run in the
|
||||
foreground, synchronously. */
|
||||
|
@ -846,14 +846,14 @@ jump_command (char *arg, int from_tty)
|
|||
sals = decode_line_spec_1 (arg, 1);
|
||||
if (sals.nelts != 1)
|
||||
{
|
||||
error ("Unreasonable jump request");
|
||||
error (_("Unreasonable jump request"));
|
||||
}
|
||||
|
||||
sal = sals.sals[0];
|
||||
xfree (sals.sals);
|
||||
|
||||
if (sal.symtab == 0 && sal.pc == 0)
|
||||
error ("No source file has been specified.");
|
||||
error (_("No source file has been specified."));
|
||||
|
||||
resolve_sal_pc (&sal); /* May error out */
|
||||
|
||||
|
@ -865,7 +865,7 @@ jump_command (char *arg, int from_tty)
|
|||
if (!query ("Line %d is not in `%s'. Jump anyway? ", sal.line,
|
||||
SYMBOL_PRINT_NAME (fn)))
|
||||
{
|
||||
error ("Not confirmed.");
|
||||
error (_("Not confirmed."));
|
||||
/* NOTREACHED */
|
||||
}
|
||||
}
|
||||
|
@ -878,7 +878,7 @@ jump_command (char *arg, int from_tty)
|
|||
{
|
||||
if (!query ("WARNING!!! Destination is in unmapped overlay! Jump anyway? "))
|
||||
{
|
||||
error ("Not confirmed.");
|
||||
error (_("Not confirmed."));
|
||||
/* NOTREACHED */
|
||||
}
|
||||
}
|
||||
|
@ -990,7 +990,7 @@ until_next_command (int from_tty)
|
|||
struct minimal_symbol *msymbol = lookup_minimal_symbol_by_pc (pc);
|
||||
|
||||
if (msymbol == NULL)
|
||||
error ("Execution is not within a known function.");
|
||||
error (_("Execution is not within a known function."));
|
||||
|
||||
step_range_start = SYMBOL_VALUE_ADDRESS (msymbol);
|
||||
step_range_end = pc;
|
||||
|
@ -1017,7 +1017,7 @@ until_command (char *arg, int from_tty)
|
|||
int async_exec = 0;
|
||||
|
||||
if (!target_has_execution)
|
||||
error ("The program is not running.");
|
||||
error (_("The program is not running."));
|
||||
|
||||
/* Find out whether we must run in the background. */
|
||||
if (arg != NULL)
|
||||
|
@ -1026,7 +1026,7 @@ until_command (char *arg, int from_tty)
|
|||
/* If we must run in the background, but the target can't do it,
|
||||
error out. */
|
||||
if (async_exec && !target_can_async_p ())
|
||||
error ("Asynchronous execution not supported on this target.");
|
||||
error (_("Asynchronous execution not supported on this target."));
|
||||
|
||||
/* If we are not asked to run in the bg, then prepare to run in the
|
||||
foreground, synchronously. */
|
||||
|
@ -1048,7 +1048,7 @@ advance_command (char *arg, int from_tty)
|
|||
int async_exec = 0;
|
||||
|
||||
if (!target_has_execution)
|
||||
error ("The program is not running.");
|
||||
error (_("The program is not running."));
|
||||
|
||||
if (arg == NULL)
|
||||
error_no_arg ("a location");
|
||||
|
@ -1060,7 +1060,7 @@ advance_command (char *arg, int from_tty)
|
|||
/* If we must run in the background, but the target can't do it,
|
||||
error out. */
|
||||
if (async_exec && !target_can_async_p ())
|
||||
error ("Asynchronous execution not supported on this target.");
|
||||
error (_("Asynchronous execution not supported on this target."));
|
||||
|
||||
/* If we are not asked to run in the bg, then prepare to run in the
|
||||
foreground, synchronously. */
|
||||
|
@ -1201,7 +1201,7 @@ finish_command (char *arg, int from_tty)
|
|||
/* If we must run in the background, but the target can't do it,
|
||||
error out. */
|
||||
if (async_exec && !target_can_async_p ())
|
||||
error ("Asynchronous execution not supported on this target.");
|
||||
error (_("Asynchronous execution not supported on this target."));
|
||||
|
||||
/* If we are not asked to run in the bg, then prepare to run in the
|
||||
foreground, synchronously. */
|
||||
|
@ -1212,15 +1212,15 @@ finish_command (char *arg, int from_tty)
|
|||
}
|
||||
|
||||
if (arg)
|
||||
error ("The \"finish\" command does not take any arguments.");
|
||||
error (_("The \"finish\" command does not take any arguments."));
|
||||
if (!target_has_execution)
|
||||
error ("The program is not running.");
|
||||
error (_("The program is not running."));
|
||||
if (deprecated_selected_frame == NULL)
|
||||
error ("No selected frame.");
|
||||
error (_("No selected frame."));
|
||||
|
||||
frame = get_prev_frame (deprecated_selected_frame);
|
||||
if (frame == 0)
|
||||
error ("\"finish\" not meaningful in the outermost frame.");
|
||||
error (_("\"finish\" not meaningful in the outermost frame."));
|
||||
|
||||
clear_proceed_status ();
|
||||
|
||||
|
@ -1600,9 +1600,9 @@ registers_info (char *addr_exp, int fpregs)
|
|||
char *end;
|
||||
|
||||
if (!target_has_registers)
|
||||
error ("The program has no registers now.");
|
||||
error (_("The program has no registers now."));
|
||||
if (deprecated_selected_frame == NULL)
|
||||
error ("No selected frame.");
|
||||
error (_("No selected frame."));
|
||||
|
||||
if (!addr_exp)
|
||||
{
|
||||
|
@ -1628,7 +1628,7 @@ registers_info (char *addr_exp, int fpregs)
|
|||
if (addr_exp[0] == '$')
|
||||
addr_exp++;
|
||||
if (isspace ((*addr_exp)) || (*addr_exp) == '\0')
|
||||
error ("Missing register name");
|
||||
error (_("Missing register name"));
|
||||
|
||||
/* Find the start/end of this register name/num/group. */
|
||||
start = addr_exp;
|
||||
|
@ -1693,7 +1693,7 @@ registers_info (char *addr_exp, int fpregs)
|
|||
}
|
||||
|
||||
/* Nothing matched. */
|
||||
error ("Invalid register `%.*s'", (int) (end - start), start);
|
||||
error (_("Invalid register `%.*s'"), (int) (end - start), start);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1714,9 +1714,9 @@ print_vector_info (struct gdbarch *gdbarch, struct ui_file *file,
|
|||
struct frame_info *frame, const char *args)
|
||||
{
|
||||
if (!target_has_registers)
|
||||
error ("The program has no registers now.");
|
||||
error (_("The program has no registers now."));
|
||||
if (deprecated_selected_frame == NULL)
|
||||
error ("No selected frame.");
|
||||
error (_("No selected frame."));
|
||||
|
||||
if (gdbarch_print_vector_info_p (gdbarch))
|
||||
gdbarch_print_vector_info (gdbarch, file, frame, args);
|
||||
|
@ -1774,7 +1774,7 @@ attach_command (char *args, int from_tty)
|
|||
if (query ("A program is being debugged already. Kill it? "))
|
||||
target_kill ();
|
||||
else
|
||||
error ("Not killed.");
|
||||
error (_("Not killed."));
|
||||
}
|
||||
|
||||
/* Clear out solib state. Otherwise the solib state of the previous
|
||||
|
@ -1930,9 +1930,9 @@ print_float_info (struct gdbarch *gdbarch, struct ui_file *file,
|
|||
struct frame_info *frame, const char *args)
|
||||
{
|
||||
if (!target_has_registers)
|
||||
error ("The program has no registers now.");
|
||||
error (_("The program has no registers now."));
|
||||
if (deprecated_selected_frame == NULL)
|
||||
error ("No selected frame.");
|
||||
error (_("No selected frame."));
|
||||
|
||||
if (gdbarch_print_float_info_p (gdbarch))
|
||||
gdbarch_print_float_info (gdbarch, file, frame, args);
|
||||
|
|
|
@ -579,9 +579,9 @@ kill_command (char *arg, int from_tty)
|
|||
some targets don't have processes! */
|
||||
|
||||
if (ptid_equal (inferior_ptid, null_ptid))
|
||||
error ("The program is not being run.");
|
||||
error (_("The program is not being run."));
|
||||
if (!query ("Kill the program being debugged? "))
|
||||
error ("Not confirmed.");
|
||||
error (_("Not confirmed."));
|
||||
target_kill ();
|
||||
|
||||
init_thread_list (); /* Destroy thread info */
|
||||
|
|
|
@ -162,7 +162,7 @@ attach (int pid)
|
|||
attach_flag = 1;
|
||||
return pid;
|
||||
#else
|
||||
error ("This system does not support attaching to a process");
|
||||
error (_("This system does not support attaching to a process"));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -181,7 +181,7 @@ detach (int signal)
|
|||
perror_with_name ("ptrace");
|
||||
attach_flag = 0;
|
||||
#else
|
||||
error ("This system does not support detaching from a process");
|
||||
error (_("This system does not support detaching from a process"));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -235,7 +235,7 @@ fetch_register (int regnum)
|
|||
errno = 0;
|
||||
buf[i] = ptrace (PT_READ_U, tid, (PTRACE_TYPE_ARG3) addr, 0);
|
||||
if (errno != 0)
|
||||
error ("Couldn't read register %s (#%d): %s.", REGISTER_NAME (regnum),
|
||||
error (_("Couldn't read register %s (#%d): %s."), REGISTER_NAME (regnum),
|
||||
regnum, safe_strerror (errno));
|
||||
|
||||
addr += sizeof (PTRACE_TYPE_RET);
|
||||
|
@ -288,7 +288,7 @@ store_register (int regnum)
|
|||
errno = 0;
|
||||
ptrace (PT_WRITE_U, tid, (PTRACE_TYPE_ARG3) addr, buf[i]);
|
||||
if (errno != 0)
|
||||
error ("Couldn't write register %s (#%d): %s.", REGISTER_NAME (regnum),
|
||||
error (_("Couldn't write register %s (#%d): %s.")e, REGISTER_NAME (regnum),
|
||||
regnum, safe_strerror (errno));
|
||||
|
||||
addr += sizeof (PTRACE_TYPE_RET);
|
||||
|
@ -464,7 +464,7 @@ udot_info (char *dummy1, int dummy2)
|
|||
|
||||
if (!target_has_execution)
|
||||
{
|
||||
error ("The program is not being run.");
|
||||
error (_("The program is not being run."));
|
||||
}
|
||||
|
||||
#if !defined (KERNEL_U_SIZE)
|
||||
|
@ -473,7 +473,7 @@ udot_info (char *dummy1, int dummy2)
|
|||
routine, called "kernel_u_size" that returns the size of the user
|
||||
struct, to the appropriate *-nat.c file and then add to the native
|
||||
config file "#define KERNEL_U_SIZE kernel_u_size()" */
|
||||
error ("Don't know how large ``struct user'' is in this version of gdb.");
|
||||
error (_("Don't know how large ``struct user'' is in this version of gdb."));
|
||||
|
||||
#else
|
||||
|
||||
|
|
12
gdb/infrun.c
12
gdb/infrun.c
|
@ -174,10 +174,10 @@ static int debug_infrun = 0;
|
|||
static void
|
||||
default_skip_permanent_breakpoint (void)
|
||||
{
|
||||
error ("\
|
||||
error (_("\
|
||||
The program is stopped at a permanent breakpoint, but GDB does not know\n\
|
||||
how to step past a permanent breakpoint on this architecture. Try using\n\
|
||||
a command like `return' or `jump' to continue execution.");
|
||||
a command like `return' or `jump' to continue execution."));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -399,7 +399,7 @@ follow_exec (int pid, char *execd_pathname)
|
|||
tgt = find_run_target ();
|
||||
/* If we can't find one, things are in a very strange state... */
|
||||
if (tgt == NULL)
|
||||
error ("Could find run target to save before following exec");
|
||||
error (_("Could find run target to save before following exec"));
|
||||
|
||||
gdb_flush (gdb_stdout);
|
||||
target_mourn_inferior ();
|
||||
|
@ -482,7 +482,7 @@ set_schedlock_func (char *args, int from_tty, struct cmd_list_element *c)
|
|||
if (!target_can_lock_scheduler)
|
||||
{
|
||||
scheduler_mode = schedlock_off;
|
||||
error ("Target '%s' cannot support this command.", target_shortname);
|
||||
error (_("Target '%s' cannot support this command."), target_shortname);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3289,7 +3289,7 @@ handle_command (char *args, int from_tty)
|
|||
else
|
||||
{
|
||||
/* Not a number and not a recognized flag word => complain. */
|
||||
error ("Unrecognized or ambiguous flag word: \"%s\".", *argv);
|
||||
error (_("Unrecognized or ambiguous flag word: \"%s\"."), *argv);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3548,7 +3548,7 @@ restore_selected_frame (void *args)
|
|||
selected frame. */
|
||||
if (frame == NULL)
|
||||
{
|
||||
warning ("Unable to restore previously selected frame.\n");
|
||||
warning (_("Unable to restore previously selected frame."));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -188,10 +188,10 @@ child_attach (char *args, int from_tty)
|
|||
pid = strtol (args, &dummy, 0);
|
||||
/* Some targets don't set errno on errors, grrr! */
|
||||
if ((pid == 0) && (args == dummy))
|
||||
error ("Illegal process-id: %s\n", args);
|
||||
error (_("Illegal process-id: %s."), args);
|
||||
|
||||
if (pid == getpid ()) /* Trying to masturbate? */
|
||||
error ("I refuse to debug myself!");
|
||||
error (_("I refuse to debug myself!"));
|
||||
|
||||
if (from_tty)
|
||||
{
|
||||
|
@ -284,7 +284,7 @@ child_files_info (struct target_ops *ignore)
|
|||
static void
|
||||
child_open (char *arg, int from_tty)
|
||||
{
|
||||
error ("Use the \"run\" command to start a Unix child process.");
|
||||
error (_("Use the \"run\" command to start a Unix child process."));
|
||||
}
|
||||
|
||||
/* Stub function which causes the inferior that runs it, to be ptrace-able
|
||||
|
|
|
@ -144,7 +144,7 @@ interp_set (struct interp *interp)
|
|||
&& !current_interpreter->procs->suspend_proc (current_interpreter->
|
||||
data))
|
||||
{
|
||||
error ("Could not suspend interpreter \"%s\"\n",
|
||||
error (_("Could not suspend interpreter \"%s\"."),
|
||||
current_interpreter->name);
|
||||
}
|
||||
}
|
||||
|
@ -368,7 +368,7 @@ interpreter_exec_cmd (char *args, int from_tty)
|
|||
prules = buildargv (args);
|
||||
if (prules == NULL)
|
||||
{
|
||||
error ("unable to parse arguments");
|
||||
error (_("unable to parse arguments"));
|
||||
}
|
||||
|
||||
nrules = 0;
|
||||
|
@ -381,20 +381,20 @@ interpreter_exec_cmd (char *args, int from_tty)
|
|||
}
|
||||
|
||||
if (nrules < 2)
|
||||
error ("usage: interpreter-exec <interpreter> [ <command> ... ]");
|
||||
error (_("usage: interpreter-exec <interpreter> [ <command> ... ]"));
|
||||
|
||||
old_interp = current_interpreter;
|
||||
|
||||
interp_to_use = interp_lookup (prules[0]);
|
||||
if (interp_to_use == NULL)
|
||||
error ("Could not find interpreter \"%s\".", prules[0]);
|
||||
error (_("Could not find interpreter \"%s\"."), prules[0]);
|
||||
|
||||
/* Temporarily set interpreters quiet */
|
||||
old_quiet = interp_set_quiet (old_interp, 1);
|
||||
use_quiet = interp_set_quiet (interp_to_use, 1);
|
||||
|
||||
if (!interp_set (interp_to_use))
|
||||
error ("Could not switch to interpreter \"%s\".", prules[0]);
|
||||
error (_("Could not switch to interpreter \"%s\"."), prules[0]);
|
||||
|
||||
for (i = 1; i < nrules; i++)
|
||||
{
|
||||
|
@ -403,7 +403,7 @@ interpreter_exec_cmd (char *args, int from_tty)
|
|||
{
|
||||
interp_set (old_interp);
|
||||
interp_set_quiet (interp_to_use, old_quiet);
|
||||
error ("error in command: \"%s\".", prules[i]);
|
||||
error (_("error in command: \"%s\"."), prules[i]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -252,7 +252,7 @@ fetch_core_registers (char *core_reg_sect, unsigned core_reg_size,
|
|||
}
|
||||
else
|
||||
{
|
||||
warning ("wrong size gregset struct in core file");
|
||||
warning (_("wrong size gregset struct in core file"));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -580,7 +580,7 @@ get_java_object_type (void)
|
|||
sym = lookup_symbol ("java.lang.Object", NULL, STRUCT_DOMAIN,
|
||||
(int *) 0, (struct symtab **) NULL);
|
||||
if (sym == NULL)
|
||||
error ("cannot find java.lang.Object");
|
||||
error (_("cannot find java.lang.Object"));
|
||||
java_object_type = SYMBOL_TYPE (sym);
|
||||
}
|
||||
return java_object_type;
|
||||
|
@ -646,7 +646,7 @@ java_primitive_type (int signature)
|
|||
case 'V':
|
||||
return java_void_type;
|
||||
}
|
||||
error ("unknown signature '%c' for primitive type", (char) signature);
|
||||
error (_("unknown signature '%c' for primitive type"), (char) signature);
|
||||
}
|
||||
|
||||
/* If name[0 .. namelen-1] is the name of a primitive Java type,
|
||||
|
@ -790,7 +790,7 @@ java_array_type (struct type *type, int dims)
|
|||
static struct value *
|
||||
java_value_string (char *ptr, int len)
|
||||
{
|
||||
error ("not implemented - java_value_string"); /* FIXME */
|
||||
error (_("not implemented - java_value_string")); /* FIXME */
|
||||
}
|
||||
|
||||
/* Print the character C on STREAM as part of the contents of a literal
|
||||
|
@ -903,7 +903,7 @@ evaluate_subexp_java (struct type *expect_type, struct expression *exp,
|
|||
length = (long) extract_signed_integer (buf4, 4);
|
||||
index = (long) value_as_long (arg2);
|
||||
if (index >= length || index < 0)
|
||||
error ("array index (%ld) out of bounds (length: %ld)",
|
||||
error (_("array index (%ld) out of bounds (length: %ld)"),
|
||||
index, length);
|
||||
address = (address + 4) + index * TYPE_LENGTH (el_type);
|
||||
return value_at (el_type, address);
|
||||
|
@ -916,9 +916,9 @@ evaluate_subexp_java (struct type *expect_type, struct expression *exp,
|
|||
return value_subscript (arg1, arg2);
|
||||
}
|
||||
if (name)
|
||||
error ("cannot subscript something of type `%s'", name);
|
||||
error (_("cannot subscript something of type `%s'"), name);
|
||||
else
|
||||
error ("cannot subscript requested type");
|
||||
error (_("cannot subscript requested type"));
|
||||
|
||||
case OP_STRING:
|
||||
(*pos)++;
|
||||
|
|
|
@ -79,9 +79,9 @@ cisco_kod_open (kod_display_callback_ftype *display_func,
|
|||
}
|
||||
|
||||
if (buffer[i] == '\0')
|
||||
error ("Remote returned malformed packet\n");
|
||||
error (_("Remote returned malformed packet."));
|
||||
if (strcmp (&buffer[i], "0.0.0"))
|
||||
error ("Remote returned unknown stub version: %s\n", &buffer[i]);
|
||||
error (_("Remote returned unknown stub version: %s."), &buffer[i]);
|
||||
|
||||
/* Return name, version, and description. I hope we have enough
|
||||
space. */
|
||||
|
|
|
@ -117,7 +117,7 @@ gdb_kod_query (char *arg, char *result, int *maxsiz)
|
|||
/* See if buffer can hold the query (usually it can, as the query is
|
||||
short). */
|
||||
if (strlen (arg) >= bufsiz)
|
||||
error ("kod: query argument too long");
|
||||
error (_("kod: query argument too long"));
|
||||
|
||||
/* Send actual request. */
|
||||
if (target_read_partial (¤t_target, TARGET_OBJECT_KOD,
|
||||
|
@ -225,7 +225,7 @@ load_kod_library (char *lib)
|
|||
gdb_kod_close = cisco_kod_close;
|
||||
}
|
||||
else
|
||||
error ("Unknown operating system: %s\n", operating_system);
|
||||
error (_("Unknown operating system: %s."), operating_system);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -228,7 +228,7 @@ set_language_command (char *ignore, int from_tty)
|
|||
err_lang = savestring (language, strlen (language));
|
||||
make_cleanup (xfree, err_lang); /* Free it after error */
|
||||
set_language (current_language->la_language);
|
||||
error ("Unknown language `%s'.", err_lang);
|
||||
error (_("Unknown language `%s'."), err_lang);
|
||||
}
|
||||
|
||||
/* Show command. Display a warning if the type setting does
|
||||
|
@ -270,7 +270,7 @@ set_type_command (char *ignore, int from_tty)
|
|||
}
|
||||
else
|
||||
{
|
||||
warning ("Unrecognized type check setting: \"%s\"", type);
|
||||
warning (_("Unrecognized type check setting: \"%s\""), type);
|
||||
}
|
||||
set_type_str ();
|
||||
show_type_command ((char *) NULL, from_tty);
|
||||
|
@ -316,7 +316,7 @@ set_range_command (char *ignore, int from_tty)
|
|||
}
|
||||
else
|
||||
{
|
||||
warning ("Unrecognized range check setting: \"%s\"", range);
|
||||
warning (_("Unrecognized range check setting: \"%s\""), range);
|
||||
}
|
||||
set_range_str ();
|
||||
show_range_command ((char *) 0, from_tty);
|
||||
|
@ -356,7 +356,7 @@ set_case_command (char *ignore, int from_tty)
|
|||
}
|
||||
else
|
||||
{
|
||||
warning ("Unrecognized case-sensitive setting: \"%s\"", case_sensitive);
|
||||
warning (_("Unrecognized case-sensitive setting: \"%s\""), case_sensitive);
|
||||
}
|
||||
set_case_str();
|
||||
show_case_command ((char *) NULL, from_tty);
|
||||
|
@ -445,7 +445,7 @@ set_type_str (void)
|
|||
tmp = "warn";
|
||||
break;
|
||||
default:
|
||||
error ("Unrecognized type check setting.");
|
||||
error (_("Unrecognized type check setting."));
|
||||
}
|
||||
|
||||
type = concat (prefix, tmp, NULL);
|
||||
|
@ -471,7 +471,7 @@ set_range_str (void)
|
|||
tmp = "warn";
|
||||
break;
|
||||
default:
|
||||
error ("Unrecognized range check setting.");
|
||||
error (_("Unrecognized range check setting."));
|
||||
}
|
||||
|
||||
if (range)
|
||||
|
@ -496,7 +496,7 @@ set_case_str (void)
|
|||
tmp = "off";
|
||||
break;
|
||||
default:
|
||||
error ("Unrecognized case-sensitive setting.");
|
||||
error (_("Unrecognized case-sensitive setting."));
|
||||
}
|
||||
|
||||
xfree (case_sensitive);
|
||||
|
@ -663,7 +663,7 @@ integral_type (struct type *type)
|
|||
case language_pascal:
|
||||
return TYPE_CODE (type) != TYPE_CODE_INT ? 0 : 1;
|
||||
default:
|
||||
error ("Language not supported.");
|
||||
error (_("Language not supported."));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1074,39 +1074,39 @@ unk_lang_parser (void)
|
|||
static void
|
||||
unk_lang_error (char *msg)
|
||||
{
|
||||
error ("Attempted to parse an expression with unknown language");
|
||||
error (_("Attempted to parse an expression with unknown language"));
|
||||
}
|
||||
|
||||
static void
|
||||
unk_lang_emit_char (int c, struct ui_file *stream, int quoter)
|
||||
{
|
||||
error ("internal error - unimplemented function unk_lang_emit_char called.");
|
||||
error (_("internal error - unimplemented function unk_lang_emit_char called."));
|
||||
}
|
||||
|
||||
static void
|
||||
unk_lang_printchar (int c, struct ui_file *stream)
|
||||
{
|
||||
error ("internal error - unimplemented function unk_lang_printchar called.");
|
||||
error (_("internal error - unimplemented function unk_lang_printchar called."));
|
||||
}
|
||||
|
||||
static void
|
||||
unk_lang_printstr (struct ui_file *stream, const bfd_byte *string,
|
||||
unsigned int length, int width, int force_ellipses)
|
||||
{
|
||||
error ("internal error - unimplemented function unk_lang_printstr called.");
|
||||
error (_("internal error - unimplemented function unk_lang_printstr called."));
|
||||
}
|
||||
|
||||
static struct type *
|
||||
unk_lang_create_fundamental_type (struct objfile *objfile, int typeid)
|
||||
{
|
||||
error ("internal error - unimplemented function unk_lang_create_fundamental_type called.");
|
||||
error (_("internal error - unimplemented function unk_lang_create_fundamental_type called."));
|
||||
}
|
||||
|
||||
static void
|
||||
unk_lang_print_type (struct type *type, char *varstring, struct ui_file *stream,
|
||||
int show, int level)
|
||||
{
|
||||
error ("internal error - unimplemented function unk_lang_print_type called.");
|
||||
error (_("internal error - unimplemented function unk_lang_print_type called."));
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -1115,14 +1115,14 @@ unk_lang_val_print (struct type *type, const bfd_byte *valaddr,
|
|||
struct ui_file *stream, int format,
|
||||
int deref_ref, int recurse, enum val_prettyprint pretty)
|
||||
{
|
||||
error ("internal error - unimplemented function unk_lang_val_print called.");
|
||||
error (_("internal error - unimplemented function unk_lang_val_print called."));
|
||||
}
|
||||
|
||||
static int
|
||||
unk_lang_value_print (struct value *val, struct ui_file *stream, int format,
|
||||
enum val_prettyprint pretty)
|
||||
{
|
||||
error ("internal error - unimplemented function unk_lang_value_print called.");
|
||||
error (_("internal error - unimplemented function unk_lang_value_print called."));
|
||||
}
|
||||
|
||||
static CORE_ADDR unk_lang_trampoline (CORE_ADDR pc)
|
||||
|
|
|
@ -162,7 +162,7 @@ libunwind_frame_cache (struct frame_info *next_frame, void **this_cache)
|
|||
uw_sp_regnum = descr->gdb2uw (SP_REGNUM);
|
||||
ret = unw_get_reg_p (&cache->cursor, uw_sp_regnum, &fp);
|
||||
if (ret < 0)
|
||||
error ("Can't get libunwind sp register.");
|
||||
error (_("Can't get libunwind sp register."));
|
||||
|
||||
cache->base = (CORE_ADDR)fp;
|
||||
|
||||
|
@ -252,7 +252,7 @@ libunwind_frame_prev_register (struct frame_info *next_frame, void **this_cache,
|
|||
gdb_assert (regnum >= 0);
|
||||
|
||||
if (!target_has_registers)
|
||||
error ("No registers.");
|
||||
error (_("No registers."));
|
||||
|
||||
*optimizedp = 0;
|
||||
*addrp = 0;
|
||||
|
|
|
@ -545,12 +545,12 @@ decode_line_2 (struct symbol *sym_arr[], int nelts, int funfirstline,
|
|||
while (*arg1 >= '0' && *arg1 <= '9')
|
||||
arg1++;
|
||||
if (*arg1 && *arg1 != ' ' && *arg1 != '\t')
|
||||
error ("Arguments must be choice numbers.");
|
||||
error (_("Arguments must be choice numbers."));
|
||||
|
||||
num = atoi (args);
|
||||
|
||||
if (num == 0)
|
||||
error ("canceled");
|
||||
error (_("canceled"));
|
||||
else if (num == 1)
|
||||
{
|
||||
if (canonical_arr)
|
||||
|
@ -807,7 +807,7 @@ decode_line_1 (char **argptr, int funfirstline, struct symtab *default_symtab,
|
|||
{
|
||||
p = skip_quoted (*argptr);
|
||||
if (p[-1] != '\'')
|
||||
error ("Unmatched single quote.");
|
||||
error (_("Unmatched single quote."));
|
||||
}
|
||||
else if (is_objc_method)
|
||||
{
|
||||
|
@ -1012,7 +1012,7 @@ locate_first_half (char **argptr, int *is_quote_enclosed)
|
|||
{
|
||||
char *temp_end = find_template_name_end (p);
|
||||
if (!temp_end)
|
||||
error ("malformed template specification in command");
|
||||
error (_("malformed template specification in command"));
|
||||
p = temp_end;
|
||||
}
|
||||
/* Check for a colon and a plus or minus and a [ (which
|
||||
|
@ -1119,7 +1119,7 @@ decode_objc (char **argptr, int funfirstline, struct symtab *file_symtab,
|
|||
sym = find_pc_function (SYMBOL_VALUE_ADDRESS (sym_arr[0]));
|
||||
if ((sym != NULL) && strcmp (SYMBOL_LINKAGE_NAME (sym_arr[0]), SYMBOL_LINKAGE_NAME (sym)) != 0)
|
||||
{
|
||||
warning ("debugging symbol \"%s\" does not match selector; ignoring", SYMBOL_LINKAGE_NAME (sym));
|
||||
warning (_("debugging symbol \"%s\" does not match selector; ignoring"), SYMBOL_LINKAGE_NAME (sym));
|
||||
sym = NULL;
|
||||
}
|
||||
}
|
||||
|
@ -1227,7 +1227,7 @@ decode_compound (char **argptr, int funfirstline, char ***canonical,
|
|||
{
|
||||
temp_end = find_template_name_end (p);
|
||||
if (!temp_end)
|
||||
error ("malformed template specification in command");
|
||||
error (_("malformed template specification in command"));
|
||||
p = temp_end;
|
||||
}
|
||||
/* Note that, since, at the start of this loop, p would be
|
||||
|
@ -1526,7 +1526,7 @@ symtab_from_filename (char **argptr, char *p, int is_quote_enclosed,
|
|||
if (file_symtab == 0)
|
||||
{
|
||||
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."));
|
||||
if (not_found_ptr)
|
||||
*not_found_ptr = 1;
|
||||
throw_error (NOT_FOUND_ERROR, "No source file named %s.", copy);
|
||||
|
@ -1656,7 +1656,7 @@ decode_dollar (char *copy, int funfirstline, struct symtab *default_symtab,
|
|||
sscanf ((copy[1] == '$') ? copy + 2 : copy + 1, "%d", &index);
|
||||
valx = access_value_history ((copy[1] == '$') ? -index : index);
|
||||
if (TYPE_CODE (value_type (valx)) != TYPE_CODE_INT)
|
||||
error ("History values used in line specs must have integer values.");
|
||||
error (_("History values used in line specs must have integer values."));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1682,7 +1682,7 @@ decode_dollar (char *copy, int funfirstline, struct symtab *default_symtab,
|
|||
need_canonical = (file_symtab == 0) ? 1 : 0;
|
||||
valx = value_of_internalvar (lookup_internalvar (copy + 1));
|
||||
if (TYPE_CODE (value_type (valx)) != TYPE_CODE_INT)
|
||||
error ("Convenience variables used in line specs must have integer values.");
|
||||
error (_("Convenience variables used in line specs must have integer values."));
|
||||
}
|
||||
|
||||
init_sal (&val);
|
||||
|
@ -1737,7 +1737,7 @@ decode_variable (char *copy, int funfirstline, char ***canonical,
|
|||
|
||||
if (!have_full_symbols () &&
|
||||
!have_partial_symbols () && !have_minimal_symbols ())
|
||||
error ("No symbol table is loaded. Use the \"file\" command.");
|
||||
error (_("No symbol table is loaded. Use the \"file\" command."));
|
||||
|
||||
if (not_found_ptr)
|
||||
*not_found_ptr = 1;
|
||||
|
@ -1786,7 +1786,7 @@ symbol_found (int funfirstline, char ***canonical, char *copy,
|
|||
else
|
||||
{
|
||||
if (funfirstline)
|
||||
error ("\"%s\" is not a function", copy);
|
||||
error (_("\"%s\" is not a function"), copy);
|
||||
else if (SYMBOL_LINE (sym) != 0)
|
||||
{
|
||||
/* We know its line number. */
|
||||
|
@ -1804,7 +1804,7 @@ symbol_found (int funfirstline, char ***canonical, char *copy,
|
|||
/* FIXME: Shouldn't we just set .line and .symtab to zero
|
||||
and return? For example, "info line foo" could print
|
||||
the address. */
|
||||
error ("Line number not known for symbol \"%s\"", copy);
|
||||
error (_("Line number not known for symbol \"%s\""), copy);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -202,9 +202,9 @@ linux_test_for_tracefork (int original_pid)
|
|||
if (ret == -1)
|
||||
perror_with_name ("linux_test_for_tracefork: waitpid");
|
||||
else if (ret != child_pid)
|
||||
error ("linux_test_for_tracefork: waitpid: unexpected result %d.", ret);
|
||||
error (_("linux_test_for_tracefork: waitpid: unexpected result %d."), ret);
|
||||
if (! WIFSTOPPED (status))
|
||||
error ("linux_test_for_tracefork: waitpid: unexpected status %d.", status);
|
||||
error (_("linux_test_for_tracefork: waitpid: unexpected status %d."), status);
|
||||
|
||||
ret = ptrace (PTRACE_SETOPTIONS, child_pid, 0, PTRACE_O_TRACEFORK);
|
||||
if (ret != 0)
|
||||
|
@ -212,16 +212,16 @@ linux_test_for_tracefork (int original_pid)
|
|||
ret = ptrace (PTRACE_KILL, child_pid, 0, 0);
|
||||
if (ret != 0)
|
||||
{
|
||||
warning ("linux_test_for_tracefork: failed to kill child");
|
||||
warning (_("linux_test_for_tracefork: failed to kill child"));
|
||||
return;
|
||||
}
|
||||
|
||||
ret = my_waitpid (child_pid, &status, 0);
|
||||
if (ret != child_pid)
|
||||
warning ("linux_test_for_tracefork: failed to wait for killed child");
|
||||
warning (_("linux_test_for_tracefork: failed to wait for killed child"));
|
||||
else if (!WIFSIGNALED (status))
|
||||
warning ("linux_test_for_tracefork: unexpected wait status 0x%x from "
|
||||
"killed child", status);
|
||||
warning (_("linux_test_for_tracefork: unexpected wait status 0x%x from "
|
||||
"killed child"), status);
|
||||
|
||||
return;
|
||||
}
|
||||
|
@ -233,7 +233,7 @@ linux_test_for_tracefork (int original_pid)
|
|||
|
||||
ret = ptrace (PTRACE_CONT, child_pid, 0, 0);
|
||||
if (ret != 0)
|
||||
warning ("linux_test_for_tracefork: failed to resume child");
|
||||
warning (_("linux_test_for_tracefork: failed to resume child"));
|
||||
|
||||
ret = my_waitpid (child_pid, &status, 0);
|
||||
|
||||
|
@ -250,16 +250,16 @@ linux_test_for_tracefork (int original_pid)
|
|||
my_waitpid (second_pid, &second_status, 0);
|
||||
ret = ptrace (PTRACE_KILL, second_pid, 0, 0);
|
||||
if (ret != 0)
|
||||
warning ("linux_test_for_tracefork: failed to kill second child");
|
||||
warning (_("linux_test_for_tracefork: failed to kill second child"));
|
||||
}
|
||||
}
|
||||
else
|
||||
warning ("linux_test_for_tracefork: unexpected result from waitpid "
|
||||
"(%d, status 0x%x)", ret, status);
|
||||
warning (_("linux_test_for_tracefork: unexpected result from waitpid "
|
||||
"(%d, status 0x%x)"), ret, status);
|
||||
|
||||
ret = ptrace (PTRACE_KILL, child_pid, 0, 0);
|
||||
if (ret != 0)
|
||||
warning ("linux_test_for_tracefork: failed to kill child");
|
||||
warning (_("linux_test_for_tracefork: failed to kill child"));
|
||||
my_waitpid (child_pid, &status, 0);
|
||||
}
|
||||
|
||||
|
@ -363,8 +363,8 @@ child_follow_fork (int follow_child)
|
|||
ptrace (PTRACE_CONT, parent_pid, 0, 0);
|
||||
waitpid (parent_pid, &status, __WALL);
|
||||
if ((status >> 16) != PTRACE_EVENT_VFORK_DONE)
|
||||
warning ("Unexpected waitpid result %06x when waiting for "
|
||||
"vfork-done", status);
|
||||
warning (_("Unexpected waitpid result %06x when waiting for "
|
||||
"vfork-done"), status);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -525,21 +525,21 @@ void
|
|||
child_insert_fork_catchpoint (int pid)
|
||||
{
|
||||
if (! linux_supports_tracefork (pid))
|
||||
error ("Your system does not support fork catchpoints.");
|
||||
error (_("Your system does not support fork catchpoints."));
|
||||
}
|
||||
|
||||
void
|
||||
child_insert_vfork_catchpoint (int pid)
|
||||
{
|
||||
if (!linux_supports_tracefork (pid))
|
||||
error ("Your system does not support vfork catchpoints.");
|
||||
error (_("Your system does not support vfork catchpoints."));
|
||||
}
|
||||
|
||||
void
|
||||
child_insert_exec_catchpoint (int pid)
|
||||
{
|
||||
if (!linux_supports_tracefork (pid))
|
||||
error ("Your system does not support exec catchpoints.");
|
||||
error (_("Your system does not support exec catchpoints."));
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -840,7 +840,7 @@ lin_lwp_attach_lwp (ptid_t ptid, int verbose)
|
|||
int status;
|
||||
|
||||
if (ptrace (PTRACE_ATTACH, GET_LWP (ptid), 0, 0) < 0)
|
||||
error ("Can't attach %s: %s", target_pid_to_str (ptid),
|
||||
error (_("Can't attach %s: %s"), target_pid_to_str (ptid),
|
||||
safe_strerror (errno));
|
||||
|
||||
if (debug_linux_nat)
|
||||
|
@ -903,7 +903,7 @@ linux_nat_attach (char *args, int from_tty)
|
|||
pid = waitpid (GET_PID (inferior_ptid), &status, 0);
|
||||
if (pid == -1 && errno == ECHILD)
|
||||
{
|
||||
warning ("%s is a cloned process", target_pid_to_str (inferior_ptid));
|
||||
warning (_("%s is a cloned process"), target_pid_to_str (inferior_ptid));
|
||||
|
||||
/* Try again with __WCLONE to check cloned processes. */
|
||||
pid = waitpid (GET_PID (inferior_ptid), &status, __WCLONE);
|
||||
|
@ -940,7 +940,7 @@ detach_callback (struct lwp_info *lp, void *data)
|
|||
errno = 0;
|
||||
if (ptrace (PTRACE_CONT, GET_LWP (lp->ptid), 0,
|
||||
WSTOPSIG (lp->status)) < 0)
|
||||
error ("Can't continue %s: %s", target_pid_to_str (lp->ptid),
|
||||
error (_("Can't continue %s: %s"), target_pid_to_str (lp->ptid),
|
||||
safe_strerror (errno));
|
||||
|
||||
if (debug_linux_nat)
|
||||
|
@ -969,7 +969,7 @@ detach_callback (struct lwp_info *lp, void *data)
|
|||
errno = 0;
|
||||
if (ptrace (PTRACE_DETACH, GET_LWP (lp->ptid), 0,
|
||||
WSTOPSIG (lp->status)) < 0)
|
||||
error ("Can't detach %s: %s", target_pid_to_str (lp->ptid),
|
||||
error (_("Can't detach %s: %s"), target_pid_to_str (lp->ptid),
|
||||
safe_strerror (errno));
|
||||
|
||||
if (debug_linux_nat)
|
||||
|
@ -1753,7 +1753,7 @@ child_wait (ptid_t ptid, struct target_waitstatus *ourstatus)
|
|||
|
||||
if (pid == -1)
|
||||
{
|
||||
warning ("Child process unexpectedly missing: %s",
|
||||
warning (_("Child process unexpectedly missing: %s"),
|
||||
safe_strerror (errno));
|
||||
|
||||
/* Claim it exited with unknown signal. */
|
||||
|
@ -2471,7 +2471,7 @@ linux_nat_find_memory_regions (int (*func) (CORE_ADDR,
|
|||
/* Compose the filename for the /proc memory map, and open it. */
|
||||
sprintf (mapsfilename, "/proc/%lld/maps", pid);
|
||||
if ((mapsfile = fopen (mapsfilename, "r")) == NULL)
|
||||
error ("Could not open %s\n", mapsfilename);
|
||||
error (_("Could not open %s."), mapsfilename);
|
||||
|
||||
if (info_verbose)
|
||||
fprintf_filtered (gdb_stdout,
|
||||
|
@ -2723,11 +2723,11 @@ linux_nat_info_proc_cmd (char *args, int from_tty)
|
|||
argv++;
|
||||
}
|
||||
if (pid == 0)
|
||||
error ("No current process: you must name one.");
|
||||
error (_("No current process: you must name one."));
|
||||
|
||||
sprintf (fname1, "/proc/%lld", pid);
|
||||
if (stat (fname1, &dummy) != 0)
|
||||
error ("No /proc directory: '%s'", fname1);
|
||||
error (_("No /proc directory: '%s'"), fname1);
|
||||
|
||||
printf_filtered ("process %lld\n", pid);
|
||||
if (cmdline_f || all)
|
||||
|
@ -2740,7 +2740,7 @@ linux_nat_info_proc_cmd (char *args, int from_tty)
|
|||
fclose (procfile);
|
||||
}
|
||||
else
|
||||
warning ("unable to open /proc file '%s'", fname1);
|
||||
warning (_("unable to open /proc file '%s'"), fname1);
|
||||
}
|
||||
if (cwd_f || all)
|
||||
{
|
||||
|
@ -2749,7 +2749,7 @@ linux_nat_info_proc_cmd (char *args, int from_tty)
|
|||
if (readlink (fname1, fname2, sizeof (fname2)) > 0)
|
||||
printf_filtered ("cwd = '%s'\n", fname2);
|
||||
else
|
||||
warning ("unable to read link '%s'", fname1);
|
||||
warning (_("unable to read link '%s'"), fname1);
|
||||
}
|
||||
if (exe_f || all)
|
||||
{
|
||||
|
@ -2758,7 +2758,7 @@ linux_nat_info_proc_cmd (char *args, int from_tty)
|
|||
if (readlink (fname1, fname2, sizeof (fname2)) > 0)
|
||||
printf_filtered ("exe = '%s'\n", fname2);
|
||||
else
|
||||
warning ("unable to read link '%s'", fname1);
|
||||
warning (_("unable to read link '%s'"), fname1);
|
||||
}
|
||||
if (mappings_f || all)
|
||||
{
|
||||
|
@ -2818,7 +2818,7 @@ linux_nat_info_proc_cmd (char *args, int from_tty)
|
|||
fclose (procfile);
|
||||
}
|
||||
else
|
||||
warning ("unable to open /proc file '%s'", fname1);
|
||||
warning (_("unable to open /proc file '%s'"), fname1);
|
||||
}
|
||||
if (status_f || all)
|
||||
{
|
||||
|
@ -2830,7 +2830,7 @@ linux_nat_info_proc_cmd (char *args, int from_tty)
|
|||
fclose (procfile);
|
||||
}
|
||||
else
|
||||
warning ("unable to open /proc file '%s'", fname1);
|
||||
warning (_("unable to open /proc file '%s'"), fname1);
|
||||
}
|
||||
if (stat_f || all)
|
||||
{
|
||||
|
@ -2925,7 +2925,7 @@ linux_nat_info_proc_cmd (char *args, int from_tty)
|
|||
fclose (procfile);
|
||||
}
|
||||
else
|
||||
warning ("unable to open /proc file '%s'", fname1);
|
||||
warning (_("unable to open /proc file '%s'"), fname1);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2977,7 +2977,7 @@ add_line_to_sigset (const char *line, sigset_t *sigs)
|
|||
int signum;
|
||||
|
||||
if (line[len] != '\n')
|
||||
error ("Could not parse signal set: %s", line);
|
||||
error (_("Could not parse signal set: %s"), line);
|
||||
|
||||
p = line;
|
||||
signum = len * 4;
|
||||
|
@ -2990,7 +2990,7 @@ add_line_to_sigset (const char *line, sigset_t *sigs)
|
|||
else if (*p >= 'a' && *p <= 'f')
|
||||
digit = *p - 'a' + 10;
|
||||
else
|
||||
error ("Could not parse signal set: %s", line);
|
||||
error (_("Could not parse signal set: %s"), line);
|
||||
|
||||
signum -= 4;
|
||||
|
||||
|
@ -3023,7 +3023,7 @@ linux_proc_pending_signals (int pid, sigset_t *pending, sigset_t *blocked, sigse
|
|||
sprintf (fname, "/proc/%d/status", pid);
|
||||
procfile = fopen (fname, "r");
|
||||
if (procfile == NULL)
|
||||
error ("Could not open %s", fname);
|
||||
error (_("Could not open %s"), fname);
|
||||
|
||||
while (fgets (buffer, MAXPATHLEN, procfile) != NULL)
|
||||
{
|
||||
|
|
|
@ -262,7 +262,7 @@ thread_get_info_callback (const td_thrhandle_t *thp, void *infop)
|
|||
|
||||
err = td_thr_get_info_p (thp, &ti);
|
||||
if (err != TD_OK)
|
||||
error ("thread_get_info_callback: cannot get thread info: %s",
|
||||
error (_("thread_get_info_callback: cannot get thread info: %s"),
|
||||
thread_db_err_str (err));
|
||||
|
||||
/* Fill the cache. */
|
||||
|
@ -319,7 +319,7 @@ thread_db_map_id2thr (struct thread_info *thread_info, int fatal)
|
|||
if (err != TD_OK)
|
||||
{
|
||||
if (fatal)
|
||||
error ("Cannot find thread %ld: %s",
|
||||
error (_("Cannot find thread %ld: %s"),
|
||||
(long) GET_THREAD (thread_info->ptid),
|
||||
thread_db_err_str (err));
|
||||
}
|
||||
|
@ -341,7 +341,7 @@ thread_db_get_info (struct thread_info *thread_info)
|
|||
err =
|
||||
td_thr_get_info_p (&thread_info->private->th, &thread_info->private->ti);
|
||||
if (err != TD_OK)
|
||||
error ("thread_db_get_info: cannot get thread info: %s",
|
||||
error (_("thread_db_get_info: cannot get thread info: %s"),
|
||||
thread_db_err_str (err));
|
||||
|
||||
thread_info->private->ti_valid = 1;
|
||||
|
@ -365,7 +365,7 @@ thread_from_lwp (ptid_t ptid)
|
|||
|
||||
err = td_ta_map_lwp2thr_p (thread_agent, GET_LWP (ptid), &th);
|
||||
if (err != TD_OK)
|
||||
error ("Cannot find user-level thread for LWP %ld: %s",
|
||||
error (_("Cannot find user-level thread for LWP %ld: %s"),
|
||||
GET_LWP (ptid), thread_db_err_str (err));
|
||||
|
||||
thread_info = NULL;
|
||||
|
@ -406,7 +406,7 @@ verbose_dlsym (void *handle, const char *name)
|
|||
{
|
||||
void *sym = dlsym (handle, name);
|
||||
if (sym == NULL)
|
||||
warning ("Symbol \"%s\" not found in libthread_db: %s", name, dlerror ());
|
||||
warning (_("Symbol \"%s\" not found in libthread_db: %s"), name, dlerror ());
|
||||
return sym;
|
||||
}
|
||||
|
||||
|
@ -477,7 +477,7 @@ thread_db_load (void)
|
|||
err = td_init_p ();
|
||||
if (err != TD_OK)
|
||||
{
|
||||
warning ("Cannot initialize libthread_db: %s", thread_db_err_str (err));
|
||||
warning (_("Cannot initialize libthread_db: %s"), thread_db_err_str (err));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -545,7 +545,7 @@ enable_thread_event_reporting (void)
|
|||
err = td_ta_set_event_p (thread_agent, &events);
|
||||
if (err != TD_OK)
|
||||
{
|
||||
warning ("Unable to set global thread event mask: %s",
|
||||
warning (_("Unable to set global thread event mask: %s"),
|
||||
thread_db_err_str (err));
|
||||
return;
|
||||
}
|
||||
|
@ -559,7 +559,7 @@ enable_thread_event_reporting (void)
|
|||
err = enable_thread_event (thread_agent, TD_CREATE, &td_create_bp_addr);
|
||||
if (err != TD_OK)
|
||||
{
|
||||
warning ("Unable to get location for thread creation breakpoint: %s",
|
||||
warning (_("Unable to get location for thread creation breakpoint: %s"),
|
||||
thread_db_err_str (err));
|
||||
return;
|
||||
}
|
||||
|
@ -568,7 +568,7 @@ enable_thread_event_reporting (void)
|
|||
err = enable_thread_event (thread_agent, TD_DEATH, &td_death_bp_addr);
|
||||
if (err != TD_OK)
|
||||
{
|
||||
warning ("Unable to get location for thread death breakpoint: %s",
|
||||
warning (_("Unable to get location for thread death breakpoint: %s"),
|
||||
thread_db_err_str (err));
|
||||
return;
|
||||
}
|
||||
|
@ -693,7 +693,7 @@ thread_db_new_objfile (struct objfile *objfile)
|
|||
break;
|
||||
|
||||
default:
|
||||
warning ("Cannot initialize thread debugging library: %s",
|
||||
warning (_("Cannot initialize thread debugging library: %s"),
|
||||
thread_db_err_str (err));
|
||||
break;
|
||||
}
|
||||
|
@ -756,7 +756,7 @@ attach_thread (ptid_t ptid, const td_thrhandle_t *th_p,
|
|||
/* Enable thread event reporting for this thread. */
|
||||
err = td_thr_event_enable_p (th_p, 1);
|
||||
if (err != TD_OK)
|
||||
error ("Cannot enable thread event reporting for %s: %s",
|
||||
error (_("Cannot enable thread event reporting for %s: %s"),
|
||||
target_pid_to_str (ptid), thread_db_err_str (err));
|
||||
}
|
||||
|
||||
|
@ -886,13 +886,13 @@ check_event (ptid_t ptid)
|
|||
if (err == TD_NOMSG)
|
||||
return;
|
||||
|
||||
error ("Cannot get thread event message: %s",
|
||||
error (_("Cannot get thread event message: %s"),
|
||||
thread_db_err_str (err));
|
||||
}
|
||||
|
||||
err = td_thr_get_info_p (msg.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));
|
||||
|
||||
ptid = ptid_build (GET_PID (ptid), ti.ti_lid, ti.ti_tid);
|
||||
|
||||
|
@ -908,14 +908,14 @@ check_event (ptid_t ptid)
|
|||
case TD_DEATH:
|
||||
|
||||
if (!in_thread_list (ptid))
|
||||
error ("Spurious thread death event.");
|
||||
error (_("Spurious thread death event."));
|
||||
|
||||
detach_thread (ptid, 1);
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
error ("Spurious thread event.");
|
||||
error (_("Spurious thread event."));
|
||||
}
|
||||
}
|
||||
while (loop);
|
||||
|
@ -1005,12 +1005,12 @@ thread_db_fetch_registers (int regno)
|
|||
|
||||
err = td_thr_getgregs_p (&thread_info->private->th, gregset);
|
||||
if (err != TD_OK)
|
||||
error ("Cannot fetch general-purpose registers for thread %ld: %s",
|
||||
error (_("Cannot fetch general-purpose registers for thread %ld: %s"),
|
||||
(long) GET_THREAD (inferior_ptid), thread_db_err_str (err));
|
||||
|
||||
err = td_thr_getfpregs_p (&thread_info->private->th, &fpregset);
|
||||
if (err != TD_OK)
|
||||
error ("Cannot get floating-point registers for thread %ld: %s",
|
||||
error (_("Cannot get floating-point registers for thread %ld: %s"),
|
||||
(long) GET_THREAD (inferior_ptid), thread_db_err_str (err));
|
||||
|
||||
/* Note that we must call supply_gregset after calling the thread_db
|
||||
|
@ -1052,11 +1052,11 @@ thread_db_store_registers (int regno)
|
|||
|
||||
err = td_thr_setgregs_p (&thread_info->private->th, gregset);
|
||||
if (err != TD_OK)
|
||||
error ("Cannot store general-purpose registers for thread %ld: %s",
|
||||
error (_("Cannot store general-purpose registers for thread %ld: %s"),
|
||||
(long) GET_THREAD (inferior_ptid), thread_db_err_str (err));
|
||||
err = td_thr_setfpregs_p (&thread_info->private->th, &fpregset);
|
||||
if (err != TD_OK)
|
||||
error ("Cannot store floating-point registers for thread %ld: %s",
|
||||
error (_("Cannot store floating-point registers for thread %ld: %s"),
|
||||
(long) GET_THREAD (inferior_ptid), thread_db_err_str (err));
|
||||
}
|
||||
|
||||
|
@ -1160,7 +1160,7 @@ find_new_threads_callback (const td_thrhandle_t *th_p, void *data)
|
|||
|
||||
err = td_thr_get_info_p (th_p, &ti);
|
||||
if (err != TD_OK)
|
||||
error ("find_new_threads_callback: cannot get thread info: %s",
|
||||
error (_("find_new_threads_callback: cannot get thread info: %s"),
|
||||
thread_db_err_str (err));
|
||||
|
||||
if (ti.ti_state == TD_THR_UNKNOWN || ti.ti_state == TD_THR_ZOMBIE)
|
||||
|
@ -1184,7 +1184,7 @@ thread_db_find_new_threads (void)
|
|||
TD_THR_ANY_STATE, TD_THR_LOWEST_PRIORITY,
|
||||
TD_SIGNO_MASK, TD_THR_ANY_USER_FLAGS);
|
||||
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));
|
||||
}
|
||||
|
||||
static char *
|
||||
|
@ -1246,7 +1246,7 @@ thread_db_get_thread_local_address (ptid_t ptid, struct objfile *objfile,
|
|||
|
||||
/* glibc doesn't provide the needed interface. */
|
||||
if (!td_thr_tls_get_addr_p)
|
||||
error ("Cannot find thread-local variables in this thread library.");
|
||||
error (_("Cannot find thread-local variables in this thread library."));
|
||||
|
||||
/* Get the address of the link map for this objfile. */
|
||||
lm = svr4_fetch_objfile_link_map (objfile);
|
||||
|
@ -1255,11 +1255,11 @@ thread_db_get_thread_local_address (ptid_t ptid, struct objfile *objfile,
|
|||
if (!lm)
|
||||
{
|
||||
if (objfile_is_library)
|
||||
error ("Cannot find shared library `%s' link_map in dynamic"
|
||||
" linker's module list", objfile->name);
|
||||
error (_("Cannot find shared library `%s' link_map in dynamic"
|
||||
" linker's module list"), objfile->name);
|
||||
else
|
||||
error ("Cannot find executable file `%s' link_map in dynamic"
|
||||
" linker's module list", objfile->name);
|
||||
error (_("Cannot find executable file `%s' link_map in dynamic"
|
||||
" linker's module list"), objfile->name);
|
||||
}
|
||||
|
||||
/* Get info about the thread. */
|
||||
|
@ -1278,16 +1278,16 @@ thread_db_get_thread_local_address (ptid_t ptid, struct objfile *objfile,
|
|||
address, we *could* try to build a non-lvalue value from
|
||||
the initialization image. */
|
||||
if (objfile_is_library)
|
||||
error ("The inferior has not yet allocated storage for"
|
||||
error (_("The inferior has not yet allocated storage for"
|
||||
" thread-local variables in\n"
|
||||
"the shared library `%s'\n"
|
||||
"for the thread %ld",
|
||||
"for the thread %ld"),
|
||||
objfile->name, (long) GET_THREAD (ptid));
|
||||
else
|
||||
error ("The inferior has not yet allocated storage for"
|
||||
error (_("The inferior has not yet allocated storage for"
|
||||
" thread-local variables in\n"
|
||||
"the executable `%s'\n"
|
||||
"for the thread %ld",
|
||||
"for the thread %ld"),
|
||||
objfile->name, (long) GET_THREAD (ptid));
|
||||
}
|
||||
#endif
|
||||
|
@ -1296,13 +1296,13 @@ thread_db_get_thread_local_address (ptid_t ptid, struct objfile *objfile,
|
|||
if (err != TD_OK)
|
||||
{
|
||||
if (objfile_is_library)
|
||||
error ("Cannot find thread-local storage for thread %ld, "
|
||||
"shared library %s:\n%s",
|
||||
error (_("Cannot find thread-local storage for thread %ld, "
|
||||
"shared library %s:\n%s"),
|
||||
(long) GET_THREAD (ptid),
|
||||
objfile->name, thread_db_err_str (err));
|
||||
else
|
||||
error ("Cannot find thread-local storage for thread %ld, "
|
||||
"executable file %s:\n%s",
|
||||
error (_("Cannot find thread-local storage for thread %ld, "
|
||||
"executable file %s:\n%s"),
|
||||
(long) GET_THREAD (ptid),
|
||||
objfile->name, thread_db_err_str (err));
|
||||
}
|
||||
|
@ -1315,7 +1315,7 @@ thread_db_get_thread_local_address (ptid_t ptid, struct objfile *objfile,
|
|||
return target_beneath->to_get_thread_local_address (ptid, objfile,
|
||||
offset);
|
||||
|
||||
error ("Cannot find thread-local values on this target.");
|
||||
error (_("Cannot find thread-local values on this target."));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -208,7 +208,7 @@ m2_create_fundamental_type (struct objfile *objfile, int typeid)
|
|||
type = init_type (TYPE_CODE_INT,
|
||||
TARGET_INT_BIT / TARGET_CHAR_BIT,
|
||||
0, "<?type?>", objfile);
|
||||
warning ("internal error: no Modula fundamental type %d", typeid);
|
||||
warning (_("internal error: no Modula fundamental type %d"), typeid);
|
||||
break;
|
||||
case FT_VOID:
|
||||
type = init_type (TYPE_CODE_VOID,
|
||||
|
|
|
@ -126,9 +126,9 @@ m32r_load (char *filename, int from_tty)
|
|||
|
||||
abfd = bfd_openr (filename, 0);
|
||||
if (!abfd)
|
||||
error ("Unable to open file %s\n", filename);
|
||||
error (_("Unable to open file %s."), filename);
|
||||
if (bfd_check_format (abfd, bfd_object) == 0)
|
||||
error ("File is not an object file\n");
|
||||
error (_("File is not an object file."));
|
||||
start_time = time (NULL);
|
||||
#if 0
|
||||
for (s = abfd->sections; s; s = s->next)
|
||||
|
@ -415,7 +415,7 @@ m32r_upload_command (char *args, int from_tty)
|
|||
monitor_printf ("ust\r");
|
||||
resp_len = monitor_expect_prompt (buf, sizeof (buf));
|
||||
if (!strchr (buf, ':'))
|
||||
error ("No ethernet connection!");
|
||||
error (_("No ethernet connection!"));
|
||||
|
||||
if (board_addr == 0)
|
||||
{
|
||||
|
|
|
@ -262,10 +262,8 @@ m68hc11_initialize_register_info (void)
|
|||
}
|
||||
|
||||
if (soft_regs[SOFT_FP_REGNUM].name == 0)
|
||||
{
|
||||
warning ("No frame soft register found in the symbol table.\n");
|
||||
warning ("Stack backtrace will not work.\n");
|
||||
}
|
||||
warning (_("No frame soft register found in the symbol table.\n"
|
||||
"Stack backtrace will not work."));
|
||||
soft_reg_initialized = 1;
|
||||
}
|
||||
|
||||
|
@ -1282,7 +1280,7 @@ m68hc11_store_return_value (struct type *type, struct regcache *regcache,
|
|||
regcache_raw_write (regcache, HARD_D_REGNUM, (char*) valbuf + (len - 2));
|
||||
}
|
||||
else
|
||||
error ("return of value > 4 is not supported.");
|
||||
error (_("return of value > 4 is not supported."));
|
||||
}
|
||||
|
||||
|
||||
|
@ -1320,7 +1318,7 @@ m68hc11_extract_return_value (struct type *type, struct regcache *regcache,
|
|||
break;
|
||||
|
||||
default:
|
||||
error ("bad size for return value");
|
||||
error (_("bad size for return value"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -151,8 +151,8 @@ m68k_register_to_value (struct frame_info *frame, int regnum,
|
|||
/* We only support floating-point values. */
|
||||
if (TYPE_CODE (type) != TYPE_CODE_FLT)
|
||||
{
|
||||
warning ("Cannot convert floating-point register value "
|
||||
"to non-floating-point type.");
|
||||
warning (_("Cannot convert floating-point register value "
|
||||
"to non-floating-point type."));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -174,8 +174,8 @@ m68k_value_to_register (struct frame_info *frame, int regnum,
|
|||
/* We only support floating-point values. */
|
||||
if (TYPE_CODE (type) != TYPE_CODE_FLT)
|
||||
{
|
||||
warning ("Cannot convert non-floating-point type "
|
||||
"to floating-point register value.");
|
||||
warning (_("Cannot convert non-floating-point type "
|
||||
"to floating-point register value."));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -571,7 +571,7 @@ fetch_core_registers (char *core_reg_sect, unsigned core_reg_size,
|
|||
{
|
||||
case 0:
|
||||
if (core_reg_size != sizeof (gregset))
|
||||
warning ("Wrong size gregset in core file.");
|
||||
warning (_("Wrong size gregset in core file."));
|
||||
else
|
||||
{
|
||||
memcpy (&gregset, core_reg_sect, sizeof (gregset));
|
||||
|
@ -581,7 +581,7 @@ fetch_core_registers (char *core_reg_sect, unsigned core_reg_size,
|
|||
|
||||
case 2:
|
||||
if (core_reg_size != sizeof (fpregset))
|
||||
warning ("Wrong size fpregset in core file.");
|
||||
warning (_("Wrong size fpregset in core file."));
|
||||
else
|
||||
{
|
||||
memcpy (&fpregset, core_reg_sect, sizeof (fpregset));
|
||||
|
|
|
@ -59,9 +59,9 @@ macro_expand_command (char *exp, int from_tty)
|
|||
at the moment, the `print' commands don't save the last expression
|
||||
evaluated, just its value. */
|
||||
if (! exp || ! *exp)
|
||||
error ("You must follow the `macro expand' command with the"
|
||||
error (_("You must follow the `macro expand' command with the"
|
||||
" expression you\n"
|
||||
"want to expand.");
|
||||
"want to expand."));
|
||||
|
||||
ms = default_macro_scope ();
|
||||
if (ms)
|
||||
|
@ -95,9 +95,9 @@ macro_expand_once_command (char *exp, int from_tty)
|
|||
expression'. That way, you could just hit return over and over and
|
||||
see the expression expanded one level at a time. */
|
||||
if (! exp || ! *exp)
|
||||
error ("You must follow the `macro expand-once' command with"
|
||||
error (_("You must follow the `macro expand-once' command with"
|
||||
" the expression\n"
|
||||
"you want to expand.");
|
||||
"you want to expand."));
|
||||
|
||||
ms = default_macro_scope ();
|
||||
if (ms)
|
||||
|
@ -142,13 +142,13 @@ info_macro_command (char *name, int from_tty)
|
|||
struct macro_definition *d;
|
||||
|
||||
if (! name || ! *name)
|
||||
error ("You must follow the `info macro' command with the name"
|
||||
error (_("You must follow the `info macro' command with the name"
|
||||
" of the macro\n"
|
||||
"whose definition you want to see.");
|
||||
"whose definition you want to see."));
|
||||
|
||||
ms = default_macro_scope ();
|
||||
if (! ms)
|
||||
error ("GDB has no preprocessor macro information for that code.");
|
||||
error (_("GDB has no preprocessor macro information for that code."));
|
||||
|
||||
d = macro_lookup_definition (ms->file, ms->line, name);
|
||||
if (d)
|
||||
|
@ -201,21 +201,21 @@ static struct macro_table *user_macros;
|
|||
static void
|
||||
macro_define_command (char *exp, int from_tty)
|
||||
{
|
||||
error ("Command not implemented yet.");
|
||||
error (_("Command not implemented yet."));
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
macro_undef_command (char *exp, int from_tty)
|
||||
{
|
||||
error ("Command not implemented yet.");
|
||||
error (_("Command not implemented yet."));
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
macro_list_command (char *exp, int from_tty)
|
||||
{
|
||||
error ("Command not implemented yet.");
|
||||
error (_("Command not implemented yet."));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -236,7 +236,7 @@ get_comment (struct macro_buffer *tok, char *p, char *end)
|
|||
return 1;
|
||||
}
|
||||
|
||||
error ("Unterminated comment in macro expansion.");
|
||||
error (_("Unterminated comment in macro expansion."));
|
||||
}
|
||||
else if (p[0] == '/'
|
||||
&& p[1] == '/')
|
||||
|
@ -339,12 +339,12 @@ get_character_constant (struct macro_buffer *tok, char *p, char *end)
|
|||
for (;;)
|
||||
{
|
||||
if (p >= end)
|
||||
error ("Unmatched single quote.");
|
||||
error (_("Unmatched single quote."));
|
||||
else if (*p == '\'')
|
||||
{
|
||||
if (p == body_start)
|
||||
error ("A character constant must contain at least one "
|
||||
"character.");
|
||||
error (_("A character constant must contain at least one "
|
||||
"character."));
|
||||
p++;
|
||||
break;
|
||||
}
|
||||
|
@ -390,15 +390,15 @@ get_string_literal (struct macro_buffer *tok, char *p, char *end)
|
|||
for (;;)
|
||||
{
|
||||
if (p >= end)
|
||||
error ("Unterminated string in expression.");
|
||||
error (_("Unterminated string in expression."));
|
||||
else if (*p == '\"')
|
||||
{
|
||||
p++;
|
||||
break;
|
||||
}
|
||||
else if (*p == '\n')
|
||||
error ("Newline characters may not appear in string "
|
||||
"constants.");
|
||||
error (_("Newline characters may not appear in string "
|
||||
"constants."));
|
||||
else if (*p == '\\')
|
||||
{
|
||||
p++;
|
||||
|
@ -741,7 +741,7 @@ gather_arguments (const char *name, struct macro_buffer *src, int *argc_p)
|
|||
char *start = src->text;
|
||||
|
||||
if (! get_token (&tok, src))
|
||||
error ("Malformed argument list for macro `%s'.", name);
|
||||
error (_("Malformed argument list for macro `%s'."), name);
|
||||
|
||||
/* Is tok an opening paren? */
|
||||
if (tok.len == 1 && tok.text[0] == '(')
|
||||
|
@ -841,13 +841,13 @@ substitute_args (struct macro_buffer *dest,
|
|||
/* Is this token the stringification operator? */
|
||||
if (tok.len == 1
|
||||
&& tok.text[0] == '#')
|
||||
error ("Stringification is not implemented yet.");
|
||||
error (_("Stringification is not implemented yet."));
|
||||
|
||||
/* Is this token the splicing operator? */
|
||||
if (tok.len == 2
|
||||
&& tok.text[0] == '#'
|
||||
&& tok.text[1] == '#')
|
||||
error ("Token splicing is not implemented yet.");
|
||||
error (_("Token splicing is not implemented yet."));
|
||||
|
||||
/* Is this token an identifier? */
|
||||
if (tok.is_identifier)
|
||||
|
@ -857,7 +857,7 @@ substitute_args (struct macro_buffer *dest,
|
|||
/* Is it the magic varargs parameter? */
|
||||
if (tok.len == 11
|
||||
&& ! memcmp (tok.text, "__VA_ARGS__", 11))
|
||||
error ("Variable-arity macros not implemented yet.");
|
||||
error (_("Variable-arity macros not implemented yet."));
|
||||
|
||||
/* Is it one of the parameters? */
|
||||
for (i = 0; i < def->argc; i++)
|
||||
|
@ -934,7 +934,7 @@ expand (const char *id,
|
|||
|
||||
if (def->argc >= 1
|
||||
&& strcmp (def->argv[def->argc - 1], "...") == 0)
|
||||
error ("Varargs macros not implemented yet.");
|
||||
error (_("Varargs macros not implemented yet."));
|
||||
|
||||
make_cleanup (free_current_contents, &argv);
|
||||
argv = gather_arguments (id, src, &argc);
|
||||
|
@ -957,8 +957,8 @@ expand (const char *id,
|
|||
if (! (argc == 1
|
||||
&& argv[0].len == 0
|
||||
&& def->argc == 0))
|
||||
error ("Wrong number of arguments to macro `%s' "
|
||||
"(expected %d, got %d).",
|
||||
error (_("Wrong number of arguments to macro `%s' "
|
||||
"(expected %d, got %d)."),
|
||||
id, def->argc, argc);
|
||||
}
|
||||
|
||||
|
@ -1122,7 +1122,7 @@ macro_expand_once (const char *source,
|
|||
macro_lookup_ftype *lookup_func,
|
||||
void *lookup_func_baton)
|
||||
{
|
||||
error ("Expand-once not implemented yet.");
|
||||
error (_("Expand-once not implemented yet."));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -561,7 +561,7 @@ extern int gdbtk_test (char *);
|
|||
/* Find it. */
|
||||
struct interp *interp = interp_lookup (interpreter_p);
|
||||
if (interp == NULL)
|
||||
error ("Interpreter `%s' unrecognized", interpreter_p);
|
||||
error (_("Interpreter `%s' unrecognized"), interpreter_p);
|
||||
/* Install it. */
|
||||
if (!interp_set (interp))
|
||||
{
|
||||
|
|
|
@ -445,7 +445,7 @@ maintenance_translate_address (char *arg, int from_tty)
|
|||
struct objfile *objfile;
|
||||
|
||||
if (arg == NULL || *arg == 0)
|
||||
error ("requires argument (address or section + address)");
|
||||
error (_("requires argument (address or section + address)"));
|
||||
|
||||
sect = NULL;
|
||||
p = arg;
|
||||
|
@ -455,7 +455,7 @@ maintenance_translate_address (char *arg, int from_tty)
|
|||
while (*p && !isspace (*p)) /* Find end of section name */
|
||||
p++;
|
||||
if (*p == '\000') /* End of command? */
|
||||
error ("Need to specify <section-name> and <address>");
|
||||
error (_("Need to specify <section-name> and <address>"));
|
||||
*p++ = '\000';
|
||||
while (isspace (*p))
|
||||
p++; /* Skip whitespace */
|
||||
|
@ -468,7 +468,7 @@ maintenance_translate_address (char *arg, int from_tty)
|
|||
}
|
||||
|
||||
if (!sect)
|
||||
error ("Unknown section %s.", arg);
|
||||
error (_("Unknown section %s."), arg);
|
||||
}
|
||||
|
||||
address = parse_and_eval_address (p);
|
||||
|
@ -685,7 +685,7 @@ maintenance_set_profile_cmd (char *args, int from_tty, struct cmd_list_element *
|
|||
static void
|
||||
maintenance_set_profile_cmd (char *args, int from_tty, struct cmd_list_element *c)
|
||||
{
|
||||
error ("Profiling support is not available on this system.");
|
||||
error (_("Profiling support is not available on this system."));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -4689,7 +4689,7 @@ elfmdebug_build_psymtabs (struct objfile *objfile,
|
|||
sizeof (struct ecoff_debug_info)));
|
||||
|
||||
if (!(*swap->read_debug_info) (abfd, sec, info))
|
||||
error ("Error reading ECOFF debugging information: %s",
|
||||
error (_("Error reading ECOFF debugging information: %s"),
|
||||
bfd_errmsg (bfd_get_error ()));
|
||||
|
||||
mdebug_build_psymtabs (objfile, swap, info);
|
||||
|
|
|
@ -51,7 +51,7 @@ default_memory_insert_breakpoint (CORE_ADDR addr, char *contents_cache)
|
|||
/* Determine appropriate breakpoint contents and size for this address. */
|
||||
bp = BREAKPOINT_FROM_PC (&addr, &bplen);
|
||||
if (bp == NULL)
|
||||
error ("Software breakpoints not implemented for this target.");
|
||||
error (_("Software breakpoints not implemented for this target."));
|
||||
|
||||
/* Save the memory contents. */
|
||||
val = target_read_memory (addr, contents_cache, bplen);
|
||||
|
@ -73,7 +73,7 @@ default_memory_remove_breakpoint (CORE_ADDR addr, char *contents_cache)
|
|||
/* Determine appropriate breakpoint contents and size for this address. */
|
||||
bp = BREAKPOINT_FROM_PC (&addr, &bplen);
|
||||
if (bp == NULL)
|
||||
error ("Software breakpoints not implemented for this target.");
|
||||
error (_("Software breakpoints not implemented for this target."));
|
||||
|
||||
return target_write_memory (addr, contents_cache, bplen);
|
||||
}
|
||||
|
|
|
@ -144,12 +144,12 @@ mem_command (char *args, int from_tty)
|
|||
|
||||
tok = strtok (args, " \t");
|
||||
if (!tok)
|
||||
error ("no lo address");
|
||||
error (_("no lo address"));
|
||||
lo = parse_and_eval_address (tok);
|
||||
|
||||
tok = strtok (NULL, " \t");
|
||||
if (!tok)
|
||||
error ("no hi address");
|
||||
error (_("no hi address"));
|
||||
hi = parse_and_eval_address (tok);
|
||||
|
||||
attrib = default_mem_attrib;
|
||||
|
@ -167,19 +167,19 @@ mem_command (char *args, int from_tty)
|
|||
else if (strcmp (tok, "16") == 0)
|
||||
{
|
||||
if ((lo % 2 != 0) || (hi % 2 != 0))
|
||||
error ("region bounds not 16 bit aligned");
|
||||
error (_("region bounds not 16 bit aligned"));
|
||||
attrib.width = MEM_WIDTH_16;
|
||||
}
|
||||
else if (strcmp (tok, "32") == 0)
|
||||
{
|
||||
if ((lo % 4 != 0) || (hi % 4 != 0))
|
||||
error ("region bounds not 32 bit aligned");
|
||||
error (_("region bounds not 32 bit aligned"));
|
||||
attrib.width = MEM_WIDTH_32;
|
||||
}
|
||||
else if (strcmp (tok, "64") == 0)
|
||||
{
|
||||
if ((lo % 8 != 0) || (hi % 8 != 0))
|
||||
error ("region bounds not 64 bit aligned");
|
||||
error (_("region bounds not 64 bit aligned"));
|
||||
attrib.width = MEM_WIDTH_64;
|
||||
}
|
||||
|
||||
|
@ -203,7 +203,7 @@ mem_command (char *args, int from_tty)
|
|||
#endif
|
||||
|
||||
else
|
||||
error ("unknown attribute: %s", tok);
|
||||
error (_("unknown attribute: %s"), tok);
|
||||
}
|
||||
|
||||
create_mem_region (lo, hi, &attrib);
|
||||
|
@ -371,7 +371,7 @@ mem_enable_command (char *args, int from_tty)
|
|||
while (*p1 >= '0' && *p1 <= '9')
|
||||
p1++;
|
||||
if (*p1 && *p1 != ' ' && *p1 != '\t')
|
||||
error ("Arguments must be memory region numbers.");
|
||||
error (_("Arguments must be memory region numbers."));
|
||||
|
||||
num = atoi (p);
|
||||
mem_enable (num);
|
||||
|
@ -421,7 +421,7 @@ mem_disable_command (char *args, int from_tty)
|
|||
while (*p1 >= '0' && *p1 <= '9')
|
||||
p1++;
|
||||
if (*p1 && *p1 != ' ' && *p1 != '\t')
|
||||
error ("Arguments must be memory region numbers.");
|
||||
error (_("Arguments must be memory region numbers."));
|
||||
|
||||
num = atoi (p);
|
||||
mem_disable (num);
|
||||
|
@ -501,7 +501,7 @@ mem_delete_command (char *args, int from_tty)
|
|||
while (*p1 >= '0' && *p1 <= '9')
|
||||
p1++;
|
||||
if (*p1 && *p1 != ' ' && *p1 != '\t')
|
||||
error ("Arguments must be memory region numbers.");
|
||||
error (_("Arguments must be memory region numbers."));
|
||||
|
||||
num = atoi (p);
|
||||
mem_delete (num);
|
||||
|
|
|
@ -128,9 +128,9 @@ mi_cmd_break_insert (char *command, char **argv, int argc)
|
|||
}
|
||||
|
||||
if (optind >= argc)
|
||||
error ("mi_cmd_break_insert: Missing <location>");
|
||||
error (_("mi_cmd_break_insert: Missing <location>"));
|
||||
if (optind < argc - 1)
|
||||
error ("mi_cmd_break_insert: Garbage following <location>");
|
||||
error (_("mi_cmd_break_insert: Garbage following <location>"));
|
||||
address = argv[optind];
|
||||
|
||||
/* Now we have what we need, let's insert the breakpoint! */
|
||||
|
@ -152,7 +152,7 @@ mi_cmd_break_insert (char *command, char **argv, int argc)
|
|||
#if 0
|
||||
case REGEXP_BP:
|
||||
if (temp_p)
|
||||
error ("mi_cmd_break_insert: Unsupported tempoary regexp breakpoint");
|
||||
error (_("mi_cmd_break_insert: Unsupported tempoary regexp breakpoint"));
|
||||
else
|
||||
rbreak_command_wrapper (address, FROM_TTY);
|
||||
return MI_CMD_DONE;
|
||||
|
@ -218,9 +218,9 @@ mi_cmd_break_watch (char *command, char **argv, int argc)
|
|||
}
|
||||
}
|
||||
if (optind >= argc)
|
||||
error ("mi_cmd_break_watch: Missing <expression>");
|
||||
error (_("mi_cmd_break_watch: Missing <expression>"));
|
||||
if (optind < argc - 1)
|
||||
error ("mi_cmd_break_watch: Garbage following <expression>");
|
||||
error (_("mi_cmd_break_watch: Garbage following <expression>"));
|
||||
expr = argv[optind];
|
||||
|
||||
/* Now we have what we need, let's insert the watchpoint! */
|
||||
|
@ -236,7 +236,7 @@ mi_cmd_break_watch (char *command, char **argv, int argc)
|
|||
awatch_command_wrapper (expr, FROM_TTY);
|
||||
break;
|
||||
default:
|
||||
error ("mi_cmd_break_watch: Unknown watchpoint type.");
|
||||
error (_("mi_cmd_break_watch: Unknown watchpoint type."));
|
||||
}
|
||||
return MI_CMD_DONE;
|
||||
}
|
||||
|
|
|
@ -137,7 +137,7 @@ mi_cmd_disassemble (char *command, char **argv, int argc)
|
|||
|
||||
mixed_source_and_assembly = atoi (argv[0]);
|
||||
if ((mixed_source_and_assembly != 0) && (mixed_source_and_assembly != 1))
|
||||
error ("mi_cmd_disassemble: Mixed_mode argument must be 0 or 1.");
|
||||
error (_("mi_cmd_disassemble: Mixed_mode argument must be 0 or 1."));
|
||||
|
||||
|
||||
/* We must get the function beginning and end where line_num is
|
||||
|
@ -147,11 +147,11 @@ mi_cmd_disassemble (char *command, char **argv, int argc)
|
|||
{
|
||||
s = lookup_symtab (file_string);
|
||||
if (s == NULL)
|
||||
error ("mi_cmd_disassemble: Invalid filename.");
|
||||
error (_("mi_cmd_disassemble: Invalid filename."));
|
||||
if (!find_line_pc (s, line_num, &start))
|
||||
error ("mi_cmd_disassemble: Invalid line number");
|
||||
error (_("mi_cmd_disassemble: Invalid line number"));
|
||||
if (find_pc_partial_function (start, NULL, &low, &high) == 0)
|
||||
error ("mi_cmd_disassemble: No function contains specified address");
|
||||
error (_("mi_cmd_disassemble: No function contains specified address"));
|
||||
}
|
||||
|
||||
gdb_disassembly (uiout,
|
||||
|
|
|
@ -70,7 +70,7 @@ enum mi_cmd_result
|
|||
mi_cmd_env_pwd (char *command, char **argv, int argc)
|
||||
{
|
||||
if (argc > 0)
|
||||
error ("mi_cmd_env_pwd: No arguments required");
|
||||
error (_("mi_cmd_env_pwd: No arguments required"));
|
||||
|
||||
if (mi_version (uiout) < 2)
|
||||
{
|
||||
|
@ -91,7 +91,7 @@ enum mi_cmd_result
|
|||
mi_cmd_env_cd (char *command, char **argv, int argc)
|
||||
{
|
||||
if (argc == 0 || argc > 1)
|
||||
error ("mi_cmd_env_cd: Usage DIRECTORY");
|
||||
error (_("mi_cmd_env_cd: Usage DIRECTORY"));
|
||||
|
||||
env_execute_cli_command ("cd", argv[0]);
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue