2005-02-11 Andrew Cagney <cagney@gnu.org>
Mark up error_no_arg, query, perror_with_name, complaint, and internal_error. * breakpoint.c, cp-abi.c, cp-namespace.c, cp-support.c: Update. * cris-tdep.c, dbxread.c, dictionary.c, dsrec.c: Update. * dummy-frame.c, dve3900-rom.c, dwarf2-frame.c, dwarf2expr.c: Update. * dwarf2read.c, dwarfread.c, elfread.c, event-loop.c: Update. * exceptions.c, exec.c, f-lang.c, findvar.c, fork-child.c: Update. * frame-unwind.c, frame.c, frv-linux-tdep.c, frv-tdep.c: Update. * gdb_assert.h, gdbarch.c, gdbtypes.c, gnu-nat.c: Update. * go32-nat.c, hppa-tdep.c, hppabsd-nat.c, hpread.c: Update. * i386-linux-nat.c, i386-nat.c, i386-tdep.c, i386bsd-nat.c: Update. * i386fbsd-nat.c, inf-ptrace.c, inf-ttrace.c, infcall.c: Update. * infcmd.c, inflow.c, infptrace.c, infrun.c, inftarg.c: Update. * interps.c, language.c, linespec.c, linux-nat.c: Update. * m32r-linux-nat.c, m68k-tdep.c, m68kbsd-nat.c: Update. * m68klinux-nat.c, m88kbsd-nat.c, macroexp.c, macroscope.c: Update. * macrotab.c, maint.c, mdebugread.c, memattr.c: Update. * mips-linux-tdep.c, mips-tdep.c, mips64obsd-nat.c: Update. * mipsnbsd-nat.c, mn10300-tdep.c, monitor.c, nto-procfs.c: Update. * objc-lang.c, objfiles.c, objfiles.h, ocd.c, osabi.c: Update. * parse.c, ppc-bdm.c, ppc-linux-nat.c, ppc-sysv-tdep.c: Update. * ppcnbsd-nat.c, ppcobsd-nat.c, printcmd.c, procfs.c: Update. * regcache.c, reggroups.c, remote-e7000.c, remote-mips.c: Update. * remote-rdp.c, remote-sds.c, remote-sim.c, remote-st.c: Update. * remote-utils.c, remote.c, rs6000-nat.c, rs6000-tdep.c: Update. * s390-nat.c, s390-tdep.c, sentinel-frame.c, serial.c: Update. * sh-tdep.c, sh3-rom.c, sh64-tdep.c, shnbsd-nat.c: Update. * solib-aix5.c, solib-svr4.c, solib.c, source.c: Update. * sparc-nat.c, stabsread.c, stack.c, symfile.c, symtab.c: Update. * symtab.h, target.c, tracepoint.c, ui-file.c, ui-out.c: Update. * utils.c, valops.c, valprint.c, vax-nat.c, vaxbsd-nat.c: Update. * win32-nat.c, xcoffread.c, xstormy16-tdep.c: Update. * cli/cli-cmds.c, cli/cli-logging.c, cli/cli-script.c: Update. * cli/cli-setshow.c, mi/mi-cmd-break.c, mi/mi-cmds.c: Update. * mi/mi-console.c, mi/mi-getopt.c, mi/mi-out.c: Update. * tui/tui-file.c, tui/tui-interp.c: Update.
This commit is contained in:
parent
e91cdea724
commit
e2e0b3e57f
@ -1,5 +1,44 @@
|
||||
2005-02-10 Andrew Cagney <cagney@gnu.org>
|
||||
2005-02-11 Andrew Cagney <cagney@gnu.org>
|
||||
|
||||
Mark up error_no_arg, query, perror_with_name, complaint, and
|
||||
internal_error.
|
||||
* breakpoint.c, cp-abi.c, cp-namespace.c, cp-support.c: Update.
|
||||
* cris-tdep.c, dbxread.c, dictionary.c, dsrec.c: Update.
|
||||
* dummy-frame.c, dve3900-rom.c, dwarf2-frame.c, dwarf2expr.c: Update.
|
||||
* dwarf2read.c, dwarfread.c, elfread.c, event-loop.c: Update.
|
||||
* exceptions.c, exec.c, f-lang.c, findvar.c, fork-child.c: Update.
|
||||
* frame-unwind.c, frame.c, frv-linux-tdep.c, frv-tdep.c: Update.
|
||||
* gdb_assert.h, gdbarch.c, gdbtypes.c, gnu-nat.c: Update.
|
||||
* go32-nat.c, hppa-tdep.c, hppabsd-nat.c, hpread.c: Update.
|
||||
* i386-linux-nat.c, i386-nat.c, i386-tdep.c, i386bsd-nat.c: Update.
|
||||
* i386fbsd-nat.c, inf-ptrace.c, inf-ttrace.c, infcall.c: Update.
|
||||
* infcmd.c, inflow.c, infptrace.c, infrun.c, inftarg.c: Update.
|
||||
* interps.c, language.c, linespec.c, linux-nat.c: Update.
|
||||
* m32r-linux-nat.c, m68k-tdep.c, m68kbsd-nat.c: Update.
|
||||
* m68klinux-nat.c, m88kbsd-nat.c, macroexp.c, macroscope.c: Update.
|
||||
* macrotab.c, maint.c, mdebugread.c, memattr.c: Update.
|
||||
* mips-linux-tdep.c, mips-tdep.c, mips64obsd-nat.c: Update.
|
||||
* mipsnbsd-nat.c, mn10300-tdep.c, monitor.c, nto-procfs.c: Update.
|
||||
* objc-lang.c, objfiles.c, objfiles.h, ocd.c, osabi.c: Update.
|
||||
* parse.c, ppc-bdm.c, ppc-linux-nat.c, ppc-sysv-tdep.c: Update.
|
||||
* ppcnbsd-nat.c, ppcobsd-nat.c, printcmd.c, procfs.c: Update.
|
||||
* regcache.c, reggroups.c, remote-e7000.c, remote-mips.c: Update.
|
||||
* remote-rdp.c, remote-sds.c, remote-sim.c, remote-st.c: Update.
|
||||
* remote-utils.c, remote.c, rs6000-nat.c, rs6000-tdep.c: Update.
|
||||
* s390-nat.c, s390-tdep.c, sentinel-frame.c, serial.c: Update.
|
||||
* sh-tdep.c, sh3-rom.c, sh64-tdep.c, shnbsd-nat.c: Update.
|
||||
* solib-aix5.c, solib-svr4.c, solib.c, source.c: Update.
|
||||
* sparc-nat.c, stabsread.c, stack.c, symfile.c, symtab.c: Update.
|
||||
* symtab.h, target.c, tracepoint.c, ui-file.c, ui-out.c: Update.
|
||||
* utils.c, valops.c, valprint.c, vax-nat.c, vaxbsd-nat.c: Update.
|
||||
* win32-nat.c, xcoffread.c, xstormy16-tdep.c: Update.
|
||||
* cli/cli-cmds.c, cli/cli-logging.c, cli/cli-script.c: Update.
|
||||
* cli/cli-setshow.c, mi/mi-cmd-break.c, mi/mi-cmds.c: Update.
|
||||
* mi/mi-console.c, mi/mi-getopt.c, mi/mi-out.c: Update.
|
||||
* tui/tui-file.c, tui/tui-interp.c: Update.
|
||||
|
||||
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.
|
||||
|
@ -525,7 +525,7 @@ condition_command (char *arg, int from_tty)
|
||||
int bnum;
|
||||
|
||||
if (arg == 0)
|
||||
error_no_arg ("breakpoint number");
|
||||
error_no_arg (_("breakpoint number"));
|
||||
|
||||
p = arg;
|
||||
bnum = get_number (&p);
|
||||
@ -727,7 +727,7 @@ insert_catchpoint (struct ui_out *uo, void *args)
|
||||
target_insert_exec_catchpoint (PIDGET (inferior_ptid));
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "unknown breakpoint type");
|
||||
internal_error (__FILE__, __LINE__, _("unknown breakpoint type"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -995,7 +995,7 @@ insert_bp_location (struct bp_location *bpt,
|
||||
}
|
||||
else
|
||||
{
|
||||
printf_filtered ("Hardware watchpoint %d deleted ", bpt->owner->number);
|
||||
printf_filtered (_("Hardware watchpoint %d deleted "), bpt->owner->number);
|
||||
printf_filtered ("because the program has left the block \n");
|
||||
printf_filtered ("in which its expression is valid.\n");
|
||||
if (bpt->owner->related_breakpoint)
|
||||
@ -2353,7 +2353,7 @@ print_bp_stop_message (bpstat bs)
|
||||
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"print_bp_stop_message: unrecognized enum value");
|
||||
_("print_bp_stop_message: unrecognized enum value"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -3313,7 +3313,7 @@ print_one_breakpoint (struct breakpoint *b,
|
||||
if (((int) b->type > (sizeof (bptypes) / sizeof (bptypes[0])))
|
||||
|| ((int) b->type != bptypes[(int) b->type].type))
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"bptypes table does not describe type #%d.",
|
||||
_("bptypes table does not describe type #%d."),
|
||||
(int) b->type);
|
||||
ui_out_field_string (uiout, "type", bptypes[(int) b->type].description);
|
||||
|
||||
@ -3343,7 +3343,7 @@ print_one_breakpoint (struct breakpoint *b,
|
||||
{
|
||||
case bp_none:
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"print_one_breakpoint: bp_none encountered\n");
|
||||
_("print_one_breakpoint: bp_none encountered\n"));
|
||||
break;
|
||||
|
||||
case bp_watchpoint:
|
||||
@ -3873,8 +3873,8 @@ check_duplicates (struct breakpoint *bpt)
|
||||
/* Permanent breakpoint should always be inserted. */
|
||||
if (! perm_bp->inserted)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"allegedly permanent breakpoint is not "
|
||||
"actually inserted");
|
||||
_("allegedly permanent breakpoint is not "
|
||||
"actually inserted"));
|
||||
|
||||
ALL_BP_LOCATIONS (b)
|
||||
if (b != perm_bp)
|
||||
@ -3889,8 +3889,8 @@ check_duplicates (struct breakpoint *bpt)
|
||||
{
|
||||
if (b->inserted)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"another breakpoint was inserted on top of "
|
||||
"a permanent breakpoint");
|
||||
_("another breakpoint was inserted on top of "
|
||||
"a permanent breakpoint"));
|
||||
|
||||
b->duplicate = 1;
|
||||
}
|
||||
@ -4005,7 +4005,7 @@ allocate_bp_location (struct breakpoint *bpt, enum bptype bp_type)
|
||||
loc->loc_type = bp_loc_other;
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "unknown breakpoint type");
|
||||
internal_error (__FILE__, __LINE__, _("unknown breakpoint type"));
|
||||
}
|
||||
|
||||
/* Add this breakpoint to the end of the chain. */
|
||||
@ -6793,8 +6793,8 @@ delete_breakpoint (struct breakpoint *bpt)
|
||||
always be the only one inserted. */
|
||||
if (b->enable_state == bp_permanent)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"another breakpoint was inserted on top of "
|
||||
"a permanent breakpoint");
|
||||
_("another breakpoint was inserted on top of "
|
||||
"a permanent breakpoint"));
|
||||
|
||||
if (b->type == bp_hardware_breakpoint)
|
||||
val = target_insert_hw_breakpoint (b->loc->address, b->loc->shadow_contents);
|
||||
@ -6917,7 +6917,7 @@ delete_command (char *arg, int from_tty)
|
||||
|
||||
/* Ask user only if there are some breakpoints to delete. */
|
||||
if (!from_tty
|
||||
|| (breaks_to_delete && query ("Delete all breakpoints? ")))
|
||||
|| (breaks_to_delete && query (_("Delete all breakpoints? "))))
|
||||
{
|
||||
ALL_BREAKPOINTS_SAFE (b, temp)
|
||||
{
|
||||
@ -7279,7 +7279,7 @@ ignore_command (char *args, int from_tty)
|
||||
int num;
|
||||
|
||||
if (p == 0)
|
||||
error_no_arg ("a breakpoint number");
|
||||
error_no_arg (_("a breakpoint number"));
|
||||
|
||||
num = get_number (&p);
|
||||
if (num == 0)
|
||||
@ -7307,7 +7307,7 @@ map_breakpoint_numbers (char *args, void (*function) (struct breakpoint *))
|
||||
int match;
|
||||
|
||||
if (p == 0)
|
||||
error_no_arg ("one or more breakpoint numbers");
|
||||
error_no_arg (_("one or more breakpoint numbers"));
|
||||
|
||||
while (*p)
|
||||
{
|
||||
|
@ -336,7 +336,7 @@ cd_command (char *dir, int from_tty)
|
||||
dont_repeat ();
|
||||
|
||||
if (dir == 0)
|
||||
error_no_arg ("new working directory");
|
||||
error_no_arg (_("new working directory"));
|
||||
|
||||
dir = tilde_expand (dir);
|
||||
make_cleanup (xfree, dir);
|
||||
|
@ -74,14 +74,14 @@ handle_redirections (int from_tty)
|
||||
|
||||
output = gdb_fopen (logging_filename, logging_overwrite ? "w" : "a");
|
||||
if (output == NULL)
|
||||
perror_with_name ("set logging");
|
||||
perror_with_name (_("set logging"));
|
||||
|
||||
/* Redirects everything to gdb_stdout while this is running. */
|
||||
if (!logging_redirect)
|
||||
{
|
||||
output = tee_file_new (gdb_stdout, 0, output, 1);
|
||||
if (output == NULL)
|
||||
perror_with_name ("set logging");
|
||||
perror_with_name (_("set logging"));
|
||||
if (from_tty)
|
||||
fprintf_unfiltered (gdb_stdout, "Copying output to %s.\n",
|
||||
logging_filename);
|
||||
|
@ -476,7 +476,7 @@ arg_cleanup (void *ignore)
|
||||
struct user_args *oargs = user_args;
|
||||
if (!user_args)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"arg_cleanup called with no user args.\n");
|
||||
_("arg_cleanup called with no user args.\n"));
|
||||
|
||||
user_args = user_args->next;
|
||||
xfree (oargs);
|
||||
@ -1046,7 +1046,7 @@ validate_comname (char *comname)
|
||||
char *p;
|
||||
|
||||
if (comname == 0)
|
||||
error_no_arg ("name of command to define");
|
||||
error_no_arg (_("name of command to define"));
|
||||
|
||||
p = comname;
|
||||
while (*p)
|
||||
@ -1097,9 +1097,9 @@ define_command (char *comname, int from_tty)
|
||||
{
|
||||
int q;
|
||||
if (c->class == class_user || c->class == class_alias)
|
||||
q = query ("Redefine command \"%s\"? ", c->name);
|
||||
q = query (_("Redefine command \"%s\"? "), c->name);
|
||||
else
|
||||
q = query ("Really redefine built-in command \"%s\"? ", c->name);
|
||||
q = query (_("Really redefine built-in command \"%s\"? "), c->name);
|
||||
if (!q)
|
||||
error (_("Command \"%s\" not redefined."), c->name);
|
||||
}
|
||||
@ -1170,7 +1170,7 @@ define_command (char *comname, int from_tty)
|
||||
break;
|
||||
default:
|
||||
/* Should never come here as hookc would be 0. */
|
||||
internal_error (__FILE__, __LINE__, "bad switch");
|
||||
internal_error (__FILE__, __LINE__, _("bad switch"));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1260,9 +1260,7 @@ script_from_file (FILE *stream, char *file)
|
||||
int needed_length;
|
||||
|
||||
if (stream == NULL)
|
||||
{
|
||||
internal_error (__FILE__, __LINE__, "called with NULL file pointer!");
|
||||
}
|
||||
internal_error (__FILE__, __LINE__, _("called with NULL file pointer!"));
|
||||
|
||||
old_cleanups = make_cleanup (do_fclose_cleanup, stream);
|
||||
|
||||
@ -1291,7 +1289,7 @@ script_from_file (FILE *stream, char *file)
|
||||
throw_error (e.error, "%s:%d: Error in sourced command file:\n%s",
|
||||
source_file_name, source_line_number, e.message);
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "bad reason");
|
||||
internal_error (__FILE__, __LINE__, _("bad reason"));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -156,7 +156,7 @@ do_setshow_command (char *arg, int from_tty, struct cmd_list_element *c)
|
||||
break;
|
||||
case var_filename:
|
||||
if (arg == NULL)
|
||||
error_no_arg ("filename to set it to.");
|
||||
error_no_arg (_("filename to set it to."));
|
||||
if (*(char **) c->var != NULL)
|
||||
xfree (*(char **) c->var);
|
||||
*(char **) c->var = tilde_expand (arg);
|
||||
@ -169,7 +169,7 @@ do_setshow_command (char *arg, int from_tty, struct cmd_list_element *c)
|
||||
break;
|
||||
case var_uinteger:
|
||||
if (arg == NULL)
|
||||
error_no_arg ("integer to set it to.");
|
||||
error_no_arg (_("integer to set it to."));
|
||||
*(unsigned int *) c->var = parse_and_eval_long (arg);
|
||||
if (*(unsigned int *) c->var == 0)
|
||||
*(unsigned int *) c->var = UINT_MAX;
|
||||
@ -178,7 +178,7 @@ do_setshow_command (char *arg, int from_tty, struct cmd_list_element *c)
|
||||
{
|
||||
unsigned int val;
|
||||
if (arg == NULL)
|
||||
error_no_arg ("integer to set it to.");
|
||||
error_no_arg (_("integer to set it to."));
|
||||
val = parse_and_eval_long (arg);
|
||||
if (val == 0)
|
||||
*(int *) c->var = INT_MAX;
|
||||
@ -190,7 +190,7 @@ do_setshow_command (char *arg, int from_tty, struct cmd_list_element *c)
|
||||
}
|
||||
case var_zinteger:
|
||||
if (arg == NULL)
|
||||
error_no_arg ("integer to set it to.");
|
||||
error_no_arg (_("integer to set it to."));
|
||||
*(int *) c->var = parse_and_eval_long (arg);
|
||||
break;
|
||||
case var_enum:
|
||||
@ -302,7 +302,7 @@ do_setshow_command (char *arg, int from_tty, struct cmd_list_element *c)
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"do_setshow_command: invalid var_auto_boolean");
|
||||
_("do_setshow_command: invalid var_auto_boolean"));
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
@ -117,7 +117,7 @@ register_cp_abi (struct cp_abi_ops *abi)
|
||||
{
|
||||
if (num_cp_abis == CP_ABI_MAX)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"Too many C++ ABIs, please increase CP_ABI_MAX in cp-abi.c");
|
||||
_("Too many C++ ABIs, please increase CP_ABI_MAX in cp-abi.c"));
|
||||
|
||||
cp_abis[num_cp_abis++] = abi;
|
||||
|
||||
@ -134,7 +134,7 @@ set_cp_abi_as_auto_default (const char *short_name)
|
||||
|
||||
if (abi == NULL)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"Cannot find C++ ABI \"%s\" to set it as auto default.",
|
||||
_("Cannot find C++ ABI \"%s\" to set it as auto default."),
|
||||
short_name);
|
||||
|
||||
if (auto_cp_abi.longname != NULL)
|
||||
|
@ -552,7 +552,7 @@ cp_lookup_nested_type (struct type *parent_type,
|
||||
}
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"cp_lookup_nested_type called on a non-aggregate type.");
|
||||
_("cp_lookup_nested_type called on a non-aggregate type."));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -456,7 +456,7 @@ remove_params (const char *demangled_name)
|
||||
}
|
||||
if (depth != 0)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"bad demangled name %s\n", demangled_name);
|
||||
_("bad demangled name %s\n"), demangled_name);
|
||||
while (argp[-1] == ' ' && argp > demangled_name)
|
||||
argp --;
|
||||
|
||||
|
@ -934,7 +934,7 @@ cris_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
|
||||
else if (len > (2 * 4))
|
||||
{
|
||||
/* FIXME */
|
||||
internal_error (__FILE__, __LINE__, "We don't do this");
|
||||
internal_error (__FILE__, __LINE__, _("We don't do this"));
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -3962,7 +3962,7 @@ set_cris_version (char *ignore_args, int from_tty,
|
||||
gdbarch_info_init (&info);
|
||||
if (!gdbarch_update_p (info))
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"cris_gdbarch_update: failed to update architecture.");
|
||||
_("cris_gdbarch_update: failed to update architecture."));
|
||||
}
|
||||
|
||||
static void
|
||||
@ -3975,7 +3975,7 @@ set_cris_dwarf2_cfi (char *ignore_args, int from_tty,
|
||||
gdbarch_info_init (&info);
|
||||
if (!gdbarch_update_p (info))
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"cris_gdbarch_update: failed to update architecture.");
|
||||
_("cris_gdbarch_update: failed to update architecture."));
|
||||
}
|
||||
|
||||
static struct gdbarch *
|
||||
@ -4031,11 +4031,11 @@ cris_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
||||
break;
|
||||
|
||||
case BFD_ENDIAN_BIG:
|
||||
internal_error (__FILE__, __LINE__, "cris_gdbarch_init: big endian byte order in info");
|
||||
internal_error (__FILE__, __LINE__, _("cris_gdbarch_init: big endian byte order in info"));
|
||||
break;
|
||||
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "cris_gdbarch_init: unknown byte order in info");
|
||||
internal_error (__FILE__, __LINE__, _("cris_gdbarch_init: unknown byte order in info"));
|
||||
}
|
||||
|
||||
set_gdbarch_return_value (gdbarch, cris_return_value);
|
||||
@ -4068,7 +4068,7 @@ cris_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
||||
case 9:
|
||||
/* Old versions; not supported. */
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"cris_gdbarch_init: unsupported CRIS version");
|
||||
_("cris_gdbarch_init: unsupported CRIS version"));
|
||||
break;
|
||||
|
||||
case 10:
|
||||
@ -4110,7 +4110,7 @@ cris_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
||||
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"cris_gdbarch_init: unknown CRIS version");
|
||||
_("cris_gdbarch_init: unknown CRIS version"));
|
||||
}
|
||||
|
||||
/* Dummy frame functions (shared between CRISv10 and CRISv32 since they
|
||||
|
@ -163,21 +163,21 @@ static int has_line_numbers;
|
||||
static void
|
||||
unknown_symtype_complaint (const char *arg1)
|
||||
{
|
||||
complaint (&symfile_complaints, "unknown symbol type %s", arg1);
|
||||
complaint (&symfile_complaints, _("unknown symbol type %s"), arg1);
|
||||
}
|
||||
|
||||
static void
|
||||
lbrac_mismatch_complaint (int arg1)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"N_LBRAC/N_RBRAC symbol mismatch at symtab pos %d", arg1);
|
||||
_("N_LBRAC/N_RBRAC symbol mismatch at symtab pos %d"), arg1);
|
||||
}
|
||||
|
||||
static void
|
||||
repeated_header_complaint (const char *arg1, int arg2)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"\"repeated\" header file %s not previously seen, at symtab pos %d",
|
||||
_("\"repeated\" header file %s not previously seen, at symtab pos %d"),
|
||||
arg1, arg2);
|
||||
}
|
||||
|
||||
@ -966,7 +966,7 @@ set_namestring (struct objfile *objfile, struct internal_nlist nlist)
|
||||
if (((unsigned) nlist.n_strx + file_string_table_offset) >=
|
||||
DBX_STRINGTAB_SIZE (objfile))
|
||||
{
|
||||
complaint (&symfile_complaints, "bad string table offset in symbol %d",
|
||||
complaint (&symfile_complaints, _("bad string table offset in symbol %d"),
|
||||
symnum);
|
||||
namestring = "<bad string table offset>";
|
||||
}
|
||||
@ -1168,7 +1168,7 @@ static void
|
||||
function_outside_compilation_unit_complaint (const char *arg1)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"function `%s' appears to be defined outside of all compilation units",
|
||||
_("function `%s' appears to be defined outside of all compilation units"),
|
||||
arg1);
|
||||
}
|
||||
|
||||
@ -1564,7 +1564,7 @@ read_dbx_symtab (struct objfile *objfile)
|
||||
/* FIXME: we should not get here without a PST to work on.
|
||||
Attempt to recover. */
|
||||
complaint (&symfile_complaints,
|
||||
"N_BINCL %s not in entries for any file, at symtab pos %d",
|
||||
_("N_BINCL %s not in entries for any file, at symtab pos %d"),
|
||||
namestring, symnum);
|
||||
continue;
|
||||
}
|
||||
@ -1982,7 +1982,7 @@ read_dbx_symtab (struct objfile *objfile)
|
||||
time searching to the end of every string looking for
|
||||
a backslash. */
|
||||
|
||||
complaint (&symfile_complaints, "unknown symbol descriptor `%c'",
|
||||
complaint (&symfile_complaints, _("unknown symbol descriptor `%c'"),
|
||||
p[1]);
|
||||
|
||||
/* Ignore it; perhaps it is an extension that we don't
|
||||
@ -2811,9 +2811,9 @@ process_one_symbol (int type, int desc, CORE_ADDR valu, char *name,
|
||||
symbols within an LBRAC/RBRAC block; this complaint
|
||||
might also help sort out problems in which
|
||||
VARIABLES_INSIDE_BLOCK is incorrectly defined. */
|
||||
complaint (&symfile_complaints, "\
|
||||
complaint (&symfile_complaints, _("\
|
||||
misplaced N_LBRAC entry; discarding local symbols which have \
|
||||
no enclosing block");
|
||||
no enclosing block"));
|
||||
}
|
||||
local_symbols = new->locals;
|
||||
}
|
||||
@ -2835,7 +2835,7 @@ no enclosing block");
|
||||
if (new->start_addr > valu)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"block start larger than block end");
|
||||
_("block start larger than block end"));
|
||||
new->start_addr = valu;
|
||||
}
|
||||
/* Make a block for the local symbols within. */
|
||||
@ -3025,7 +3025,7 @@ no enclosing block");
|
||||
goto case_N_ROSYM;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"failed internal consistency check");
|
||||
_("failed internal consistency check"));
|
||||
}
|
||||
}
|
||||
|
||||
@ -3130,7 +3130,7 @@ no enclosing block");
|
||||
if (context_stack_depth > 1)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"unmatched N_LBRAC before symtab pos %d", symnum);
|
||||
_("unmatched N_LBRAC before symtab pos %d"), symnum);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -563,7 +563,7 @@ static void
|
||||
add_symbol_nonexpandable (struct dictionary *dict, struct symbol *sym)
|
||||
{
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"dict_add_symbol: non-expandable dictionary");
|
||||
_("dict_add_symbol: non-expandable dictionary"));
|
||||
}
|
||||
|
||||
/* Functions for DICT_HASHED and DICT_HASHED_EXPANDABLE. */
|
||||
|
@ -254,7 +254,7 @@ make_srec (char *srec, CORE_ADDR targ_addr, bfd *abfd, asection *sect,
|
||||
addr_size = 4;
|
||||
else
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"make_srec: Bad address (0x%s), or bad flags (0x%x).",
|
||||
_("make_srec: Bad address (0x%s), or bad flags (0x%x)."),
|
||||
paddr (targ_addr), flags);
|
||||
|
||||
/* Now that we know the address size, we can figure out how much
|
||||
|
@ -246,7 +246,7 @@ maintenance_print_dummy_frames (char *args, int from_tty)
|
||||
{
|
||||
struct ui_file *file = gdb_fopen (args, "w");
|
||||
if (file == NULL)
|
||||
perror_with_name ("maintenance print dummy-frames");
|
||||
perror_with_name (_("maintenance print dummy-frames"));
|
||||
fprint_dummy_frames (file);
|
||||
ui_file_delete (file);
|
||||
}
|
||||
|
@ -461,7 +461,7 @@ fetch_bitmapped_register (int regno, struct bit_field *bf)
|
||||
|
||||
if (regno >= sizeof (r3900_regnames) / sizeof (r3900_regnames[0]))
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"fetch_bitmapped_register: regno out of bounds");
|
||||
_("fetch_bitmapped_register: regno out of bounds"));
|
||||
else
|
||||
regname = r3900_regnames[regno];
|
||||
|
||||
@ -508,7 +508,7 @@ store_bitmapped_register (int regno, struct bit_field *bf)
|
||||
|
||||
if (regno >= sizeof (r3900_regnames) / sizeof (r3900_regnames[0]))
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"fetch_bitmapped_register: regno out of bounds");
|
||||
_("fetch_bitmapped_register: regno out of bounds"));
|
||||
else
|
||||
regname = r3900_regnames[regno];
|
||||
|
||||
|
@ -227,14 +227,14 @@ static void
|
||||
no_get_frame_base (void *baton, unsigned char **start, size_t *length)
|
||||
{
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"Support for DW_OP_fbreg is unimplemented");
|
||||
_("Support for DW_OP_fbreg is unimplemented"));
|
||||
}
|
||||
|
||||
static CORE_ADDR
|
||||
no_get_tls_address (void *baton, CORE_ADDR offset)
|
||||
{
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"Support for DW_OP_GNU_push_tls_address is unimplemented");
|
||||
_("Support for DW_OP_GNU_push_tls_address is unimplemented"));
|
||||
}
|
||||
|
||||
static CORE_ADDR
|
||||
@ -374,8 +374,8 @@ execute_cfa_program (unsigned char *insn_ptr, unsigned char *insn_end,
|
||||
|
||||
if (old_rs == NULL)
|
||||
{
|
||||
complaint (&symfile_complaints, "\
|
||||
bad CFI data; mismatched DW_CFA_restore_state at 0x%s", paddr (fs->pc));
|
||||
complaint (&symfile_complaints, _("\
|
||||
bad CFI data; mismatched DW_CFA_restore_state at 0x%s"), paddr (fs->pc));
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -451,7 +451,7 @@ bad CFI data; mismatched DW_CFA_restore_state at 0x%s", paddr (fs->pc));
|
||||
break;
|
||||
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "Unknown CFI encountered.");
|
||||
internal_error (__FILE__, __LINE__, _("Unknown CFI encountered."));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -663,7 +663,7 @@ dwarf2_frame_cache (struct frame_info *next_frame, void **this_cache)
|
||||
break;
|
||||
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "Unknown CFA rule.");
|
||||
internal_error (__FILE__, __LINE__, _("Unknown CFA rule."));
|
||||
}
|
||||
|
||||
/* Initialize the register state. */
|
||||
@ -707,8 +707,8 @@ dwarf2_frame_cache (struct frame_info *next_frame, void **this_cache)
|
||||
if (fs->regs.reg[column].how == DWARF2_FRAME_REG_UNSPECIFIED)
|
||||
{
|
||||
if (cache->reg[regnum].how == DWARF2_FRAME_REG_UNSPECIFIED)
|
||||
complaint (&symfile_complaints, "\
|
||||
incomplete CFI data; unspecified registers (e.g., %s) at 0x%s",
|
||||
complaint (&symfile_complaints, _("\
|
||||
incomplete CFI data; unspecified registers (e.g., %s) at 0x%s"),
|
||||
gdbarch_register_name (gdbarch, regnum),
|
||||
paddr_nz (fs->pc));
|
||||
}
|
||||
@ -865,7 +865,7 @@ dwarf2_frame_prev_register (struct frame_info *next_frame, void **this_cache,
|
||||
break;
|
||||
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "Unknown register rule.");
|
||||
internal_error (__FILE__, __LINE__, _("Unknown register rule."));
|
||||
}
|
||||
}
|
||||
|
||||
@ -1090,7 +1090,7 @@ encoding_for_size (unsigned int size)
|
||||
case 8:
|
||||
return DW_EH_PE_udata8;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "Unsupported address size");
|
||||
internal_error (__FILE__, __LINE__, _("Unsupported address size"));
|
||||
}
|
||||
}
|
||||
|
||||
@ -1111,7 +1111,7 @@ size_of_encoded_value (unsigned char encoding)
|
||||
case DW_EH_PE_udata8:
|
||||
return 8;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "Invalid or unsupported encoding");
|
||||
internal_error (__FILE__, __LINE__, _("Invalid or unsupported encoding"));
|
||||
}
|
||||
}
|
||||
|
||||
@ -1127,7 +1127,7 @@ read_encoded_value (struct comp_unit *unit, unsigned char encoding,
|
||||
FDE's. */
|
||||
if (encoding & DW_EH_PE_indirect)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"Unsupported encoding: DW_EH_PE_indirect");
|
||||
_("Unsupported encoding: DW_EH_PE_indirect"));
|
||||
|
||||
*bytes_read_ptr = 0;
|
||||
|
||||
@ -1164,7 +1164,7 @@ read_encoded_value (struct comp_unit *unit, unsigned char encoding,
|
||||
}
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "Invalid or unsupported encoding");
|
||||
internal_error (__FILE__, __LINE__, _("Invalid or unsupported encoding"));
|
||||
}
|
||||
|
||||
if ((encoding & 0x07) == 0x00)
|
||||
@ -1205,7 +1205,7 @@ read_encoded_value (struct comp_unit *unit, unsigned char encoding,
|
||||
*bytes_read_ptr += 8;
|
||||
return (base + bfd_get_signed_64 (unit->abfd, (bfd_byte *) buf));
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "Invalid or unsupported encoding");
|
||||
internal_error (__FILE__, __LINE__, _("Invalid or unsupported encoding"));
|
||||
}
|
||||
}
|
||||
|
||||
@ -1587,21 +1587,21 @@ decode_frame_entry (struct comp_unit *unit, char *start, int eh_frame_p)
|
||||
|
||||
case ALIGN4:
|
||||
complaint (&symfile_complaints,
|
||||
"Corrupt data in %s:%s; align 4 workaround apparently succeeded",
|
||||
_("Corrupt data in %s:%s; align 4 workaround apparently succeeded"),
|
||||
unit->dwarf_frame_section->owner->filename,
|
||||
unit->dwarf_frame_section->name);
|
||||
break;
|
||||
|
||||
case ALIGN8:
|
||||
complaint (&symfile_complaints,
|
||||
"Corrupt data in %s:%s; align 8 workaround apparently succeeded",
|
||||
_("Corrupt data in %s:%s; align 8 workaround apparently succeeded"),
|
||||
unit->dwarf_frame_section->owner->filename,
|
||||
unit->dwarf_frame_section->name);
|
||||
break;
|
||||
|
||||
default:
|
||||
complaint (&symfile_complaints,
|
||||
"Corrupt data in %s:%s",
|
||||
_("Corrupt data in %s:%s"),
|
||||
unit->dwarf_frame_section->owner->filename,
|
||||
unit->dwarf_frame_section->name);
|
||||
break;
|
||||
|
@ -225,7 +225,7 @@ unsigned_address_type (void)
|
||||
return builtin_type_uint64;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"Unsupported address size.\n");
|
||||
_("Unsupported address size.\n"));
|
||||
}
|
||||
}
|
||||
|
||||
@ -244,7 +244,7 @@ signed_address_type (void)
|
||||
return builtin_type_int64;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"Unsupported address size.\n");
|
||||
_("Unsupported address size.\n"));
|
||||
}
|
||||
}
|
||||
|
||||
@ -650,7 +650,7 @@ execute_stack_op (struct dwarf_expr_context *ctx, unsigned char *op_ptr,
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"Can't be reached.");
|
||||
_("Can't be reached."));
|
||||
}
|
||||
result = value_as_long (value_binop (val1, val2, binop));
|
||||
}
|
||||
|
@ -666,13 +666,13 @@ static void
|
||||
dwarf2_statement_list_fits_in_line_number_section_complaint (void)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"statement list doesn't fit in .debug_line section");
|
||||
_("statement list doesn't fit in .debug_line section"));
|
||||
}
|
||||
|
||||
static void
|
||||
dwarf2_complex_location_expr_complaint (void)
|
||||
{
|
||||
complaint (&symfile_complaints, "location expression too complex");
|
||||
complaint (&symfile_complaints, _("location expression too complex"));
|
||||
}
|
||||
|
||||
static void
|
||||
@ -680,7 +680,7 @@ dwarf2_const_value_length_mismatch_complaint (const char *arg1, int arg2,
|
||||
int arg3)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"const value length mismatch for '%s', got %d, expected %d", arg1,
|
||||
_("const value length mismatch for '%s', got %d, expected %d"), arg1,
|
||||
arg2, arg3);
|
||||
}
|
||||
|
||||
@ -688,14 +688,14 @@ static void
|
||||
dwarf2_macros_too_long_complaint (void)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"macro info runs off end of `.debug_macinfo' section");
|
||||
_("macro info runs off end of `.debug_macinfo' section"));
|
||||
}
|
||||
|
||||
static void
|
||||
dwarf2_macro_malformed_definition_complaint (const char *arg1)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"macro debug info contains a malformed macro definition:\n`%s'",
|
||||
_("macro debug info contains a malformed macro definition:\n`%s'"),
|
||||
arg1);
|
||||
}
|
||||
|
||||
@ -703,7 +703,7 @@ static void
|
||||
dwarf2_invalid_attrib_class_complaint (const char *arg1, const char *arg2)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"invalid attribute class or form for '%s' in '%s'", arg1, arg2);
|
||||
_("invalid attribute class or form for '%s' in '%s'"), arg1, arg2);
|
||||
}
|
||||
|
||||
/* local function prototypes */
|
||||
@ -1282,7 +1282,7 @@ read_comp_unit_head (struct comp_unit_head *cu_header,
|
||||
signed_addr = bfd_get_sign_extend_vma (abfd);
|
||||
if (signed_addr < 0)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"read_comp_unit_head: dwarf from non elf file");
|
||||
_("read_comp_unit_head: dwarf from non elf file"));
|
||||
cu_header->signed_addr_p = signed_addr;
|
||||
return info_ptr;
|
||||
}
|
||||
@ -1819,7 +1819,7 @@ partial_die_parent_scope (struct partial_die_info *pdi,
|
||||
function-local names? For partial symbols, we should probably be
|
||||
ignoring them. */
|
||||
complaint (&symfile_complaints,
|
||||
"unhandled containing DIE tag %d for DIE at %d",
|
||||
_("unhandled containing DIE tag %d for DIE at %d"),
|
||||
parent->tag, pdi->offset);
|
||||
parent->scope = grandparent_scope;
|
||||
}
|
||||
@ -2123,7 +2123,7 @@ add_partial_enumeration (struct partial_die_info *enum_pdi,
|
||||
while (pdi)
|
||||
{
|
||||
if (pdi->tag != DW_TAG_enumerator || pdi->name == NULL)
|
||||
complaint (&symfile_complaints, "malformed enumerator DIE ignored");
|
||||
complaint (&symfile_complaints, _("malformed enumerator DIE ignored"));
|
||||
else
|
||||
add_partial_symbol (pdi, cu);
|
||||
pdi = pdi->die_sibling;
|
||||
@ -2200,7 +2200,7 @@ skip_one_die (char *info_ptr, struct abbrev_info *abbrev,
|
||||
read_attribute (&attr, &abbrev->attrs[i],
|
||||
abfd, info_ptr, cu);
|
||||
if (attr.form == DW_FORM_ref_addr)
|
||||
complaint (&symfile_complaints, "ignoring absolute DW_AT_sibling");
|
||||
complaint (&symfile_complaints, _("ignoring absolute DW_AT_sibling"));
|
||||
else
|
||||
return dwarf2_per_objfile->info_buffer
|
||||
+ dwarf2_get_ref_die_offset (&attr, cu);
|
||||
@ -3064,7 +3064,7 @@ dwarf2_get_pc_bounds (struct die_info *die, CORE_ADDR *lowpc,
|
||||
if (offset >= dwarf2_per_objfile->ranges_size)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"Offset %d out of bounds for DW_AT_ranges attribute",
|
||||
_("Offset %d out of bounds for DW_AT_ranges attribute"),
|
||||
offset);
|
||||
return 0;
|
||||
}
|
||||
@ -3116,7 +3116,7 @@ dwarf2_get_pc_bounds (struct die_info *die, CORE_ADDR *lowpc,
|
||||
/* We have no valid base address for the ranges
|
||||
data. */
|
||||
complaint (&symfile_complaints,
|
||||
"Invalid .debug_ranges data (no base address)");
|
||||
_("Invalid .debug_ranges data (no base address)"));
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -3472,7 +3472,7 @@ dwarf2_attach_fields_to_type (struct field_info *fip, struct type *type,
|
||||
default:
|
||||
/* Unknown accessibility. Complain and treat it as public. */
|
||||
{
|
||||
complaint (&symfile_complaints, "unsupported accessibility %d",
|
||||
complaint (&symfile_complaints, _("unsupported accessibility %d"),
|
||||
fip->fields->accessibility);
|
||||
}
|
||||
break;
|
||||
@ -3581,7 +3581,7 @@ dwarf2_add_member_fn (struct field_info *fip, struct die_info *die,
|
||||
fnp->voffset = VOFFSET_STATIC;
|
||||
}
|
||||
else
|
||||
complaint (&symfile_complaints, "member function type missing for '%s'",
|
||||
complaint (&symfile_complaints, _("member function type missing for '%s'"),
|
||||
physname);
|
||||
|
||||
/* Get fcontext from DW_AT_containing_type if present. */
|
||||
@ -3844,7 +3844,7 @@ read_structure_type (struct die_info *die, struct dwarf2_cu *cu)
|
||||
/* Complain if virtual function table field not found. */
|
||||
if (i < TYPE_N_BASECLASSES (t))
|
||||
complaint (&symfile_complaints,
|
||||
"virtual function table pointer not found when defining class '%s'",
|
||||
_("virtual function table pointer not found when defining class '%s'"),
|
||||
TYPE_TAG_NAME (type) ? TYPE_TAG_NAME (type) :
|
||||
"");
|
||||
}
|
||||
@ -4398,7 +4398,7 @@ read_tag_pointer_type (struct die_info *die, struct dwarf2_cu *cu)
|
||||
}
|
||||
else if (TYPE_LENGTH (type) != byte_size)
|
||||
{
|
||||
complaint (&symfile_complaints, "invalid pointer size %d", byte_size);
|
||||
complaint (&symfile_complaints, _("invalid pointer size %d"), byte_size);
|
||||
}
|
||||
else {
|
||||
/* Should we also complain about unhandled address classes? */
|
||||
@ -4704,7 +4704,7 @@ read_base_type (struct die_info *die, struct dwarf2_cu *cu)
|
||||
type_flags |= TYPE_FLAG_UNSIGNED;
|
||||
break;
|
||||
default:
|
||||
complaint (&symfile_complaints, "unsupported DW_AT_encoding: '%s'",
|
||||
complaint (&symfile_complaints, _("unsupported DW_AT_encoding: '%s'"),
|
||||
dwarf_type_encoding_name (encoding));
|
||||
break;
|
||||
}
|
||||
@ -4751,7 +4751,7 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu)
|
||||
if (base_type == NULL)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"DW_AT_type missing from DW_TAG_subrange_type");
|
||||
_("DW_AT_type missing from DW_TAG_subrange_type"));
|
||||
return;
|
||||
}
|
||||
|
||||
@ -5219,7 +5219,7 @@ load_partial_dies (bfd *abfd, char *info_ptr, int building_psymtab,
|
||||
&& parent_die->has_specification == 0)
|
||||
{
|
||||
if (part_die->name == NULL)
|
||||
complaint (&symfile_complaints, "malformed enumerator DIE ignored");
|
||||
complaint (&symfile_complaints, _("malformed enumerator DIE ignored"));
|
||||
else if (building_psymtab)
|
||||
add_psymbol_to_list (part_die->name, strlen (part_die->name),
|
||||
VAR_DOMAIN, LOC_CONST,
|
||||
@ -5399,7 +5399,7 @@ read_partial_die (struct partial_die_info *part_die,
|
||||
/* Ignore absolute siblings, they might point outside of
|
||||
the current compile unit. */
|
||||
if (attr.form == DW_FORM_ref_addr)
|
||||
complaint (&symfile_complaints, "ignoring absolute DW_AT_sibling");
|
||||
complaint (&symfile_complaints, _("ignoring absolute DW_AT_sibling"));
|
||||
else
|
||||
part_die->sibling = dwarf2_per_objfile->info_buffer
|
||||
+ dwarf2_get_ref_die_offset (&attr, cu);
|
||||
@ -5442,7 +5442,7 @@ find_partial_die_in_comp_unit (unsigned long offset, struct dwarf2_cu *cu)
|
||||
|
||||
if (lookup_die == NULL)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"could not find partial DIE in cache\n");
|
||||
_("could not find partial DIE in cache\n"));
|
||||
|
||||
return lookup_die;
|
||||
}
|
||||
@ -5797,7 +5797,7 @@ read_address (bfd *abfd, char *buf, struct dwarf2_cu *cu, int *bytes_read)
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"read_address: bad switch, signed [in module %s]",
|
||||
_("read_address: bad switch, signed [in module %s]"),
|
||||
bfd_get_filename (abfd));
|
||||
}
|
||||
}
|
||||
@ -5816,7 +5816,7 @@ read_address (bfd *abfd, char *buf, struct dwarf2_cu *cu, int *bytes_read)
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"read_address: bad switch, unsigned [in module %s]",
|
||||
_("read_address: bad switch, unsigned [in module %s]"),
|
||||
bfd_get_filename (abfd));
|
||||
}
|
||||
}
|
||||
@ -5932,7 +5932,7 @@ read_offset (bfd *abfd, char *buf, const struct comp_unit_head *cu_header,
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"read_offset: bad switch [in module %s]",
|
||||
_("read_offset: bad switch [in module %s]"),
|
||||
bfd_get_filename (abfd));
|
||||
}
|
||||
|
||||
@ -6266,7 +6266,7 @@ dwarf_decode_line_header (unsigned int offset, bfd *abfd,
|
||||
|
||||
if (dwarf2_per_objfile->line_buffer == NULL)
|
||||
{
|
||||
complaint (&symfile_complaints, "missing .debug_line section");
|
||||
complaint (&symfile_complaints, _("missing .debug_line section"));
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -6348,7 +6348,7 @@ dwarf_decode_line_header (unsigned int offset, bfd *abfd,
|
||||
if (line_ptr > (dwarf2_per_objfile->line_buffer
|
||||
+ dwarf2_per_objfile->line_size))
|
||||
complaint (&symfile_complaints,
|
||||
"line number info header doesn't fit in `.debug_line' section");
|
||||
_("line number info header doesn't fit in `.debug_line' section"));
|
||||
|
||||
discard_cleanups (back_to);
|
||||
return lh;
|
||||
@ -6394,7 +6394,7 @@ check_cu_functions (CORE_ADDR address, struct dwarf2_cu *cu)
|
||||
return address;
|
||||
if (address != fn->lowpc)
|
||||
complaint (&symfile_complaints,
|
||||
"misplaced first line number at 0x%lx for '%s'",
|
||||
_("misplaced first line number at 0x%lx for '%s'"),
|
||||
(unsigned long) address, fn->name);
|
||||
fn->seen_line = 1;
|
||||
return fn->lowpc;
|
||||
@ -6526,7 +6526,7 @@ dwarf_decode_lines (struct line_header *lh, char *comp_dir, bfd *abfd,
|
||||
break;
|
||||
default:
|
||||
complaint (&symfile_complaints,
|
||||
"mangled .debug_line section");
|
||||
_("mangled .debug_line section"));
|
||||
return;
|
||||
}
|
||||
break;
|
||||
@ -6982,7 +6982,7 @@ new_symbol (struct die_info *die, struct type *type, struct dwarf2_cu *cu)
|
||||
trash data, but since we must specifically ignore things
|
||||
we don't recognize, there is nothing else we should do at
|
||||
this point. */
|
||||
complaint (&symfile_complaints, "unsupported tag: '%s'",
|
||||
complaint (&symfile_complaints, _("unsupported tag: '%s'"),
|
||||
dwarf_tag_name (die->tag));
|
||||
break;
|
||||
}
|
||||
@ -7062,7 +7062,7 @@ dwarf2_const_value (struct attribute *attr, struct symbol *sym,
|
||||
|
||||
default:
|
||||
complaint (&symfile_complaints,
|
||||
"unsupported const value attribute form: '%s'",
|
||||
_("unsupported const value attribute form: '%s'"),
|
||||
dwarf_form_name (attr->form));
|
||||
SYMBOL_VALUE (sym) = 0;
|
||||
SYMBOL_CLASS (sym) = LOC_CONST;
|
||||
@ -7220,7 +7220,7 @@ read_type_die (struct die_info *die, struct dwarf2_cu *cu)
|
||||
read_base_type (die, cu);
|
||||
break;
|
||||
default:
|
||||
complaint (&symfile_complaints, "unexepected tag in read_type_die: '%s'",
|
||||
complaint (&symfile_complaints, _("unexepected tag in read_type_die: '%s'"),
|
||||
dwarf_tag_name (die->tag));
|
||||
break;
|
||||
}
|
||||
@ -8424,7 +8424,7 @@ dwarf2_get_ref_die_offset (struct attribute *attr, struct dwarf2_cu *cu)
|
||||
break;
|
||||
default:
|
||||
complaint (&symfile_complaints,
|
||||
"unsupported die ref attribute form: '%s'",
|
||||
_("unsupported die ref attribute form: '%s'"),
|
||||
dwarf_form_name (attr->form));
|
||||
}
|
||||
return result;
|
||||
@ -8446,7 +8446,7 @@ dwarf2_get_attr_constant_value (struct attribute *attr, int default_value)
|
||||
return DW_UNSND (attr);
|
||||
else
|
||||
{
|
||||
complaint (&symfile_complaints, "Attribute value is not a constant (%s)",
|
||||
complaint (&symfile_complaints, _("Attribute value is not a constant (%s)"),
|
||||
dwarf_form_name (attr->form));
|
||||
return default_value;
|
||||
}
|
||||
@ -8731,7 +8731,7 @@ decode_locdesc (struct dwarf_block *blk, struct dwarf2_cu *cu)
|
||||
break;
|
||||
|
||||
default:
|
||||
complaint (&symfile_complaints, "unsupported stack op: '%s'",
|
||||
complaint (&symfile_complaints, _("unsupported stack op: '%s'"),
|
||||
dwarf_stack_op_name (op));
|
||||
return (stack[stacki]);
|
||||
}
|
||||
@ -8860,7 +8860,7 @@ consume_improper_spaces (const char *p, const char *body)
|
||||
if (*p == ' ')
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"macro definition contains spaces in formal argument list:\n`%s'",
|
||||
_("macro definition contains spaces in formal argument list:\n`%s'"),
|
||||
body);
|
||||
|
||||
while (*p == ' ')
|
||||
@ -9022,7 +9022,7 @@ dwarf_decode_macros (struct line_header *lh, unsigned int offset,
|
||||
|
||||
if (dwarf2_per_objfile->macinfo_buffer == NULL)
|
||||
{
|
||||
complaint (&symfile_complaints, "missing .debug_macinfo section");
|
||||
complaint (&symfile_complaints, _("missing .debug_macinfo section"));
|
||||
return;
|
||||
}
|
||||
|
||||
@ -9065,7 +9065,7 @@ dwarf_decode_macros (struct line_header *lh, unsigned int offset,
|
||||
|
||||
if (! current_file)
|
||||
complaint (&symfile_complaints,
|
||||
"debug info gives macro %s outside of any file: %s",
|
||||
_("debug info gives macro %s outside of any file: %s"),
|
||||
macinfo_type ==
|
||||
DW_MACINFO_define ? "definition" : macinfo_type ==
|
||||
DW_MACINFO_undef ? "undefinition" :
|
||||
@ -9099,7 +9099,7 @@ dwarf_decode_macros (struct line_header *lh, unsigned int offset,
|
||||
case DW_MACINFO_end_file:
|
||||
if (! current_file)
|
||||
complaint (&symfile_complaints,
|
||||
"macro debug info has an unmatched `close_file' directive");
|
||||
_("macro debug info has an unmatched `close_file' directive"));
|
||||
else
|
||||
{
|
||||
current_file = current_file->included_by;
|
||||
@ -9124,7 +9124,7 @@ dwarf_decode_macros (struct line_header *lh, unsigned int offset,
|
||||
next_type = read_1_byte (abfd, mac_ptr);
|
||||
if (next_type != 0)
|
||||
complaint (&symfile_complaints,
|
||||
"no terminating 0-type entry for macros in `.debug_macinfo' section");
|
||||
_("no terminating 0-type entry for macros in `.debug_macinfo' section"));
|
||||
|
||||
return;
|
||||
}
|
||||
@ -9180,7 +9180,7 @@ dwarf2_symbol_mark_computed (struct attribute *attr, struct symbol *sym,
|
||||
baton->base_address = cu->header.base_address;
|
||||
if (cu->header.base_known == 0)
|
||||
complaint (&symfile_complaints,
|
||||
"Location list used without specifying the CU base address.");
|
||||
_("Location list used without specifying the CU base address."));
|
||||
|
||||
SYMBOL_OPS (sym) = &dwarf2_loclist_funcs;
|
||||
SYMBOL_LOCATION_BATON (sym) = baton;
|
||||
|
@ -135,7 +135,7 @@ static void
|
||||
bad_die_ref_complaint (int arg1, const char *arg2, int arg3)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"DIE @ 0x%x \"%s\", reference to DIE (0x%x) outside compilation unit",
|
||||
_("DIE @ 0x%x \"%s\", reference to DIE (0x%x) outside compilation unit"),
|
||||
arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
@ -143,7 +143,7 @@ static void
|
||||
unknown_attribute_form_complaint (int arg1, const char *arg2, int arg3)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"DIE @ 0x%x \"%s\", unknown attribute form (0x%x)", arg1, arg2,
|
||||
_("DIE @ 0x%x \"%s\", unknown attribute form (0x%x)"), arg1, arg2,
|
||||
arg3);
|
||||
}
|
||||
|
||||
@ -151,7 +151,7 @@ static void
|
||||
dup_user_type_definition_complaint (int arg1, const char *arg2)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"DIE @ 0x%x \"%s\", internal error: duplicate user type definition",
|
||||
_("DIE @ 0x%x \"%s\", internal error: duplicate user type definition"),
|
||||
arg1, arg2);
|
||||
}
|
||||
|
||||
@ -159,7 +159,7 @@ static void
|
||||
bad_array_element_type_complaint (int arg1, const char *arg2, int arg3)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"DIE @ 0x%x \"%s\", bad array element type attribute 0x%x", arg1,
|
||||
_("DIE @ 0x%x \"%s\", bad array element type attribute 0x%x"), arg1,
|
||||
arg2, arg3);
|
||||
}
|
||||
|
||||
@ -818,7 +818,7 @@ alloc_utype (DIE_REF die_ref, struct type *utypep)
|
||||
{
|
||||
utypep = *typep;
|
||||
complaint (&symfile_complaints,
|
||||
"DIE @ 0x%x \"%s\", internal error: duplicate user type allocation",
|
||||
_("DIE @ 0x%x \"%s\", internal error: duplicate user type allocation"),
|
||||
DIE_ID, DIE_NAME);
|
||||
}
|
||||
else
|
||||
@ -967,7 +967,7 @@ struct_type (struct dieinfo *dip, char *thisdie, char *enddie,
|
||||
/* Should never happen */
|
||||
TYPE_CODE (type) = TYPE_CODE_UNDEF;
|
||||
complaint (&symfile_complaints,
|
||||
"DIE @ 0x%x \"%s\", missing class, structure, or union tag",
|
||||
_("DIE @ 0x%x \"%s\", missing class, structure, or union tag"),
|
||||
DIE_ID, DIE_NAME);
|
||||
break;
|
||||
}
|
||||
@ -1306,7 +1306,7 @@ decode_subscript_data_item (char *scan, char *end)
|
||||
{
|
||||
/* Munged subscript data or other problem, fake it. */
|
||||
complaint (&symfile_complaints,
|
||||
"DIE @ 0x%x \"%s\", can't decode subscript data items",
|
||||
_("DIE @ 0x%x \"%s\", can't decode subscript data items"),
|
||||
DIE_ID, DIE_NAME);
|
||||
nexttype = dwarf_fundamental_type (current_objfile, FT_INTEGER);
|
||||
}
|
||||
@ -1322,7 +1322,7 @@ decode_subscript_data_item (char *scan, char *end)
|
||||
case FMT_UT_X_C:
|
||||
case FMT_UT_X_X:
|
||||
complaint (&symfile_complaints,
|
||||
"DIE @ 0x%x \"%s\", array subscript format 0x%x not handled yet",
|
||||
_("DIE @ 0x%x \"%s\", array subscript format 0x%x not handled yet"),
|
||||
DIE_ID, DIE_NAME, format);
|
||||
nexttype = dwarf_fundamental_type (current_objfile, FT_INTEGER);
|
||||
rangetype = create_range_type ((struct type *) NULL, nexttype, 0, 0);
|
||||
@ -1330,7 +1330,7 @@ decode_subscript_data_item (char *scan, char *end)
|
||||
break;
|
||||
default:
|
||||
complaint (&symfile_complaints,
|
||||
"DIE @ 0x%x \"%s\", unknown array subscript format %x", DIE_ID,
|
||||
_("DIE @ 0x%x \"%s\", unknown array subscript format %x"), DIE_ID,
|
||||
DIE_NAME, format);
|
||||
nexttype = dwarf_fundamental_type (current_objfile, FT_INTEGER);
|
||||
rangetype = create_range_type ((struct type *) NULL, nexttype, 0, 0);
|
||||
@ -1370,7 +1370,7 @@ dwarf_read_array_type (struct dieinfo *dip)
|
||||
{
|
||||
/* FIXME: Can gdb even handle column major arrays? */
|
||||
complaint (&symfile_complaints,
|
||||
"DIE @ 0x%x \"%s\", array not row major; not handled correctly",
|
||||
_("DIE @ 0x%x \"%s\", array not row major; not handled correctly"),
|
||||
DIE_ID, DIE_NAME);
|
||||
}
|
||||
sub = dip->at_subscr_data;
|
||||
@ -1787,7 +1787,7 @@ read_func_scope (struct dieinfo *dip, char *thisdie, char *enddie,
|
||||
FIXME: Add code to handle AT_abstract_origin tags properly. */
|
||||
if (dip->at_name == NULL)
|
||||
{
|
||||
complaint (&symfile_complaints, "DIE @ 0x%x, AT_name tag missing",
|
||||
complaint (&symfile_complaints, _("DIE @ 0x%x, AT_name tag missing"),
|
||||
DIE_ID);
|
||||
return;
|
||||
}
|
||||
@ -2210,12 +2210,12 @@ locval (struct dieinfo *dip)
|
||||
case OP_DEREF2:
|
||||
/* pop, deref and push 2 bytes (as a long) */
|
||||
complaint (&symfile_complaints,
|
||||
"DIE @ 0x%x \"%s\", OP_DEREF2 address 0x%lx not handled",
|
||||
_("DIE @ 0x%x \"%s\", OP_DEREF2 address 0x%lx not handled"),
|
||||
DIE_ID, DIE_NAME, stack[stacki]);
|
||||
break;
|
||||
case OP_DEREF4: /* pop, deref and push 4 bytes (as a long) */
|
||||
complaint (&symfile_complaints,
|
||||
"DIE @ 0x%x \"%s\", OP_DEREF4 address 0x%lx not handled",
|
||||
_("DIE @ 0x%x \"%s\", OP_DEREF4 address 0x%lx not handled"),
|
||||
DIE_ID, DIE_NAME, stack[stacki]);
|
||||
break;
|
||||
case OP_ADD: /* pop top 2 items, add, push result */
|
||||
@ -3185,7 +3185,7 @@ decode_modified_type (char *modifiers, unsigned int modcount, int mtype)
|
||||
break;
|
||||
default:
|
||||
complaint (&symfile_complaints,
|
||||
"DIE @ 0x%x \"%s\", botched modified type decoding (mtype 0x%x)",
|
||||
_("DIE @ 0x%x \"%s\", botched modified type decoding (mtype 0x%x)"),
|
||||
DIE_ID, DIE_NAME, mtype);
|
||||
typep = dwarf_fundamental_type (current_objfile, FT_INTEGER);
|
||||
break;
|
||||
@ -3205,12 +3205,12 @@ decode_modified_type (char *modifiers, unsigned int modcount, int mtype)
|
||||
break;
|
||||
case MOD_const:
|
||||
complaint (&symfile_complaints,
|
||||
"DIE @ 0x%x \"%s\", type modifier 'const' ignored", DIE_ID,
|
||||
_("DIE @ 0x%x \"%s\", type modifier 'const' ignored"), DIE_ID,
|
||||
DIE_NAME); /* FIXME */
|
||||
break;
|
||||
case MOD_volatile:
|
||||
complaint (&symfile_complaints,
|
||||
"DIE @ 0x%x \"%s\", type modifier 'volatile' ignored",
|
||||
_("DIE @ 0x%x \"%s\", type modifier 'volatile' ignored"),
|
||||
DIE_ID, DIE_NAME); /* FIXME */
|
||||
break;
|
||||
default:
|
||||
@ -3222,7 +3222,7 @@ decode_modified_type (char *modifiers, unsigned int modcount, int mtype)
|
||||
#endif
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"DIE @ 0x%x \"%s\", unknown type modifier %u", DIE_ID,
|
||||
_("DIE @ 0x%x \"%s\", unknown type modifier %u"), DIE_ID,
|
||||
DIE_NAME, modifier);
|
||||
}
|
||||
break;
|
||||
@ -3366,7 +3366,7 @@ decode_fund_type (unsigned int fundtype)
|
||||
if (!(FT_lo_user <= fundtype && fundtype <= FT_hi_user))
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"DIE @ 0x%x \"%s\", unexpected fundamental type 0x%x",
|
||||
_("DIE @ 0x%x \"%s\", unexpected fundamental type 0x%x"),
|
||||
DIE_ID, DIE_NAME, fundtype);
|
||||
}
|
||||
}
|
||||
@ -3466,7 +3466,7 @@ basicdieinfo (struct dieinfo *dip, char *diep, struct objfile *objfile)
|
||||
((diep + dip->die_length) > (dbbase + dbsize)))
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"DIE @ 0x%x \"%s\", malformed DIE, bad length (%ld bytes)",
|
||||
_("DIE @ 0x%x \"%s\", malformed DIE, bad length (%ld bytes)"),
|
||||
DIE_ID, DIE_NAME, dip->die_length);
|
||||
dip->die_length = 0;
|
||||
}
|
||||
@ -3535,7 +3535,7 @@ completedieinfo (struct dieinfo *dip, struct objfile *objfile)
|
||||
if (nbytes == -1)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"DIE @ 0x%x \"%s\", unknown attribute length, skipped remaining attributes",
|
||||
_("DIE @ 0x%x \"%s\", unknown attribute length, skipped remaining attributes"),
|
||||
DIE_ID, DIE_NAME);
|
||||
diep = end;
|
||||
continue;
|
||||
@ -3751,7 +3751,7 @@ target_to_host (char *from, int nbytes, int signextend, /* FIXME: Unused */
|
||||
break;
|
||||
default:
|
||||
complaint (&symfile_complaints,
|
||||
"DIE @ 0x%x \"%s\", no bfd support for %d byte data object",
|
||||
_("DIE @ 0x%x \"%s\", no bfd support for %d byte data object"),
|
||||
DIE_ID, DIE_NAME, nbytes);
|
||||
rtnval = 0;
|
||||
break;
|
||||
|
@ -383,7 +383,7 @@ elf_symtab_read (struct objfile *objfile, int dynamic)
|
||||
if (filesym == NULL)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"elf/stab section information %s without a preceding file symbol",
|
||||
_("elf/stab section information %s without a preceding file symbol"),
|
||||
sym->name);
|
||||
}
|
||||
else
|
||||
@ -394,7 +394,7 @@ elf_symtab_read (struct objfile *objfile, int dynamic)
|
||||
}
|
||||
if (sectinfo->sections[special_local_sect] != 0)
|
||||
complaint (&symfile_complaints,
|
||||
"duplicated elf/stab section information for %s",
|
||||
_("duplicated elf/stab section information for %s"),
|
||||
sectinfo->filename);
|
||||
/* BFD symbols are section relative. */
|
||||
symaddr = sym->value + sym->section->vma;
|
||||
@ -704,7 +704,7 @@ elfstab_offset_sections (struct objfile *objfile, struct partial_symtab *pst)
|
||||
if (maybe == 0 && questionable != 0)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"elf/stab section information questionable for %s", filename);
|
||||
_("elf/stab section information questionable for %s"), filename);
|
||||
maybe = questionable;
|
||||
}
|
||||
|
||||
@ -723,7 +723,7 @@ elfstab_offset_sections (struct objfile *objfile, struct partial_symtab *pst)
|
||||
/* We were unable to find any offsets for this file. Complain. */
|
||||
if (dbx->stab_section_info) /* If there *is* any info, */
|
||||
complaint (&symfile_complaints,
|
||||
"elf/stab section information missing for %s", filename);
|
||||
_("elf/stab section information missing for %s"), filename);
|
||||
}
|
||||
|
||||
/* Register that we are able to handle ELF object file formats. */
|
||||
|
@ -452,7 +452,7 @@ add_file_handler (int fd, handler_func * proc, gdb_client_data client_data)
|
||||
use_poll = 0;
|
||||
#else
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"use_poll without HAVE_POLL");
|
||||
_("use_poll without HAVE_POLL"));
|
||||
#endif /* HAVE_POLL */
|
||||
}
|
||||
if (use_poll)
|
||||
@ -461,7 +461,7 @@ add_file_handler (int fd, handler_func * proc, gdb_client_data client_data)
|
||||
create_file_handler (fd, POLLIN, proc, client_data);
|
||||
#else
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"use_poll without HAVE_POLL");
|
||||
_("use_poll without HAVE_POLL"));
|
||||
#endif
|
||||
}
|
||||
else
|
||||
@ -519,7 +519,7 @@ create_file_handler (int fd, int mask, handler_func * proc, gdb_client_data clie
|
||||
(gdb_notifier.poll_fds + gdb_notifier.num_fds - 1)->revents = 0;
|
||||
#else
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"use_poll without HAVE_POLL");
|
||||
_("use_poll without HAVE_POLL"));
|
||||
#endif /* HAVE_POLL */
|
||||
}
|
||||
else
|
||||
@ -597,7 +597,7 @@ delete_file_handler (int fd)
|
||||
gdb_notifier.num_fds--;
|
||||
#else
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"use_poll without HAVE_POLL");
|
||||
_("use_poll without HAVE_POLL"));
|
||||
#endif /* HAVE_POLL */
|
||||
}
|
||||
else
|
||||
@ -699,7 +699,7 @@ handle_file_event (int event_file_desc)
|
||||
file_ptr->error = 0;
|
||||
#else
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"use_poll without HAVE_POLL");
|
||||
_("use_poll without HAVE_POLL"));
|
||||
#endif /* HAVE_POLL */
|
||||
}
|
||||
else
|
||||
@ -758,10 +758,10 @@ gdb_wait_for_event (void)
|
||||
/* Don't print anything if we get out of poll because of a
|
||||
signal. */
|
||||
if (num_found == -1 && errno != EINTR)
|
||||
perror_with_name ("Poll");
|
||||
perror_with_name (("poll"));
|
||||
#else
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"use_poll without HAVE_POLL");
|
||||
_("use_poll without HAVE_POLL"));
|
||||
#endif /* HAVE_POLL */
|
||||
}
|
||||
else
|
||||
@ -784,7 +784,7 @@ gdb_wait_for_event (void)
|
||||
FD_ZERO (&gdb_notifier.ready_masks[2]);
|
||||
/* Dont print anything is we got a signal, let gdb handle it. */
|
||||
if (errno != EINTR)
|
||||
perror_with_name ("Select");
|
||||
perror_with_name (("select"));
|
||||
}
|
||||
}
|
||||
|
||||
@ -823,7 +823,7 @@ gdb_wait_for_event (void)
|
||||
}
|
||||
#else
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"use_poll without HAVE_POLL");
|
||||
_("use_poll without HAVE_POLL"));
|
||||
#endif /* HAVE_POLL */
|
||||
}
|
||||
else
|
||||
@ -1144,7 +1144,7 @@ poll_timers (void)
|
||||
gdb_notifier.poll_timeout = delta.tv_sec * 1000;
|
||||
#else
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"use_poll without HAVE_POLL");
|
||||
_("use_poll without HAVE_POLL"));
|
||||
#endif /* HAVE_POLL */
|
||||
}
|
||||
else
|
||||
|
@ -133,7 +133,7 @@ exceptions_state_mc (enum catcher_action action)
|
||||
current_catcher->state = CATCHER_RUNNING;
|
||||
return 1;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "bad state");
|
||||
internal_error (__FILE__, __LINE__, _("bad state"));
|
||||
}
|
||||
case CATCHER_RUNNING:
|
||||
switch (action)
|
||||
@ -150,7 +150,7 @@ exceptions_state_mc (enum catcher_action action)
|
||||
/* See also throw_exception. */
|
||||
return 1;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "bad switch");
|
||||
internal_error (__FILE__, __LINE__, _("bad switch"));
|
||||
}
|
||||
case CATCHER_RUNNING_1:
|
||||
switch (action)
|
||||
@ -167,7 +167,7 @@ exceptions_state_mc (enum catcher_action action)
|
||||
/* See also throw_exception. */
|
||||
return 1;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "bad switch");
|
||||
internal_error (__FILE__, __LINE__, _("bad switch"));
|
||||
}
|
||||
case CATCHER_ABORTING:
|
||||
switch (action)
|
||||
@ -190,10 +190,10 @@ exceptions_state_mc (enum catcher_action action)
|
||||
throw_exception (exception);
|
||||
}
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "bad state");
|
||||
internal_error (__FILE__, __LINE__, _("bad state"));
|
||||
}
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "bad switch");
|
||||
internal_error (__FILE__, __LINE__, _("bad switch"));
|
||||
}
|
||||
}
|
||||
|
||||
@ -253,7 +253,7 @@ deprecated_throw_reason (enum return_reason reason)
|
||||
exception.error = GENERIC_ERROR;
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "bad switch");
|
||||
internal_error (__FILE__, __LINE__, _("bad switch"));
|
||||
}
|
||||
|
||||
throw_exception (exception);
|
||||
|
@ -366,7 +366,7 @@ build_section_table (struct bfd *some_bfd, struct section_table **start,
|
||||
*end = *start;
|
||||
bfd_map_over_sections (some_bfd, add_to_section_table, (char *) end);
|
||||
if (*end > *start + count)
|
||||
internal_error (__FILE__, __LINE__, "failed internal consistency check");
|
||||
internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
|
||||
/* We could realloc the table, but it probably loses for most files. */
|
||||
return 0;
|
||||
}
|
||||
@ -455,7 +455,7 @@ xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
|
||||
asection *section = NULL;
|
||||
|
||||
if (len <= 0)
|
||||
internal_error (__FILE__, __LINE__, "failed internal consistency check");
|
||||
internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
|
||||
|
||||
if (overlay_debugging)
|
||||
{
|
||||
|
@ -926,7 +926,7 @@ get_bf_for_fcn (long the_function)
|
||||
|
||||
if (saved_bf_list == NULL)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"cannot get .bf node off empty list");
|
||||
_("cannot get .bf node off empty list"));
|
||||
|
||||
if (current_head_bf_list != NULL)
|
||||
if (current_head_bf_list->symnum_fcn == the_function)
|
||||
|
@ -169,8 +169,8 @@ extract_typed_address (const void *buf, struct type *type)
|
||||
if (TYPE_CODE (type) != TYPE_CODE_PTR
|
||||
&& TYPE_CODE (type) != TYPE_CODE_REF)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"extract_typed_address: "
|
||||
"type is not a pointer or reference");
|
||||
_("extract_typed_address: "
|
||||
"type is not a pointer or reference"));
|
||||
|
||||
return POINTER_TO_ADDRESS (type, buf);
|
||||
}
|
||||
@ -238,8 +238,8 @@ store_typed_address (void *buf, struct type *type, CORE_ADDR addr)
|
||||
if (TYPE_CODE (type) != TYPE_CODE_PTR
|
||||
&& TYPE_CODE (type) != TYPE_CODE_REF)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"store_typed_address: "
|
||||
"type is not a pointer or reference");
|
||||
_("store_typed_address: "
|
||||
"type is not a pointer or reference"));
|
||||
|
||||
ADDRESS_TO_POINTER (type, buf, addr);
|
||||
}
|
||||
|
@ -291,7 +291,7 @@ fork_inferior (char *exec_file_arg, char *allargs, char **env,
|
||||
pid = vfork ();
|
||||
|
||||
if (pid < 0)
|
||||
perror_with_name ("vfork");
|
||||
perror_with_name (("vfork"));
|
||||
|
||||
if (pid == 0)
|
||||
{
|
||||
|
@ -106,7 +106,7 @@ frame_unwind_find_by_frame (struct frame_info *next_frame, void **this_cache)
|
||||
return entry->unwinder;
|
||||
}
|
||||
}
|
||||
internal_error (__FILE__, __LINE__, "frame_unwind_find_by_frame failed");
|
||||
internal_error (__FILE__, __LINE__, _("frame_unwind_find_by_frame failed"));
|
||||
}
|
||||
|
||||
extern initialize_file_ftype _initialize_frame_unwind; /* -Wmissing-prototypes */
|
||||
|
@ -421,7 +421,7 @@ frame_pc_unwind (struct frame_info *this_frame)
|
||||
pc = gdbarch_unwind_pc (current_gdbarch, this_frame);
|
||||
}
|
||||
else
|
||||
internal_error (__FILE__, __LINE__, "No unwind_pc method");
|
||||
internal_error (__FILE__, __LINE__, _("No unwind_pc method"));
|
||||
this_frame->prev_pc.value = pc;
|
||||
this_frame->prev_pc.p = 1;
|
||||
if (frame_debug)
|
||||
@ -1511,7 +1511,7 @@ frame_sp_unwind (struct frame_info *next_frame)
|
||||
frame_unwind_unsigned_register (next_frame, SP_REGNUM, &sp);
|
||||
return sp;
|
||||
}
|
||||
internal_error (__FILE__, __LINE__, "Missing unwind SP method");
|
||||
internal_error (__FILE__, __LINE__, _("Missing unwind SP method"));
|
||||
}
|
||||
|
||||
extern initialize_file_ftype _initialize_frame; /* -Wmissing-prototypes */
|
||||
|
@ -195,7 +195,7 @@ frv_linux_sigcontext_reg_addr (struct frame_info *next_frame, int regno,
|
||||
sc_addr += 12;
|
||||
}
|
||||
else
|
||||
internal_error (__FILE__, __LINE__, "not a signal trampoline");
|
||||
internal_error (__FILE__, __LINE__, _("not a signal trampoline"));
|
||||
|
||||
if (sc_addr_cache_ptr)
|
||||
*sc_addr_cache_ptr = sc_addr;
|
||||
|
@ -421,7 +421,7 @@ frv_register_sim_regno (int reg)
|
||||
return SIM_FRV_SPR0_REGNUM + spr_reg_offset;
|
||||
}
|
||||
|
||||
internal_error (__FILE__, __LINE__, "Bad register number %d", reg);
|
||||
internal_error (__FILE__, __LINE__, _("Bad register number %d"), reg);
|
||||
}
|
||||
|
||||
static const unsigned char *
|
||||
@ -1050,7 +1050,7 @@ frv_extract_return_value (struct type *type, struct regcache *regcache,
|
||||
store_unsigned_integer ((bfd_byte *) valbuf + 4, 4, regval);
|
||||
}
|
||||
else
|
||||
internal_error (__FILE__, __LINE__, "Illegal return value length: %d", len);
|
||||
internal_error (__FILE__, __LINE__, _("Illegal return value length: %d"), len);
|
||||
}
|
||||
|
||||
static CORE_ADDR
|
||||
@ -1258,7 +1258,7 @@ frv_store_return_value (struct type *type, struct regcache *regcache,
|
||||
}
|
||||
else
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"Don't know how to return a %d-byte value.", len);
|
||||
_("Don't know how to return a %d-byte value."), len);
|
||||
}
|
||||
|
||||
|
||||
|
@ -47,11 +47,11 @@
|
||||
want to continue, dump core, or just exit. */
|
||||
#if defined (ASSERT_FUNCTION)
|
||||
#define gdb_assert_fail(assertion, file, line, function) \
|
||||
internal_error (file, line, "%s: Assertion `%s' failed.", \
|
||||
internal_error (file, line, _("%s: Assertion `%s' failed."), \
|
||||
function, assertion)
|
||||
#else
|
||||
#define gdb_assert_fail(assertion, file, line, function) \
|
||||
internal_error (file, line, "Assertion `%s' failed.", \
|
||||
internal_error (file, line, _("Assertion `%s' failed."), \
|
||||
assertion)
|
||||
#endif
|
||||
|
||||
|
@ -613,7 +613,7 @@ verify_gdbarch (struct gdbarch *current_gdbarch)
|
||||
make_cleanup (xfree, buf);
|
||||
if (strlen (buf) > 0)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"verify_gdbarch: the following are invalid ...%s",
|
||||
_("verify_gdbarch: the following are invalid ...%s"),
|
||||
buf);
|
||||
do_cleanups (cleanups);
|
||||
}
|
||||
@ -3940,7 +3940,7 @@ gdbarch_printable_names (void)
|
||||
ap = bfd_lookup_arch (rego->bfd_architecture, 0);
|
||||
if (ap == NULL)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"gdbarch_architecture_names: multi-arch unknown");
|
||||
_("gdbarch_architecture_names: multi-arch unknown"));
|
||||
do
|
||||
{
|
||||
append_name (&arches, &nr_arches, ap->printable_name);
|
||||
|
@ -1353,7 +1353,7 @@ get_destructor_fn_field (struct type *t, int *method_indexp, int *field_indexp)
|
||||
static void
|
||||
stub_noname_complaint (void)
|
||||
{
|
||||
complaint (&symfile_complaints, "stub type has NULL name");
|
||||
complaint (&symfile_complaints, _("stub type has NULL name"));
|
||||
}
|
||||
|
||||
/* Added by Bryan Boreham, Kewill, Sun Sep 17 18:07:17 1989.
|
||||
|
@ -2113,7 +2113,7 @@ gnu_attach (char *args, int from_tty)
|
||||
struct inf *inf = cur_inf ();
|
||||
|
||||
if (!args)
|
||||
error_no_arg ("process-id to attach");
|
||||
error_no_arg (_("process-id to attach"));
|
||||
|
||||
pid = atoi (args);
|
||||
|
||||
|
@ -472,7 +472,7 @@ fetch_register (int regno)
|
||||
i387_supply_fsave (current_regcache, regno, &npx);
|
||||
else
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"Invalid register no. %d in fetch_register.", regno);
|
||||
_("Invalid register no. %d in fetch_register."), regno);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -498,7 +498,7 @@ store_register (int regno)
|
||||
i387_fill_fsave ((char *) &npx, regno);
|
||||
else
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"Invalid register no. %d in store_register.", regno);
|
||||
_("Invalid register no. %d in store_register."), regno);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -604,7 +604,7 @@ go32_create_inferior (char *exec_file, char *args, char **env, int from_tty)
|
||||
/* Init command line storage. */
|
||||
if (redir_debug_init (&child_cmd) == -1)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"Cannot allocate redirection storage: not enough memory.\n");
|
||||
_("Cannot allocate redirection storage: not enough memory.\n"));
|
||||
|
||||
/* Parse the command line and create redirections. */
|
||||
if (strpbrk (args, "<>"))
|
||||
@ -695,7 +695,7 @@ go32_set_dr (int i, CORE_ADDR addr)
|
||||
{
|
||||
if (i < 0 || i > 3)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"Invalid register %d in go32_set_dr.\n", i);
|
||||
_("Invalid register %d in go32_set_dr.\n"), i);
|
||||
D_REGS[i] = addr;
|
||||
}
|
||||
|
||||
@ -890,7 +890,7 @@ init_go32_ops (void)
|
||||
/* Initialize child's command line storage. */
|
||||
if (redir_debug_init (&child_cmd) == -1)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"Cannot allocate redirection storage: not enough memory.\n");
|
||||
_("Cannot allocate redirection storage: not enough memory.\n"));
|
||||
|
||||
/* We are always processing GCC-compiled programs. */
|
||||
processing_gcc_compilation = 2;
|
||||
@ -1875,7 +1875,7 @@ go32_pte_for_address (char *arg, int from_tty)
|
||||
addr = parse_and_eval_address (arg);
|
||||
}
|
||||
if (!addr)
|
||||
error_no_arg ("linear address");
|
||||
error_no_arg (_("linear address"));
|
||||
|
||||
pdbr = get_cr3 ();
|
||||
if (!pdbr)
|
||||
|
@ -2762,7 +2762,7 @@ hppa_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
||||
hppa64_cannot_store_register);
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "Unsupported address size: %d",
|
||||
internal_error (__FILE__, __LINE__, _("Unsupported address size: %d"),
|
||||
tdep->bytes_per_address);
|
||||
}
|
||||
|
||||
@ -2814,7 +2814,7 @@ hppa_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
||||
set_gdbarch_frame_align (gdbarch, hppa64_frame_align);
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "bad switch");
|
||||
internal_error (__FILE__, __LINE__, _("bad switch"));
|
||||
}
|
||||
|
||||
/* Struct return methods. */
|
||||
@ -2827,7 +2827,7 @@ hppa_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
||||
set_gdbarch_return_value (gdbarch, hppa64_return_value);
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "bad switch");
|
||||
internal_error (__FILE__, __LINE__, _("bad switch"));
|
||||
}
|
||||
|
||||
set_gdbarch_breakpoint_from_pc (gdbarch, hppa_breakpoint_from_pc);
|
||||
|
@ -90,7 +90,7 @@ fetch_inferior_registers (int regnum)
|
||||
|
||||
if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
||||
perror_with_name ("Couldn't get registers");
|
||||
perror_with_name (_("Couldn't get registers"));
|
||||
|
||||
hppabsd_supply_gregset (regcache, ®s);
|
||||
}
|
||||
@ -108,12 +108,12 @@ store_inferior_registers (int regnum)
|
||||
|
||||
if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
||||
perror_with_name ("Couldn't get registers");
|
||||
perror_with_name (_("Couldn't get registers"));
|
||||
|
||||
hppabsd_collect_gregset (current_regcache, ®s, regnum);
|
||||
|
||||
if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
||||
perror_with_name ("Couldn't write registers");
|
||||
perror_with_name (_("Couldn't write registers"));
|
||||
}
|
||||
}
|
||||
|
18
gdb/hpread.c
18
gdb/hpread.c
@ -118,7 +118,7 @@ struct symloc
|
||||
static void
|
||||
lbrac_unmatched_complaint (int arg1)
|
||||
{
|
||||
complaint (&symfile_complaints, "unmatched N_LBRAC before symtab pos %d",
|
||||
complaint (&symfile_complaints, _("unmatched N_LBRAC before symtab pos %d"),
|
||||
arg1);
|
||||
}
|
||||
|
||||
@ -126,7 +126,7 @@ static void
|
||||
lbrac_mismatch_complaint (int arg1)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"N_LBRAC/N_RBRAC symbol mismatch at symtab pos %d", arg1);
|
||||
_("N_LBRAC/N_RBRAC symbol mismatch at symtab pos %d"), arg1);
|
||||
}
|
||||
|
||||
/* To generate dumping code, uncomment this define. The dumping
|
||||
@ -303,7 +303,7 @@ set_namestring (union dnttentry *sym, char **namep, struct objfile *objfile)
|
||||
*namep = "";
|
||||
else if ((unsigned) sym->dsfile.name >= VT_SIZE (objfile))
|
||||
{
|
||||
complaint (&symfile_complaints, "bad string table offset in symbol %d",
|
||||
complaint (&symfile_complaints, _("bad string table offset in symbol %d"),
|
||||
symnum);
|
||||
*namep = "";
|
||||
}
|
||||
@ -4769,7 +4769,7 @@ hpread_type_lookup (dnttpointer hp_type, struct objfile *objfile)
|
||||
dn_bufp = hpread_get_lntt (dn_bufp->dtype.type.dnttp.index, objfile);
|
||||
else
|
||||
{
|
||||
complaint (&symfile_complaints, "error in hpread_type_lookup().");
|
||||
complaint (&symfile_complaints, _("error in hpread_type_lookup()."));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -5633,7 +5633,7 @@ hpread_process_one_debug_symbol (union dnttentry *dn_bufp, char *name,
|
||||
case DNTT_TYPE_COMMON:
|
||||
/* End a FORTRAN common block. We don't currently handle these */
|
||||
complaint (&symfile_complaints,
|
||||
"unhandled symbol in hp-symtab-read.c: DNTT_TYPE_COMMON/DNTT_TYPE_END.\n");
|
||||
_("unhandled symbol in hp-symtab-read.c: DNTT_TYPE_COMMON/DNTT_TYPE_END.\n"));
|
||||
break;
|
||||
|
||||
case DNTT_TYPE_CLASS_SCOPE:
|
||||
@ -5661,7 +5661,7 @@ hpread_process_one_debug_symbol (union dnttentry *dn_bufp, char *name,
|
||||
|
||||
default:
|
||||
complaint (&symfile_complaints,
|
||||
"internal error in hp-symtab-read.c: Unexpected DNTT_TYPE_END kind.");
|
||||
_("internal error in hp-symtab-read.c: Unexpected DNTT_TYPE_END kind."));
|
||||
break;
|
||||
}
|
||||
break;
|
||||
@ -5882,7 +5882,7 @@ hpread_process_one_debug_symbol (union dnttentry *dn_bufp, char *name,
|
||||
dn_bufp = hpread_get_lntt (dn_bufp->dtag.type.dnttp.index, objfile);
|
||||
else
|
||||
{
|
||||
complaint (&symfile_complaints, "error processing class tagdef");
|
||||
complaint (&symfile_complaints, _("error processing class tagdef"));
|
||||
return;
|
||||
}
|
||||
if (dn_bufp->dblock.kind == DNTT_TYPE_CLASS ||
|
||||
@ -5991,7 +5991,7 @@ hpread_process_one_debug_symbol (union dnttentry *dn_bufp, char *name,
|
||||
case DNTT_TYPE_COMMON:
|
||||
/* FORTRAN common. Not yet handled. */
|
||||
complaint (&symfile_complaints,
|
||||
"unhandled symbol in hp-symtab-read.c: DNTT_TYPE_COMMON.");
|
||||
_("unhandled symbol in hp-symtab-read.c: DNTT_TYPE_COMMON."));
|
||||
break;
|
||||
|
||||
/* DNTT_TYPE_COBSTRUCT is not handled by GDB. */
|
||||
@ -6004,7 +6004,7 @@ hpread_process_one_debug_symbol (union dnttentry *dn_bufp, char *name,
|
||||
* Anyway, not yet handled.
|
||||
*/
|
||||
complaint (&symfile_complaints,
|
||||
"unhandled symbol in hp-symtab-read.c: DNTT_TYPE_BLOCKDATA.");
|
||||
_("unhandled symbol in hp-symtab-read.c: DNTT_TYPE_BLOCKDATA."));
|
||||
break;
|
||||
|
||||
case DNTT_TYPE_CLASS_SCOPE:
|
||||
|
@ -272,7 +272,7 @@ fetch_regs (int tid)
|
||||
return;
|
||||
}
|
||||
|
||||
perror_with_name ("Couldn't get registers");
|
||||
perror_with_name (_("Couldn't get registers"));
|
||||
}
|
||||
|
||||
supply_gregset (®s);
|
||||
@ -287,12 +287,12 @@ store_regs (int tid, int regno)
|
||||
elf_gregset_t regs;
|
||||
|
||||
if (ptrace (PTRACE_GETREGS, tid, 0, (int) ®s) < 0)
|
||||
perror_with_name ("Couldn't get registers");
|
||||
perror_with_name (_("Couldn't get registers"));
|
||||
|
||||
fill_gregset (®s, regno);
|
||||
|
||||
if (ptrace (PTRACE_SETREGS, tid, 0, (int) ®s) < 0)
|
||||
perror_with_name ("Couldn't write registers");
|
||||
perror_with_name (_("Couldn't write registers"));
|
||||
}
|
||||
|
||||
#else
|
||||
@ -335,7 +335,7 @@ fetch_fpregs (int tid)
|
||||
elf_fpregset_t fpregs;
|
||||
|
||||
if (ptrace (PTRACE_GETFPREGS, tid, 0, (int) &fpregs) < 0)
|
||||
perror_with_name ("Couldn't get floating point status");
|
||||
perror_with_name (_("Couldn't get floating point status"));
|
||||
|
||||
supply_fpregset (&fpregs);
|
||||
}
|
||||
@ -349,12 +349,12 @@ store_fpregs (int tid, int regno)
|
||||
elf_fpregset_t fpregs;
|
||||
|
||||
if (ptrace (PTRACE_GETFPREGS, tid, 0, (int) &fpregs) < 0)
|
||||
perror_with_name ("Couldn't get floating point status");
|
||||
perror_with_name (_("Couldn't get floating point status"));
|
||||
|
||||
fill_fpregset (&fpregs, regno);
|
||||
|
||||
if (ptrace (PTRACE_SETFPREGS, tid, 0, (int) &fpregs) < 0)
|
||||
perror_with_name ("Couldn't write floating point status");
|
||||
perror_with_name (_("Couldn't write floating point status"));
|
||||
}
|
||||
|
||||
#else
|
||||
@ -408,7 +408,7 @@ fetch_fpxregs (int tid)
|
||||
return 0;
|
||||
}
|
||||
|
||||
perror_with_name ("Couldn't read floating-point and SSE registers");
|
||||
perror_with_name (_("Couldn't read floating-point and SSE registers"));
|
||||
}
|
||||
|
||||
supply_fpxregset (&fpxregs);
|
||||
@ -435,13 +435,13 @@ store_fpxregs (int tid, int regno)
|
||||
return 0;
|
||||
}
|
||||
|
||||
perror_with_name ("Couldn't read floating-point and SSE registers");
|
||||
perror_with_name (_("Couldn't read floating-point and SSE registers"));
|
||||
}
|
||||
|
||||
fill_fpxregset (&fpxregs, regno);
|
||||
|
||||
if (ptrace (PTRACE_SETFPXREGS, tid, 0, &fpxregs) == -1)
|
||||
perror_with_name ("Couldn't write floating-point and SSE registers");
|
||||
perror_with_name (_("Couldn't write floating-point and SSE registers"));
|
||||
|
||||
return 1;
|
||||
}
|
||||
@ -545,7 +545,7 @@ fetch_inferior_registers (int regno)
|
||||
}
|
||||
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"Got request for bad register number %d.", regno);
|
||||
_("Got request for bad register number %d."), regno);
|
||||
}
|
||||
|
||||
/* Store register REGNO back into the child process. If REGNO is -1,
|
||||
@ -605,7 +605,7 @@ store_inferior_registers (int regno)
|
||||
}
|
||||
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"Got request to store bad register number %d.", regno);
|
||||
_("Got request to store bad register number %d."), regno);
|
||||
}
|
||||
|
||||
|
||||
@ -632,7 +632,7 @@ i386_linux_dr_get (int regnum)
|
||||
offsetof (struct user, u_debugreg[regnum]), 0);
|
||||
if (errno != 0)
|
||||
#if 0
|
||||
perror_with_name ("Couldn't read debug register");
|
||||
perror_with_name (_("Couldn't read debug register"));
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
@ -654,7 +654,7 @@ i386_linux_dr_set (int regnum, unsigned long value)
|
||||
ptrace (PTRACE_POKEUSER, tid,
|
||||
offsetof (struct user, u_debugreg[regnum]), value);
|
||||
if (errno != 0)
|
||||
perror_with_name ("Couldn't write debug register");
|
||||
perror_with_name (_("Couldn't write debug register"));
|
||||
}
|
||||
|
||||
void
|
||||
@ -810,7 +810,7 @@ child_resume (ptid_t ptid, int step, enum target_signal signal)
|
||||
}
|
||||
|
||||
if (ptrace (request, pid, 0, target_signal_to_host (signal)) == -1)
|
||||
perror_with_name ("ptrace");
|
||||
perror_with_name (("ptrace"));
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -310,8 +310,8 @@ i386_length_and_rw_bits (int len, enum target_hw_bp_type type)
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "\
|
||||
Invalid hardware breakpoint type %d in i386_length_and_rw_bits.\n",
|
||||
internal_error (__FILE__, __LINE__, _("\
|
||||
Invalid hardware breakpoint type %d in i386_length_and_rw_bits.\n"),
|
||||
(int) type);
|
||||
}
|
||||
|
||||
@ -327,8 +327,8 @@ Invalid hardware breakpoint type %d in i386_length_and_rw_bits.\n",
|
||||
if (TARGET_HAS_DR_LEN_8)
|
||||
return (DR_LEN_8 | rw);
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "\
|
||||
Invalid hardware breakpoint length %d in i386_length_and_rw_bits.\n", len);
|
||||
internal_error (__FILE__, __LINE__, _("\
|
||||
Invalid hardware breakpoint length %d in i386_length_and_rw_bits.\n"), len);
|
||||
}
|
||||
}
|
||||
|
||||
@ -478,8 +478,8 @@ i386_handle_nonaligned_watchpoint (i386_wp_op_t what, CORE_ADDR addr, int len,
|
||||
else if (what == WP_REMOVE)
|
||||
status = i386_remove_aligned_watchpoint (addr, len_rw);
|
||||
else
|
||||
internal_error (__FILE__, __LINE__, "\
|
||||
Invalid value %d of operation in i386_handle_nonaligned_watchpoint.\n",
|
||||
internal_error (__FILE__, __LINE__, _("\
|
||||
Invalid value %d of operation in i386_handle_nonaligned_watchpoint.\n"),
|
||||
(int)what);
|
||||
/* We keep the loop going even after a failure, because some
|
||||
of the other aligned watchpoints might still succeed
|
||||
|
@ -1320,7 +1320,7 @@ i386_extract_return_value (struct gdbarch *gdbarch, struct type *type,
|
||||
}
|
||||
else
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"Cannot extract return value of %d bytes long.", len);
|
||||
_("Cannot extract return value of %d bytes long."), len);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1388,7 +1388,7 @@ i386_store_return_value (struct gdbarch *gdbarch, struct type *type,
|
||||
}
|
||||
else
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"Cannot store return value of %d bytes long.", len);
|
||||
_("Cannot store return value of %d bytes long."), len);
|
||||
}
|
||||
|
||||
#undef I387_ST0_REGNUM
|
||||
|
@ -140,7 +140,7 @@ i386bsd_fetch_inferior_registers (int regnum)
|
||||
|
||||
if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
||||
perror_with_name ("Couldn't get registers");
|
||||
perror_with_name (_("Couldn't get registers"));
|
||||
|
||||
i386bsd_supply_gregset (current_regcache, ®s);
|
||||
if (regnum != -1)
|
||||
@ -164,14 +164,14 @@ i386bsd_fetch_inferior_registers (int regnum)
|
||||
{
|
||||
if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
|
||||
perror_with_name ("Couldn't get floating point status");
|
||||
perror_with_name (_("Couldn't get floating point status"));
|
||||
|
||||
i387_supply_fsave (current_regcache, -1, &fpregs);
|
||||
}
|
||||
#else
|
||||
if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
|
||||
perror_with_name ("Couldn't get floating point status");
|
||||
perror_with_name (_("Couldn't get floating point status"));
|
||||
|
||||
i387_supply_fsave (current_regcache, -1, &fpregs);
|
||||
#endif
|
||||
@ -190,13 +190,13 @@ i386bsd_store_inferior_registers (int regnum)
|
||||
|
||||
if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
||||
perror_with_name ("Couldn't get registers");
|
||||
perror_with_name (_("Couldn't get registers"));
|
||||
|
||||
i386bsd_collect_gregset (current_regcache, ®s, regnum);
|
||||
|
||||
if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
||||
perror_with_name ("Couldn't write registers");
|
||||
perror_with_name (_("Couldn't write registers"));
|
||||
|
||||
if (regnum != -1)
|
||||
return;
|
||||
@ -218,7 +218,7 @@ i386bsd_store_inferior_registers (int regnum)
|
||||
|
||||
if (ptrace (PT_SETXMMREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) xmmregs, 0) == -1)
|
||||
perror_with_name ("Couldn't write XMM registers");
|
||||
perror_with_name (_("Couldn't write XMM registers"));
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -226,13 +226,13 @@ i386bsd_store_inferior_registers (int regnum)
|
||||
#endif
|
||||
if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
|
||||
perror_with_name ("Couldn't get floating point status");
|
||||
perror_with_name (_("Couldn't get floating point status"));
|
||||
|
||||
i387_collect_fsave (current_regcache, regnum, &fpregs);
|
||||
|
||||
if (ptrace (PT_SETFPREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
|
||||
perror_with_name ("Couldn't write floating point status");
|
||||
perror_with_name (_("Couldn't write floating point status"));
|
||||
#ifdef HAVE_PT_GETXMMREGS
|
||||
}
|
||||
#endif
|
||||
@ -271,7 +271,7 @@ i386bsd_dr_set (int regnum, unsigned int value)
|
||||
|
||||
if (ptrace (PT_GETDBREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) &dbregs, 0) == -1)
|
||||
perror_with_name ("Couldn't get debug registers");
|
||||
perror_with_name (_("Couldn't get debug registers"));
|
||||
|
||||
/* For some mysterious reason, some of the reserved bits in the
|
||||
debug control register get set. Mask these off, otherwise the
|
||||
@ -282,7 +282,7 @@ i386bsd_dr_set (int regnum, unsigned int value)
|
||||
|
||||
if (ptrace (PT_SETDBREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) &dbregs, 0) == -1)
|
||||
perror_with_name ("Couldn't write debug registers");
|
||||
perror_with_name (_("Couldn't write debug registers"));
|
||||
}
|
||||
|
||||
void
|
||||
@ -320,7 +320,7 @@ i386bsd_dr_get_status (void)
|
||||
if (ptrace (PT_GETDBREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) &dbregs, 0) == -1)
|
||||
#if 0
|
||||
perror_with_name ("Couldn't read debug registers");
|
||||
perror_with_name (_("Couldn't read debug registers"));
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
|
@ -75,7 +75,7 @@ i386fbsd_resume (ptid_t ptid, int step, enum target_signal signal)
|
||||
written a new PC value to the child.) */
|
||||
if (ptrace (request, pid, (caddr_t) 1,
|
||||
target_signal_to_host (signal)) == -1)
|
||||
perror_with_name ("ptrace");
|
||||
perror_with_name (("ptrace"));
|
||||
}
|
||||
|
||||
|
||||
|
@ -95,7 +95,7 @@ inf_ptrace_resume (ptid_t ptid, int step, enum target_signal signal)
|
||||
errno = 0;
|
||||
ptrace (request, pid, (PTRACE_TYPE_ARG3) 1, target_signal_to_host (signal));
|
||||
if (errno != 0)
|
||||
perror_with_name ("ptrace");
|
||||
perror_with_name (("ptrace"));
|
||||
}
|
||||
|
||||
/* Wait for child to do something. Return pid of child, or -1 in case
|
||||
@ -186,7 +186,7 @@ inf_ptrace_attach (char *args, int from_tty)
|
||||
char *dummy;
|
||||
|
||||
if (!args)
|
||||
error_no_arg ("process-id to attach");
|
||||
error_no_arg (_("process-id to attach"));
|
||||
|
||||
dummy = args;
|
||||
pid = strtol (args, &dummy, 0);
|
||||
@ -215,7 +215,7 @@ inf_ptrace_attach (char *args, int from_tty)
|
||||
errno = 0;
|
||||
ptrace (PT_ATTACH, pid, (PTRACE_TYPE_ARG3) 0, 0);
|
||||
if (errno != 0)
|
||||
perror_with_name ("ptrace");
|
||||
perror_with_name (("ptrace"));
|
||||
attach_flag = 1;
|
||||
#else
|
||||
error (_("This system does not support attaching to a process"));
|
||||
@ -265,7 +265,7 @@ inf_ptrace_detach (char *args, int from_tty)
|
||||
errno = 0;
|
||||
ptrace (PT_DETACH, pid, (PTRACE_TYPE_ARG3) 1, sig);
|
||||
if (errno != 0)
|
||||
perror_with_name ("ptrace");
|
||||
perror_with_name (("ptrace"));
|
||||
attach_flag = 0;
|
||||
#else
|
||||
error (_("This system does not support detaching from a process"));
|
||||
|
@ -98,17 +98,17 @@ inf_ttrace_enable_syscall_events (pid_t pid)
|
||||
|
||||
if (ttrace (TT_PROC_GET_EVENT_MASK, pid, 0,
|
||||
(uintptr_t)&tte, sizeof tte, 0) == -1)
|
||||
perror_with_name ("ttrace");
|
||||
perror_with_name (("ttrace"));
|
||||
|
||||
tte.tte_events |= (TTEVT_SYSCALL_ENTRY | TTEVT_SYSCALL_RETURN);
|
||||
|
||||
if (ttrace (TT_PROC_SET_EVENT_MASK, pid, 0,
|
||||
(uintptr_t)&tte, sizeof tte, 0) == -1)
|
||||
perror_with_name ("ttrace");
|
||||
perror_with_name (("ttrace"));
|
||||
|
||||
if (ttrace (TT_PROC_GET_FIRST_LWP_STATE, pid, 0,
|
||||
(uintptr_t)&tts, sizeof tts, 0) == -1)
|
||||
perror_with_name ("ttrace");
|
||||
perror_with_name (("ttrace"));
|
||||
|
||||
if (tts.tts_flags & TTS_INSYSCALL)
|
||||
inf_ttrace_num_lwps_in_syscall++;
|
||||
@ -127,13 +127,13 @@ inf_ttrace_disable_syscall_events (pid_t pid)
|
||||
|
||||
if (ttrace (TT_PROC_GET_EVENT_MASK, pid, 0,
|
||||
(uintptr_t)&tte, sizeof tte, 0) == -1)
|
||||
perror_with_name ("ttrace");
|
||||
perror_with_name (("ttrace"));
|
||||
|
||||
tte.tte_events &= ~(TTEVT_SYSCALL_ENTRY | TTEVT_SYSCALL_RETURN);
|
||||
|
||||
if (ttrace (TT_PROC_SET_EVENT_MASK, pid, 0,
|
||||
(uintptr_t)&tte, sizeof tte, 0) == -1)
|
||||
perror_with_name ("ttrace");
|
||||
perror_with_name (("ttrace"));
|
||||
|
||||
inf_ttrace_num_lwps_in_syscall = 0;
|
||||
}
|
||||
@ -190,7 +190,7 @@ inf_ttrace_add_page (pid_t pid, CORE_ADDR addr)
|
||||
|
||||
if (ttrace (TT_PROC_GET_MPROTECT, pid, 0,
|
||||
addr, 0, (uintptr_t)&prot) == -1)
|
||||
perror_with_name ("ttrace");
|
||||
perror_with_name (("ttrace"));
|
||||
|
||||
page = XMALLOC (struct inf_ttrace_page);
|
||||
page->addr = addr;
|
||||
@ -209,7 +209,7 @@ inf_ttrace_add_page (pid_t pid, CORE_ADDR addr)
|
||||
{
|
||||
if (ttrace (TT_PROC_SET_MPROTECT, pid, 0,
|
||||
addr, pagesize, prot & ~PROT_WRITE) == -1)
|
||||
perror_with_name ("ttrace");
|
||||
perror_with_name (("ttrace"));
|
||||
}
|
||||
}
|
||||
|
||||
@ -249,7 +249,7 @@ inf_ttrace_remove_page (pid_t pid, CORE_ADDR addr)
|
||||
{
|
||||
if (ttrace (TT_PROC_SET_MPROTECT, pid, 0,
|
||||
addr, pagesize, page->prot) == -1)
|
||||
perror_with_name ("ttrace");
|
||||
perror_with_name (("ttrace"));
|
||||
}
|
||||
|
||||
inf_ttrace_page_dict.count--;
|
||||
@ -283,7 +283,7 @@ inf_ttrace_mask_page_protections (pid_t pid, int prot)
|
||||
{
|
||||
if (ttrace (TT_PROC_SET_MPROTECT, pid, 0,
|
||||
page->addr, pagesize, page->prot & ~prot) == -1)
|
||||
perror_with_name ("ttrace");
|
||||
perror_with_name (("ttrace"));
|
||||
|
||||
page = page->next;
|
||||
}
|
||||
@ -379,7 +379,7 @@ inf_ttrace_stopped_by_watchpoint (void)
|
||||
{
|
||||
if (ttrace (TT_LWP_GET_STATE, pid, lwpid,
|
||||
(uintptr_t)&tts, sizeof tts, 0) == -1)
|
||||
perror_with_name ("ttrace");
|
||||
perror_with_name (("ttrace"));
|
||||
|
||||
if (tts.tts_event == TTEVT_SIGNAL
|
||||
&& tts.tts_u.tts_signal.tts_signo == SIGBUS)
|
||||
@ -435,15 +435,15 @@ inf_ttrace_me (void)
|
||||
|
||||
/* "Trace me, Dr. Memory!" */
|
||||
if (ttrace (TT_PROC_SETTRC, 0, 0, 0, TT_VERSION, 0) == -1)
|
||||
perror_with_name ("ttrace");
|
||||
perror_with_name (("ttrace"));
|
||||
|
||||
/* Tell our parent that we are ready to be traced. */
|
||||
if (write (inf_ttrace_pfd1[1], &c, sizeof c) != sizeof c)
|
||||
perror_with_name ("write");
|
||||
perror_with_name (("write"));
|
||||
|
||||
/* Wait until our parent has set the initial event mask. */
|
||||
if (read (inf_ttrace_pfd2[0], &c, sizeof c) != sizeof c)
|
||||
perror_with_name ("read");
|
||||
perror_with_name (("read"));
|
||||
|
||||
do_cleanups (old_chain);
|
||||
}
|
||||
@ -459,7 +459,7 @@ inf_ttrace_him (int pid)
|
||||
|
||||
/* Wait until our child is ready to be traced. */
|
||||
if (read (inf_ttrace_pfd1[0], &c, sizeof c) != sizeof c)
|
||||
perror_with_name ("read");
|
||||
perror_with_name (("read"));
|
||||
|
||||
/* Set the initial event mask. */
|
||||
memset (&tte, 0, sizeof (tte));
|
||||
@ -471,11 +471,11 @@ inf_ttrace_him (int pid)
|
||||
tte.tte_opts = TTEO_NOSTRCCHLD;
|
||||
if (ttrace (TT_PROC_SET_EVENT_MASK, pid, 0,
|
||||
(uintptr_t)&tte, sizeof tte, 0) == -1)
|
||||
perror_with_name ("ttrace");
|
||||
perror_with_name (("ttrace"));
|
||||
|
||||
/* Tell our child that we have set the initial event mask. */
|
||||
if (write (inf_ttrace_pfd2[1], &c, sizeof c) != sizeof c)
|
||||
perror_with_name ("write");
|
||||
perror_with_name (("write"));
|
||||
|
||||
do_cleanups (old_chain);
|
||||
|
||||
@ -526,7 +526,7 @@ inf_ttrace_kill_inferior (void)
|
||||
return;
|
||||
|
||||
if (ttrace (TT_PROC_EXIT, pid, 0, 0, 0, 0) == -1)
|
||||
perror_with_name ("ttrace");
|
||||
perror_with_name (("ttrace"));
|
||||
/* ??? Is it necessary to call ttrace_wait() here? */
|
||||
target_mourn_inferior ();
|
||||
}
|
||||
@ -596,7 +596,7 @@ inf_ttrace_attach (char *args, int from_tty)
|
||||
gdb_assert (inf_ttrace_num_lwps_in_syscall == 0);
|
||||
|
||||
if (ttrace (TT_PROC_ATTACH, pid, 0, TT_KILL_ON_EXIT, TT_VERSION, 0) == -1)
|
||||
perror_with_name ("ttrace");
|
||||
perror_with_name (("ttrace"));
|
||||
attach_flag = 1;
|
||||
|
||||
/* Set the initial event mask. */
|
||||
@ -609,7 +609,7 @@ inf_ttrace_attach (char *args, int from_tty)
|
||||
tte.tte_opts = TTEO_NOSTRCCHLD;
|
||||
if (ttrace (TT_PROC_SET_EVENT_MASK, pid, 0,
|
||||
(uintptr_t)&tte, sizeof tte, 0) == -1)
|
||||
perror_with_name ("ttrace");
|
||||
perror_with_name (("ttrace"));
|
||||
|
||||
inferior_ptid = pid_to_ptid (pid);
|
||||
push_target (ttrace_ops_hack);
|
||||
@ -640,7 +640,7 @@ inf_ttrace_detach (char *args, int from_tty)
|
||||
/* ??? The HP-UX 11.0 ttrace(2) manual page doesn't mention that we
|
||||
can pass a signal number here. Does this really work? */
|
||||
if (ttrace (TT_PROC_DETACH, pid, 0, 0, sig, 0) == -1)
|
||||
perror_with_name ("ttrace");
|
||||
perror_with_name (("ttrace"));
|
||||
|
||||
inf_ttrace_num_lwps = 0;
|
||||
inf_ttrace_num_lwps_in_syscall = 0;
|
||||
@ -658,7 +658,7 @@ inf_ttrace_resume_callback (struct thread_info *info, void *arg)
|
||||
lwpid_t lwpid = ptid_get_lwp (info->ptid);
|
||||
|
||||
if (ttrace (TT_LWP_CONTINUE, pid, lwpid, TT_NOPC, 0, 0) == -1)
|
||||
perror_with_name ("ttrace");
|
||||
perror_with_name (("ttrace"));
|
||||
}
|
||||
|
||||
return 0;
|
||||
@ -679,7 +679,7 @@ inf_ttrace_resume (ptid_t ptid, int step, enum target_signal signal)
|
||||
}
|
||||
|
||||
if (ttrace (request, pid, lwpid, TT_NOPC, sig, 0) == -1)
|
||||
perror_with_name ("ttrace");
|
||||
perror_with_name (("ttrace"));
|
||||
|
||||
if (ptid_equal (ptid, minus_one_ptid) && inf_ttrace_num_lwps > 0)
|
||||
{
|
||||
@ -821,7 +821,7 @@ inf_ttrace_wait (ptid_t ptid, struct target_waitstatus *ourstatus)
|
||||
|
||||
/* Make sure all threads within the process are stopped. */
|
||||
if (ttrace (TT_PROC_STOP, tts.tts_pid, 0, 0, 0, 0) == -1)
|
||||
perror_with_name ("ttrace");
|
||||
perror_with_name (("ttrace"));
|
||||
|
||||
/* HACK: Twiddle INFERIOR_PTID such that the initial thread of a
|
||||
process isn't recognized as a new thread. */
|
||||
|
@ -481,7 +481,7 @@ call_function_by_hand (struct value *function, int nargs, struct value **args)
|
||||
break;
|
||||
}
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "bad switch");
|
||||
internal_error (__FILE__, __LINE__, _("bad switch"));
|
||||
}
|
||||
|
||||
if (nargs < TYPE_NFIELDS (ftype))
|
||||
@ -825,7 +825,7 @@ the function call)."), name);
|
||||
}
|
||||
|
||||
/* The above code errors out, so ... */
|
||||
internal_error (__FILE__, __LINE__, "... should not be here");
|
||||
internal_error (__FILE__, __LINE__, _("... should not be here"));
|
||||
}
|
||||
|
||||
/* If we get here the called FUNCTION run to completion. */
|
||||
|
20
gdb/infcmd.c
20
gdb/infcmd.c
@ -371,7 +371,7 @@ void
|
||||
tty_command (char *file, int from_tty)
|
||||
{
|
||||
if (file == 0)
|
||||
error_no_arg ("terminal name for running target process");
|
||||
error_no_arg (_("terminal name for running target process"));
|
||||
|
||||
inferior_io_terminal = savestring (file, strlen (file));
|
||||
}
|
||||
@ -841,7 +841,7 @@ jump_command (char *arg, int from_tty)
|
||||
}
|
||||
|
||||
if (!arg)
|
||||
error_no_arg ("starting address");
|
||||
error_no_arg (_("starting address"));
|
||||
|
||||
sals = decode_line_spec_1 (arg, 1);
|
||||
if (sals.nelts != 1)
|
||||
@ -923,7 +923,7 @@ signal_command (char *signum_exp, int from_tty)
|
||||
ERROR_NO_INFERIOR;
|
||||
|
||||
if (!signum_exp)
|
||||
error_no_arg ("signal number");
|
||||
error_no_arg (_("signal number"));
|
||||
|
||||
/* It would be even slicker to make signal names be valid expressions,
|
||||
(the type could be "enum $signal" or some such), then the user could
|
||||
@ -1051,7 +1051,7 @@ advance_command (char *arg, int from_tty)
|
||||
error (_("The program is not running."));
|
||||
|
||||
if (arg == NULL)
|
||||
error_no_arg ("a location");
|
||||
error_no_arg (_("a location"));
|
||||
|
||||
/* Find out whether we must run in the background. */
|
||||
if (arg != NULL)
|
||||
@ -1105,7 +1105,7 @@ print_return_value (int struct_return, struct type *value_type)
|
||||
value = NULL;
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "bad switch");
|
||||
internal_error (__FILE__, __LINE__, _("bad switch"));
|
||||
}
|
||||
|
||||
if (value)
|
||||
@ -1161,7 +1161,7 @@ finish_command_continuation (struct continuation_arg *arg)
|
||||
value_type = TYPE_TARGET_TYPE (SYMBOL_TYPE (function));
|
||||
if (!value_type)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"finish_command: function has no target type");
|
||||
_("finish_command: function has no target type"));
|
||||
|
||||
if (TYPE_CODE (value_type) == TYPE_CODE_VOID)
|
||||
{
|
||||
@ -1286,7 +1286,7 @@ finish_command (char *arg, int from_tty)
|
||||
value_type = TYPE_TARGET_TYPE (SYMBOL_TYPE (function));
|
||||
if (!value_type)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"finish_command: function has no target type");
|
||||
_("finish_command: function has no target type"));
|
||||
|
||||
/* FIXME: Shouldn't we do the cleanups before returning? */
|
||||
if (TYPE_CODE (value_type) == TYPE_CODE_VOID)
|
||||
@ -1389,7 +1389,7 @@ set_environment_command (char *arg, int from_tty)
|
||||
int nullset = 0;
|
||||
|
||||
if (arg == 0)
|
||||
error_no_arg ("environment variable and value");
|
||||
error_no_arg (_("environment variable and value"));
|
||||
|
||||
/* Find seperation between variable name and value */
|
||||
p = (char *) strchr (arg, '=');
|
||||
@ -1413,7 +1413,7 @@ set_environment_command (char *arg, int from_tty)
|
||||
p = val;
|
||||
|
||||
if (p == arg)
|
||||
error_no_arg ("environment variable to set");
|
||||
error_no_arg (_("environment variable to set"));
|
||||
|
||||
if (p == 0 || p[1] == 0)
|
||||
{
|
||||
@ -1451,7 +1451,7 @@ unset_environment_command (char *var, int from_tty)
|
||||
{
|
||||
/* If there is no argument, delete all environment variables.
|
||||
Ask for confirmation if reading from the terminal. */
|
||||
if (!from_tty || query ("Delete all environment variables? "))
|
||||
if (!from_tty || query (_("Delete all environment variables? ")))
|
||||
{
|
||||
free_environ (inferior_environ);
|
||||
inferior_environ = make_environ ();
|
||||
|
@ -681,14 +681,14 @@ void
|
||||
set_sigio_trap (void)
|
||||
{
|
||||
if (target_activity_function)
|
||||
internal_error (__FILE__, __LINE__, "failed internal consistency check");
|
||||
internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
|
||||
}
|
||||
|
||||
void
|
||||
clear_sigio_trap (void)
|
||||
{
|
||||
if (target_activity_function)
|
||||
internal_error (__FILE__, __LINE__, "failed internal consistency check");
|
||||
internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
|
||||
}
|
||||
#endif /* No SIGIO. */
|
||||
|
||||
|
@ -144,7 +144,7 @@ child_resume (ptid_t ptid, int step, enum target_signal signal)
|
||||
errno = 0;
|
||||
ptrace (request, pid, (PTRACE_TYPE_ARG3)1, target_signal_to_host (signal));
|
||||
if (errno != 0)
|
||||
perror_with_name ("ptrace");
|
||||
perror_with_name (("ptrace"));
|
||||
}
|
||||
#endif /* DEPRECATED_CHILD_RESUME */
|
||||
|
||||
@ -158,7 +158,7 @@ attach (int pid)
|
||||
errno = 0;
|
||||
ptrace (PT_ATTACH, pid, (PTRACE_TYPE_ARG3) 0, 0);
|
||||
if (errno != 0)
|
||||
perror_with_name ("ptrace");
|
||||
perror_with_name (("ptrace"));
|
||||
attach_flag = 1;
|
||||
return pid;
|
||||
#else
|
||||
@ -178,7 +178,7 @@ detach (int signal)
|
||||
errno = 0;
|
||||
ptrace (PT_DETACH, pid, (PTRACE_TYPE_ARG3) 1, signal);
|
||||
if (errno != 0)
|
||||
perror_with_name ("ptrace");
|
||||
perror_with_name (("ptrace"));
|
||||
attach_flag = 0;
|
||||
#else
|
||||
error (_("This system does not support detaching from a process"));
|
||||
|
@ -1250,7 +1250,7 @@ handle_inferior_event (struct execution_control_state *ecs)
|
||||
break;
|
||||
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "bad switch");
|
||||
internal_error (__FILE__, __LINE__, _("bad switch"));
|
||||
}
|
||||
ecs->infwait_state = infwait_normal_state;
|
||||
|
||||
@ -2904,7 +2904,7 @@ print_stop_reason (enum inferior_stop_reason stop_reason, int stop_info)
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"print_stop_reason: unrecognized enum value");
|
||||
_("print_stop_reason: unrecognized enum value"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -3045,7 +3045,7 @@ normal_stop (void)
|
||||
do_frame_printing = 0;
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "Unknown value.");
|
||||
internal_error (__FILE__, __LINE__, _("Unknown value."));
|
||||
}
|
||||
/* For mi, have the same behavior every time we stop:
|
||||
print everything but the source line. */
|
||||
@ -3182,7 +3182,7 @@ handle_command (char *args, int from_tty)
|
||||
|
||||
if (args == NULL)
|
||||
{
|
||||
error_no_arg ("signal to handle");
|
||||
error_no_arg (_("signal to handle"));
|
||||
}
|
||||
|
||||
/* Allocate and zero an array of flags for which signals to handle. */
|
||||
|
@ -182,7 +182,7 @@ child_attach (char *args, int from_tty)
|
||||
char *dummy;
|
||||
|
||||
if (!args)
|
||||
error_no_arg ("process-id to attach");
|
||||
error_no_arg (_("process-id to attach"));
|
||||
|
||||
dummy = args;
|
||||
pid = strtol (args, &dummy, 0);
|
||||
|
@ -186,7 +186,7 @@ interp_set (struct interp *interp)
|
||||
{
|
||||
if (old_interp == NULL || !interp_set (old_interp))
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"Failed to initialize new interp \"%s\" %s",
|
||||
_("Failed to initialize new interp \"%s\" %s"),
|
||||
interp->name, "and could not restore old interp!\n");
|
||||
return 0;
|
||||
}
|
||||
|
@ -565,7 +565,7 @@ binop_result_type (struct value *v1, struct value *v2)
|
||||
return l1 > l2 ? VALUE_TYPE (v1) : VALUE_TYPE (v2);
|
||||
break;
|
||||
}
|
||||
internal_error (__FILE__, __LINE__, "failed internal consistency check");
|
||||
internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
|
||||
return (struct type *) 0; /* For lint */
|
||||
}
|
||||
|
||||
@ -884,7 +884,7 @@ type_error (const char *string,...)
|
||||
fprintf_filtered (gdb_stderr, "\n");
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "bad switch");
|
||||
internal_error (__FILE__, __LINE__, _("bad switch"));
|
||||
}
|
||||
va_end (args);
|
||||
}
|
||||
@ -910,7 +910,7 @@ range_error (const char *string,...)
|
||||
fprintf_filtered (gdb_stderr, "\n");
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "bad switch");
|
||||
internal_error (__FILE__, __LINE__, _("bad switch"));
|
||||
}
|
||||
va_end (args);
|
||||
}
|
||||
@ -988,7 +988,7 @@ add_language (const struct language_defn *lang)
|
||||
{
|
||||
fprintf_unfiltered (gdb_stderr, "Magic number of %s language struct wrong\n",
|
||||
lang->la_name);
|
||||
internal_error (__FILE__, __LINE__, "failed internal consistency check");
|
||||
internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
|
||||
}
|
||||
|
||||
if (!languages)
|
||||
|
@ -534,7 +534,7 @@ decode_line_2 (struct symbol *sym_arr[], int nelts, int funfirstline,
|
||||
args = command_line_input (prompt, 0, "overload-choice");
|
||||
|
||||
if (args == 0 || *args == 0)
|
||||
error_no_arg ("one or more choice numbers");
|
||||
error_no_arg (_("one or more choice numbers"));
|
||||
|
||||
i = 0;
|
||||
while (*args)
|
||||
|
@ -193,14 +193,14 @@ linux_test_for_tracefork (int original_pid)
|
||||
|
||||
child_pid = fork ();
|
||||
if (child_pid == -1)
|
||||
perror_with_name ("linux_test_for_tracefork: fork");
|
||||
perror_with_name (("fork"));
|
||||
|
||||
if (child_pid == 0)
|
||||
linux_tracefork_child ();
|
||||
|
||||
ret = my_waitpid (child_pid, &status, 0);
|
||||
if (ret == -1)
|
||||
perror_with_name ("linux_test_for_tracefork: waitpid");
|
||||
perror_with_name (("waitpid"));
|
||||
else if (ret != child_pid)
|
||||
error (_("linux_test_for_tracefork: waitpid: unexpected result %d."), ret);
|
||||
if (! WIFSTOPPED (status))
|
||||
@ -479,13 +479,13 @@ linux_handle_extended_wait (int pid, int status,
|
||||
(event == PTRACE_EVENT_CLONE) ? __WCLONE : 0);
|
||||
} while (ret == -1 && errno == EINTR);
|
||||
if (ret == -1)
|
||||
perror_with_name ("waiting for new child");
|
||||
perror_with_name (_("waiting for new child"));
|
||||
else if (ret != new_pid)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"wait returned unexpected PID %d", ret);
|
||||
_("wait returned unexpected PID %d"), ret);
|
||||
else if (!WIFSTOPPED (status) || WSTOPSIG (status) != SIGSTOP)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"wait returned unexpected status 0x%x", status);
|
||||
_("wait returned unexpected status 0x%x"), status);
|
||||
}
|
||||
|
||||
if (event == PTRACE_EVENT_FORK)
|
||||
@ -517,7 +517,7 @@ linux_handle_extended_wait (int pid, int status,
|
||||
}
|
||||
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"unknown ptrace event %d", event);
|
||||
_("unknown ptrace event %d"), event);
|
||||
}
|
||||
|
||||
|
||||
|
@ -108,7 +108,7 @@ fetch_regs (int tid)
|
||||
elf_gregset_t regs;
|
||||
|
||||
if (ptrace (PTRACE_GETREGS, tid, 0, (int) ®s) < 0)
|
||||
perror_with_name ("Couldn't get registers");
|
||||
perror_with_name (_("Couldn't get registers"));
|
||||
|
||||
supply_gregset (®s);
|
||||
}
|
||||
@ -156,12 +156,12 @@ store_regs (int tid, int regno)
|
||||
elf_gregset_t regs;
|
||||
|
||||
if (ptrace (PTRACE_GETREGS, tid, 0, (int) ®s) < 0)
|
||||
perror_with_name ("Couldn't get registers");
|
||||
perror_with_name (_("Couldn't get registers"));
|
||||
|
||||
fill_gregset (®s, regno);
|
||||
|
||||
if (ptrace (PTRACE_SETREGS, tid, 0, (int) ®s) < 0)
|
||||
perror_with_name ("Couldn't write registers");
|
||||
perror_with_name (_("Couldn't write registers"));
|
||||
}
|
||||
|
||||
|
||||
@ -207,7 +207,7 @@ fetch_inferior_registers (int regno)
|
||||
}
|
||||
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"Got request for bad register number %d.", regno);
|
||||
_("Got request for bad register number %d."), regno);
|
||||
}
|
||||
|
||||
/* Store register REGNO back into the child process. If REGNO is -1,
|
||||
@ -231,5 +231,5 @@ store_inferior_registers (int regno)
|
||||
}
|
||||
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"Got request to store bad register number %d.", regno);
|
||||
_("Got request to store bad register number %d."), regno);
|
||||
}
|
||||
|
@ -125,7 +125,7 @@ m68k_register_name (int regnum)
|
||||
if (regnum < 0 ||
|
||||
regnum >= sizeof (register_names) / sizeof (register_names[0]))
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"m68k_register_name: illegal register number %d", regnum);
|
||||
_("m68k_register_name: illegal register number %d"), regnum);
|
||||
else
|
||||
return register_names[regnum];
|
||||
}
|
||||
@ -239,7 +239,7 @@ m68k_extract_return_value (struct type *type, struct regcache *regcache,
|
||||
}
|
||||
else
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"Cannot extract return value of %d bytes long.", len);
|
||||
_("Cannot extract return value of %d bytes long."), len);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -279,7 +279,7 @@ m68k_store_return_value (struct type *type, struct regcache *regcache,
|
||||
}
|
||||
else
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"Cannot store return value of %d bytes long.", len);
|
||||
_("Cannot store return value of %d bytes long."), len);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -1061,7 +1061,7 @@ m68k_get_longjmp_target (CORE_ADDR *pc)
|
||||
if (tdep->jb_pc < 0)
|
||||
{
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"m68k_get_longjmp_target: not implemented");
|
||||
_("m68k_get_longjmp_target: not implemented"));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -116,7 +116,7 @@ m68kbsd_fetch_inferior_registers (int regnum)
|
||||
|
||||
if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
||||
perror_with_name ("Couldn't get registers");
|
||||
perror_with_name (_("Couldn't get registers"));
|
||||
|
||||
m68kbsd_supply_gregset (current_regcache, ®s);
|
||||
}
|
||||
@ -127,7 +127,7 @@ m68kbsd_fetch_inferior_registers (int regnum)
|
||||
|
||||
if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
|
||||
perror_with_name ("Couldn't get floating point status");
|
||||
perror_with_name (_("Couldn't get floating point status"));
|
||||
|
||||
m68kbsd_supply_fpregset (current_regcache, &fpregs);
|
||||
}
|
||||
@ -145,13 +145,13 @@ m68kbsd_store_inferior_registers (int regnum)
|
||||
|
||||
if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
||||
perror_with_name ("Couldn't get registers");
|
||||
perror_with_name (_("Couldn't get registers"));
|
||||
|
||||
m68kbsd_collect_gregset (current_regcache, ®s, regnum);
|
||||
|
||||
if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
||||
perror_with_name ("Couldn't write registers");
|
||||
perror_with_name (_("Couldn't write registers"));
|
||||
}
|
||||
|
||||
if (regnum == -1 || m68kbsd_fpregset_supplies_p (regnum))
|
||||
@ -160,13 +160,13 @@ m68kbsd_store_inferior_registers (int regnum)
|
||||
|
||||
if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
|
||||
perror_with_name ("Couldn't get floating point status");
|
||||
perror_with_name (_("Couldn't get floating point status"));
|
||||
|
||||
m68kbsd_collect_fpregset (current_regcache, &fpregs, regnum);
|
||||
|
||||
if (ptrace (PT_SETFPREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
|
||||
perror_with_name ("Couldn't write floating point status");
|
||||
perror_with_name (_("Couldn't write floating point status"));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -317,7 +317,7 @@ fetch_regs (int tid)
|
||||
return;
|
||||
}
|
||||
|
||||
perror_with_name ("Couldn't get registers");
|
||||
perror_with_name (_("Couldn't get registers"));
|
||||
}
|
||||
|
||||
supply_gregset (®s);
|
||||
@ -332,12 +332,12 @@ store_regs (int tid, int regno)
|
||||
elf_gregset_t regs;
|
||||
|
||||
if (ptrace (PTRACE_GETREGS, tid, 0, (int) ®s) < 0)
|
||||
perror_with_name ("Couldn't get registers");
|
||||
perror_with_name (_("Couldn't get registers"));
|
||||
|
||||
fill_gregset (®s, regno);
|
||||
|
||||
if (ptrace (PTRACE_SETREGS, tid, 0, (int) ®s) < 0)
|
||||
perror_with_name ("Couldn't write registers");
|
||||
perror_with_name (_("Couldn't write registers"));
|
||||
}
|
||||
|
||||
#else
|
||||
@ -405,7 +405,7 @@ fetch_fpregs (int tid)
|
||||
elf_fpregset_t fpregs;
|
||||
|
||||
if (ptrace (PTRACE_GETFPREGS, tid, 0, (int) &fpregs) < 0)
|
||||
perror_with_name ("Couldn't get floating point status");
|
||||
perror_with_name (_("Couldn't get floating point status"));
|
||||
|
||||
supply_fpregset (&fpregs);
|
||||
}
|
||||
@ -419,12 +419,12 @@ store_fpregs (int tid, int regno)
|
||||
elf_fpregset_t fpregs;
|
||||
|
||||
if (ptrace (PTRACE_GETFPREGS, tid, 0, (int) &fpregs) < 0)
|
||||
perror_with_name ("Couldn't get floating point status");
|
||||
perror_with_name (_("Couldn't get floating point status"));
|
||||
|
||||
fill_fpregset (&fpregs, regno);
|
||||
|
||||
if (ptrace (PTRACE_SETFPREGS, tid, 0, (int) &fpregs) < 0)
|
||||
perror_with_name ("Couldn't write floating point status");
|
||||
perror_with_name (_("Couldn't write floating point status"));
|
||||
}
|
||||
|
||||
#else
|
||||
@ -492,7 +492,7 @@ fetch_inferior_registers (int regno)
|
||||
}
|
||||
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"Got request for bad register number %d.", regno);
|
||||
_("Got request for bad register number %d."), regno);
|
||||
}
|
||||
|
||||
/* Store register REGNO back into the child process. If REGNO is -1,
|
||||
@ -539,7 +539,7 @@ store_inferior_registers (int regno)
|
||||
}
|
||||
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"Got request to store bad register number %d.", regno);
|
||||
_("Got request to store bad register number %d."), regno);
|
||||
}
|
||||
|
||||
/* Interpreting register set info found in core files. */
|
||||
|
@ -71,7 +71,7 @@ m88kbsd_fetch_inferior_registers (int regnum)
|
||||
|
||||
if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
||||
perror_with_name ("Couldn't get registers");
|
||||
perror_with_name (_("Couldn't get registers"));
|
||||
|
||||
m88kbsd_supply_gregset (current_regcache, ®s);
|
||||
}
|
||||
@ -86,13 +86,13 @@ m88kbsd_store_inferior_registers (int regnum)
|
||||
|
||||
if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
||||
perror_with_name ("Couldn't get registers");
|
||||
perror_with_name (_("Couldn't get registers"));
|
||||
|
||||
m88kbsd_collect_gregset (current_regcache, ®s, regnum);
|
||||
|
||||
if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
||||
perror_with_name ("Couldn't write registers");
|
||||
perror_with_name (_("Couldn't write registers"));
|
||||
}
|
||||
|
||||
|
||||
|
@ -616,7 +616,7 @@ append_tokens_without_splicing (struct macro_buffer *dest,
|
||||
/* As far as I know, there's no case where inserting a space isn't
|
||||
enough to prevent a splice. */
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"unable to avoid splicing tokens during macro expansion");
|
||||
_("unable to avoid splicing tokens during macro expansion"));
|
||||
}
|
||||
|
||||
|
||||
@ -991,7 +991,7 @@ expand (const char *id,
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
internal_error (__FILE__, __LINE__, "bad macro definition kind");
|
||||
internal_error (__FILE__, __LINE__, _("bad macro definition kind"));
|
||||
}
|
||||
|
||||
|
||||
|
@ -70,8 +70,8 @@ sal_macro_scope (struct symtab_and_line sal)
|
||||
ms->line = -1;
|
||||
|
||||
complaint (&symfile_complaints,
|
||||
"symtab found for `%s', but that file\n"
|
||||
"is not covered in the compilation unit's macro information",
|
||||
_("symtab found for `%s', but that file\n"
|
||||
"is not covered in the compilation unit's macro information"),
|
||||
sal.symtab->filename);
|
||||
}
|
||||
|
||||
|
@ -445,7 +445,7 @@ macro_include (struct macro_source_file *source,
|
||||
|
||||
First, squawk. */
|
||||
complaint (&symfile_complaints,
|
||||
"both `%s' and `%s' allegedly #included at %s:%d", included,
|
||||
_("both `%s' and `%s' allegedly #included at %s:%d"), included,
|
||||
(*link)->filename, source->filename, line);
|
||||
|
||||
/* Now, choose a new, unoccupied line number for this
|
||||
@ -704,7 +704,7 @@ check_for_redefinition (struct macro_source_file *source, int line,
|
||||
if (! same)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"macro `%s' redefined at %s:%d; original definition at %s:%d",
|
||||
_("macro `%s' redefined at %s:%d; original definition at %s:%d"),
|
||||
name, source->filename, line,
|
||||
found_key->start_file->filename, found_key->start_line);
|
||||
}
|
||||
@ -793,7 +793,7 @@ macro_undef (struct macro_source_file *source, int line,
|
||||
if (key->end_file)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"macro '%s' is #undefined twice, at %s:%d and %s:%d", name,
|
||||
_("macro '%s' is #undefined twice, at %s:%d and %s:%d"), name,
|
||||
source->filename, line, key->end_file->filename,
|
||||
key->end_line);
|
||||
}
|
||||
@ -810,7 +810,7 @@ macro_undef (struct macro_source_file *source, int line,
|
||||
ignore it too. */
|
||||
#if 0
|
||||
complaint (&symfile_complaints,
|
||||
"no definition for macro `%s' in scope to #undef at %s:%d",
|
||||
_("no definition for macro `%s' in scope to #undef at %s:%d"),
|
||||
name, source->filename, line);
|
||||
#endif
|
||||
}
|
||||
|
@ -412,7 +412,7 @@ maintenance_print_architecture (char *args, int from_tty)
|
||||
{
|
||||
struct ui_file *file = gdb_fopen (args, "w");
|
||||
if (file == NULL)
|
||||
perror_with_name ("maintenance print architecture");
|
||||
perror_with_name (_("maintenance print architecture"));
|
||||
gdbarch_dump (current_gdbarch, file);
|
||||
ui_file_delete (file);
|
||||
}
|
||||
|
@ -124,39 +124,39 @@ struct symloc
|
||||
static void
|
||||
index_complaint (const char *arg1)
|
||||
{
|
||||
complaint (&symfile_complaints, "bad aux index at symbol %s", arg1);
|
||||
complaint (&symfile_complaints, _("bad aux index at symbol %s"), arg1);
|
||||
}
|
||||
|
||||
static void
|
||||
unknown_ext_complaint (const char *arg1)
|
||||
{
|
||||
complaint (&symfile_complaints, "unknown external symbol %s", arg1);
|
||||
complaint (&symfile_complaints, _("unknown external symbol %s"), arg1);
|
||||
}
|
||||
|
||||
static void
|
||||
basic_type_complaint (int arg1, const char *arg2)
|
||||
{
|
||||
complaint (&symfile_complaints, "cannot map ECOFF basic type 0x%x for %s",
|
||||
complaint (&symfile_complaints, _("cannot map ECOFF basic type 0x%x for %s"),
|
||||
arg1, arg2);
|
||||
}
|
||||
|
||||
static void
|
||||
bad_tag_guess_complaint (const char *arg1)
|
||||
{
|
||||
complaint (&symfile_complaints, "guessed tag type of %s incorrectly", arg1);
|
||||
complaint (&symfile_complaints, _("guessed tag type of %s incorrectly"), arg1);
|
||||
}
|
||||
|
||||
static void
|
||||
bad_rfd_entry_complaint (const char *arg1, int arg2, int arg3)
|
||||
{
|
||||
complaint (&symfile_complaints, "bad rfd entry for %s: file %d, index %d",
|
||||
complaint (&symfile_complaints, _("bad rfd entry for %s: file %d, index %d"),
|
||||
arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
static void
|
||||
unexpected_type_code_complaint (const char *arg1)
|
||||
{
|
||||
complaint (&symfile_complaints, "unexpected type code for %s", arg1);
|
||||
complaint (&symfile_complaints, _("unexpected type code for %s"), arg1);
|
||||
}
|
||||
|
||||
/* Macros and extra defs */
|
||||
@ -740,7 +740,7 @@ parse_symbol (SYMR *sh, union aux_ext *ax, char *ext_sh, int bigend,
|
||||
break;
|
||||
default:
|
||||
complaint (&symfile_complaints,
|
||||
"unknown symbol type 0x%x", sh->st);
|
||||
_("unknown symbol type 0x%x"), sh->st);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -957,7 +957,7 @@ parse_symbol (SYMR *sh, union aux_ext *ax, char *ext_sh, int bigend,
|
||||
|
||||
default:
|
||||
complaint (&symfile_complaints,
|
||||
"declaration block contains unhandled symbol type %d",
|
||||
_("declaration block contains unhandled symbol type %d"),
|
||||
tsym.st);
|
||||
}
|
||||
}
|
||||
@ -1245,7 +1245,7 @@ parse_symbol (SYMR *sh, union aux_ext *ax, char *ext_sh, int bigend,
|
||||
}
|
||||
else
|
||||
complaint (&symfile_complaints,
|
||||
"stEnd with storage class %d not handled", sh->sc);
|
||||
_("stEnd with storage class %d not handled"), sh->sc);
|
||||
|
||||
pop_parse_stack (); /* restore previous lexical context */
|
||||
break;
|
||||
@ -1357,7 +1357,7 @@ parse_symbol (SYMR *sh, union aux_ext *ax, char *ext_sh, int bigend,
|
||||
case stConstant:
|
||||
break; /* constant */
|
||||
default:
|
||||
complaint (&symfile_complaints, "unknown symbol type 0x%x", sh->st);
|
||||
complaint (&symfile_complaints, _("unknown symbol type 0x%x"), sh->st);
|
||||
break;
|
||||
}
|
||||
|
||||
@ -1498,7 +1498,7 @@ parse_type (int fd, union aux_ext *ax, unsigned int aux_index, int *bs,
|
||||
else if (t->bt == btEnum)
|
||||
;
|
||||
else
|
||||
complaint (&symfile_complaints, "can't handle TIR fBitfield for %s",
|
||||
complaint (&symfile_complaints, _("can't handle TIR fBitfield for %s"),
|
||||
sym_name);
|
||||
}
|
||||
else
|
||||
@ -1528,7 +1528,7 @@ parse_type (int fd, union aux_ext *ax, unsigned int aux_index, int *bs,
|
||||
if (rf == -1)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"unable to cross ref btIndirect for %s", sym_name);
|
||||
_("unable to cross ref btIndirect for %s"), sym_name);
|
||||
return mdebug_type_int;
|
||||
}
|
||||
xref_fh = get_rfd (fd, rf);
|
||||
@ -1645,7 +1645,7 @@ parse_type (int fd, union aux_ext *ax, unsigned int aux_index, int *bs,
|
||||
if (tp == (struct type *) NULL)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"unable to cross ref btTypedef for %s", sym_name);
|
||||
_("unable to cross ref btTypedef for %s"), sym_name);
|
||||
tp = mdebug_type_int;
|
||||
}
|
||||
}
|
||||
@ -1695,7 +1695,7 @@ parse_type (int fd, union aux_ext *ax, unsigned int aux_index, int *bs,
|
||||
|
||||
/* Complain for illegal continuations due to corrupt aux entries. */
|
||||
if (t->continued)
|
||||
complaint (&symfile_complaints, "illegal TIR continued for %s", sym_name);
|
||||
complaint (&symfile_complaints, _("illegal TIR continued for %s"), sym_name);
|
||||
|
||||
return tp;
|
||||
}
|
||||
@ -1758,7 +1758,7 @@ upgrade_type (int fd, struct type **tpp, int tq, union aux_ext *ax, int bigend,
|
||||
if (TYPE_CODE (indx) != TYPE_CODE_INT)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"illegal array index type for %s, assuming int", sym_name);
|
||||
_("illegal array index type for %s, assuming int"), sym_name);
|
||||
indx = mdebug_type_int;
|
||||
}
|
||||
|
||||
@ -1808,7 +1808,7 @@ upgrade_type (int fd, struct type **tpp, int tq, union aux_ext *ax, int bigend,
|
||||
return 0;
|
||||
|
||||
default:
|
||||
complaint (&symfile_complaints, "unknown type qualifier 0x%x", tq);
|
||||
complaint (&symfile_complaints, _("unknown type qualifier 0x%x"), tq);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@ -1844,7 +1844,7 @@ parse_procedure (PDR *pr, struct symtab *search_symtab,
|
||||
/* Static procedure at address pr->adr. Sigh. */
|
||||
/* FIXME-32x64. assuming pr->adr fits in long. */
|
||||
complaint (&symfile_complaints,
|
||||
"can't handle PDR for static proc at 0x%lx",
|
||||
_("can't handle PDR for static proc at 0x%lx"),
|
||||
(unsigned long) pr->adr);
|
||||
return;
|
||||
}
|
||||
@ -1905,7 +1905,7 @@ parse_procedure (PDR *pr, struct symtab *search_symtab,
|
||||
}
|
||||
else
|
||||
{
|
||||
complaint (&symfile_complaints, "PDR for %s, but no symbol", sh_name);
|
||||
complaint (&symfile_complaints, _("PDR for %s, but no symbol"), sh_name);
|
||||
#if 1
|
||||
return;
|
||||
#else
|
||||
@ -1954,7 +1954,7 @@ parse_procedure (PDR *pr, struct symtab *search_symtab,
|
||||
if (e->pdr.pcreg == 0
|
||||
&& strcmp (sh_name, "setjmp") == 0)
|
||||
{
|
||||
complaint (&symfile_complaints, "fixing bad setjmp PDR from libc");
|
||||
complaint (&symfile_complaints, _("fixing bad setjmp PDR from libc"));
|
||||
#ifdef RA_REGNUM
|
||||
e->pdr.pcreg = RA_REGNUM;
|
||||
#else
|
||||
@ -2144,7 +2144,7 @@ parse_lines (FDR *fh, PDR *pr, struct linetable *lt, int maxlines,
|
||||
if (lt->nitems >= maxlines)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"guessed size of linetable for %s incorrectly",
|
||||
_("guessed size of linetable for %s incorrectly"),
|
||||
fdr_name (fh));
|
||||
break;
|
||||
}
|
||||
@ -2158,7 +2158,7 @@ static void
|
||||
function_outside_compilation_unit_complaint (const char *arg1)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"function `%s' appears to be defined outside of all compilation units",
|
||||
_("function `%s' appears to be defined outside of all compilation units"),
|
||||
arg1);
|
||||
}
|
||||
|
||||
@ -2339,14 +2339,14 @@ parse_partial_symbols (struct objfile *objfile)
|
||||
if (ext_in->ifd < -1 || ext_in->ifd >= hdr->ifdMax)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"bad ifd for external symbol: %d (max %ld)", ext_in->ifd,
|
||||
_("bad ifd for external symbol: %d (max %ld)"), ext_in->ifd,
|
||||
hdr->ifdMax);
|
||||
continue;
|
||||
}
|
||||
if (ext_in->asym.iss < 0 || ext_in->asym.iss >= hdr->issExtMax)
|
||||
{
|
||||
complaint (&symfile_complaints,
|
||||
"bad iss for external symbol: %ld (max %ld)",
|
||||
_("bad iss for external symbol: %ld (max %ld)"),
|
||||
ext_in->asym.iss, hdr->issExtMax);
|
||||
continue;
|
||||
}
|
||||
@ -3165,7 +3165,7 @@ parse_partial_symbols (struct objfile *objfile)
|
||||
a backslash. */
|
||||
|
||||
complaint (&symfile_complaints,
|
||||
"unknown symbol descriptor `%c'", p[1]);
|
||||
_("unknown symbol descriptor `%c'"), p[1]);
|
||||
|
||||
/* Ignore it; perhaps it is an extension that we don't
|
||||
know about. */
|
||||
@ -3226,7 +3226,7 @@ parse_partial_symbols (struct objfile *objfile)
|
||||
default:
|
||||
/* If we haven't found it yet, ignore it. It's probably some
|
||||
new type we don't know about yet. */
|
||||
complaint (&symfile_complaints, "unknown symbol type %s",
|
||||
complaint (&symfile_complaints, _("unknown symbol type %s"),
|
||||
hex_string (type_code)); /*CUR_SYMBOL_TYPE*/
|
||||
continue;
|
||||
}
|
||||
@ -3323,7 +3323,7 @@ parse_partial_symbols (struct objfile *objfile)
|
||||
{
|
||||
/* This should not happen either... FIXME. */
|
||||
complaint (&symfile_complaints,
|
||||
"bad proc end in aux found from symbol %s",
|
||||
_("bad proc end in aux found from symbol %s"),
|
||||
name);
|
||||
new_sdx = cur_sdx + 1; /* Don't skip backward */
|
||||
}
|
||||
@ -3438,7 +3438,7 @@ parse_partial_symbols (struct objfile *objfile)
|
||||
{
|
||||
/* This happens with the Ultrix kernel. */
|
||||
complaint (&symfile_complaints,
|
||||
"bad aux index at block symbol %s", name);
|
||||
_("bad aux index at block symbol %s"), name);
|
||||
new_sdx = cur_sdx + 1; /* Don't skip backward */
|
||||
}
|
||||
cur_sdx = new_sdx;
|
||||
@ -3458,9 +3458,9 @@ parse_partial_symbols (struct objfile *objfile)
|
||||
default:
|
||||
/* Both complaints are valid: one gives symbol name,
|
||||
the other the offending symbol type. */
|
||||
complaint (&symfile_complaints, "unknown local symbol %s",
|
||||
complaint (&symfile_complaints, _("unknown local symbol %s"),
|
||||
name);
|
||||
complaint (&symfile_complaints, "with type %d", sh.st);
|
||||
complaint (&symfile_complaints, _("with type %d"), sh.st);
|
||||
cur_sdx++;
|
||||
continue;
|
||||
}
|
||||
@ -3486,7 +3486,7 @@ parse_partial_symbols (struct objfile *objfile)
|
||||
CORE_ADDR svalue;
|
||||
|
||||
if (ext_ptr->ifd != f_idx)
|
||||
internal_error (__FILE__, __LINE__, "failed internal consistency check");
|
||||
internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
|
||||
psh = &ext_ptr->asym;
|
||||
|
||||
/* Do not add undefined symbols to the partial symbol table. */
|
||||
@ -3619,7 +3619,7 @@ parse_partial_symbols (struct objfile *objfile)
|
||||
&rh);
|
||||
if (rh < 0 || rh >= hdr->ifdMax)
|
||||
{
|
||||
complaint (&symfile_complaints, "bad file number %ld", rh);
|
||||
complaint (&symfile_complaints, _("bad file number %ld"), rh);
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -3926,7 +3926,7 @@ psymtab_to_symtab_1 (struct partial_symtab *pst, char *filename)
|
||||
/* These are generated by gcc-2.x, do not complain */
|
||||
;
|
||||
else
|
||||
complaint (&symfile_complaints, "unknown stabs symbol %s", name);
|
||||
complaint (&symfile_complaints, _("unknown stabs symbol %s"), name);
|
||||
}
|
||||
|
||||
if (! last_symtab_ended)
|
||||
@ -4282,7 +4282,7 @@ cross_ref (int fd, union aux_ext *ax, struct type **tpp, enum type_code type_cod
|
||||
&tir);
|
||||
if (tir.tq0 != tqNil)
|
||||
complaint (&symfile_complaints,
|
||||
"illegal tq0 in forward typedef for %s", sym_name);
|
||||
_("illegal tq0 in forward typedef for %s"), sym_name);
|
||||
switch (tir.bt)
|
||||
{
|
||||
case btVoid:
|
||||
@ -4320,7 +4320,7 @@ cross_ref (int fd, union aux_ext *ax, struct type **tpp, enum type_code type_cod
|
||||
|
||||
default:
|
||||
complaint (&symfile_complaints,
|
||||
"illegal bt %d in forward typedef for %s", tir.bt,
|
||||
_("illegal bt %d in forward typedef for %s"), tir.bt,
|
||||
sym_name);
|
||||
*tpp = init_type (type_code, 0, 0, (char *) NULL,
|
||||
current_objfile);
|
||||
|
@ -140,7 +140,7 @@ mem_command (char *args, int from_tty)
|
||||
struct mem_attrib attrib;
|
||||
|
||||
if (!args)
|
||||
error_no_arg ("No mem");
|
||||
error_no_arg (_("No mem"));
|
||||
|
||||
tok = strtok (args, " \t");
|
||||
if (!tok)
|
||||
|
@ -160,7 +160,7 @@ mi_cmd_break_insert (char *command, char **argv, int argc)
|
||||
#endif
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"mi_cmd_break_insert: Bad switch.");
|
||||
_("mi_cmd_break_insert: Bad switch."));
|
||||
}
|
||||
deprecated_set_gdb_event_hooks (old_hooks);
|
||||
|
||||
|
@ -241,7 +241,7 @@ build_table (struct mi_cmd *commands)
|
||||
struct mi_cmd **entry = lookup_table (command->name);
|
||||
if (*entry)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"command `%s' appears to be duplicated",
|
||||
_("command `%s' appears to be duplicated"),
|
||||
command->name);
|
||||
*entry = command;
|
||||
if (0)
|
||||
|
@ -65,7 +65,7 @@ mi_console_file_delete (struct ui_file *file)
|
||||
struct mi_console_file *mi_console = ui_file_data (file);
|
||||
if (mi_console->magic != &mi_console_file_magic)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"mi_console_file_delete: bad magic number");
|
||||
_("mi_console_file_delete: bad magic number"));
|
||||
xfree (mi_console);
|
||||
}
|
||||
|
||||
@ -93,7 +93,7 @@ mi_console_raw_packet (void *data,
|
||||
struct mi_console_file *mi_console = data;
|
||||
if (mi_console->magic != &mi_console_file_magic)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"mi_console_file_transform: bad magic number");
|
||||
_("mi_console_file_transform: bad magic number"));
|
||||
|
||||
if (length_buf > 0)
|
||||
{
|
||||
@ -119,7 +119,7 @@ mi_console_file_flush (struct ui_file *file)
|
||||
struct mi_console_file *mi_console = ui_file_data (file);
|
||||
if (mi_console->magic != &mi_console_file_magic)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"mi_console_file_flush: bad magic number");
|
||||
_("mi_console_file_flush: bad magic number"));
|
||||
ui_file_put (mi_console->buffer, mi_console_raw_packet, mi_console);
|
||||
ui_file_rewind (mi_console->buffer);
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ mi_getopt (const char *prefix,
|
||||
/* We assume that argv/argc are ok. */
|
||||
if (*optind > argc || *optind < 0)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"mi_getopt_long: optind out of bounds");
|
||||
_("mi_getopt_long: optind out of bounds"));
|
||||
if (*optind == argc)
|
||||
return -1;
|
||||
arg = argv[*optind];
|
||||
|
@ -318,7 +318,7 @@ mi_open (struct ui_out *uiout,
|
||||
fputc_unfiltered ('[', data->buffer);
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "bad switch");
|
||||
internal_error (__FILE__, __LINE__, _("bad switch"));
|
||||
}
|
||||
}
|
||||
|
||||
@ -336,7 +336,7 @@ mi_close (struct ui_out *uiout,
|
||||
fputc_unfiltered (']', data->buffer);
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "bad switch");
|
||||
internal_error (__FILE__, __LINE__, _("bad switch"));
|
||||
}
|
||||
data->suppress_field_separator = 0;
|
||||
}
|
||||
|
@ -1188,7 +1188,7 @@ mips_linux_init_abi (struct gdbarch_info info,
|
||||
tramp_frame_prepend_unwinder (gdbarch, &mips_linux_n64_rt_sigframe);
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "can't handle ABI");
|
||||
internal_error (__FILE__, __LINE__, _("can't handle ABI"));
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -270,7 +270,7 @@ mips_abi_regsize (struct gdbarch *gdbarch)
|
||||
case MIPS_ABI_UNKNOWN:
|
||||
case MIPS_ABI_LAST:
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "bad switch");
|
||||
internal_error (__FILE__, __LINE__, _("bad switch"));
|
||||
}
|
||||
else if (mips_abi_regsize_string == size_64)
|
||||
return 8;
|
||||
@ -331,7 +331,7 @@ mips_xfer_register (struct regcache *regcache, int reg_num, int length,
|
||||
reg_offset = 0;
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "bad switch");
|
||||
internal_error (__FILE__, __LINE__, _("bad switch"));
|
||||
}
|
||||
if (mips_debug)
|
||||
fprintf_unfiltered (gdb_stderr,
|
||||
@ -522,7 +522,7 @@ mips_register_name (int regno)
|
||||
}
|
||||
else
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"mips_register_name: bad register number %d", rawnum);
|
||||
_("mips_register_name: bad register number %d"), rawnum);
|
||||
}
|
||||
|
||||
/* Return the groups that a MIPS register can be categorised into. */
|
||||
@ -584,7 +584,7 @@ mips_pseudo_register_read (struct gdbarch *gdbarch, struct regcache *regcache,
|
||||
regcache_raw_read_part (regcache, rawnum, 4, 4, buf);
|
||||
}
|
||||
else
|
||||
internal_error (__FILE__, __LINE__, "bad register size");
|
||||
internal_error (__FILE__, __LINE__, _("bad register size"));
|
||||
}
|
||||
|
||||
static void
|
||||
@ -606,7 +606,7 @@ mips_pseudo_register_write (struct gdbarch *gdbarch,
|
||||
regcache_raw_write_part (regcache, rawnum, 4, 4, buf);
|
||||
}
|
||||
else
|
||||
internal_error (__FILE__, __LINE__, "bad register size");
|
||||
internal_error (__FILE__, __LINE__, _("bad register size"));
|
||||
}
|
||||
|
||||
/* Table to translate MIPS16 register field to actual register number. */
|
||||
@ -694,7 +694,7 @@ mips_register_type (struct gdbarch *gdbarch, int regnum)
|
||||
return builtin_type_ieee_double_little;
|
||||
case BFD_ENDIAN_UNKNOWN:
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "bad switch");
|
||||
internal_error (__FILE__, __LINE__, _("bad switch"));
|
||||
}
|
||||
}
|
||||
else if (regnum < NUM_REGS)
|
||||
@ -755,7 +755,7 @@ mips_mask_address_p (struct gdbarch_tdep *tdep)
|
||||
case AUTO_BOOLEAN_AUTO:
|
||||
return tdep->default_mask_address_p;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "mips_mask_address_p: bad switch");
|
||||
internal_error (__FILE__, __LINE__, _("mips_mask_address_p: bad switch"));
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@ -778,7 +778,7 @@ show_mask_address (char *cmd, int from_tty, struct cmd_list_element *c)
|
||||
mips_mask_address_p (tdep) ? "enabled" : "disabled");
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "show_mask_address: bad switch");
|
||||
internal_error (__FILE__, __LINE__, _("show_mask_address: bad switch"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -1188,7 +1188,7 @@ unpack_mips16 (CORE_ADDR pc,
|
||||
break;
|
||||
}
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "bad switch");
|
||||
internal_error (__FILE__, __LINE__, _("bad switch"));
|
||||
}
|
||||
upk->offset = offset;
|
||||
upk->regx = regx;
|
||||
@ -3352,7 +3352,7 @@ mips_o32_return_value (struct gdbarch *gdbarch, struct type *type,
|
||||
0, 4, TARGET_BYTE_ORDER, readbuf, writebuf, 4);
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "bad switch");
|
||||
internal_error (__FILE__, __LINE__, _("bad switch"));
|
||||
}
|
||||
return RETURN_VALUE_REGISTER_CONVENTION;
|
||||
}
|
||||
@ -3863,8 +3863,8 @@ mips_read_fp_register_double (struct frame_info *frame, int regno,
|
||||
{
|
||||
if ((regno - mips_regnum (current_gdbarch)->fp0) & 1)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"mips_read_fp_register_double: bad access to "
|
||||
"odd-numbered FP register");
|
||||
_("mips_read_fp_register_double: bad access to "
|
||||
"odd-numbered FP register"));
|
||||
|
||||
/* mips_read_fp_register_single will find the correct 32 bits from
|
||||
each register. */
|
||||
@ -4228,7 +4228,7 @@ show_mipsfpu_command (char *args, int from_tty)
|
||||
fpu = "absent (none)";
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "bad switch");
|
||||
internal_error (__FILE__, __LINE__, _("bad switch"));
|
||||
}
|
||||
if (mips_fpu_type_auto)
|
||||
printf_unfiltered
|
||||
@ -4259,7 +4259,7 @@ set_mipsfpu_single_command (char *args, int from_tty)
|
||||
instead of relying on globals. Doing that would let generic code
|
||||
handle the search for this specific architecture. */
|
||||
if (!gdbarch_update_p (info))
|
||||
internal_error (__FILE__, __LINE__, "set mipsfpu failed");
|
||||
internal_error (__FILE__, __LINE__, _("set mipsfpu failed"));
|
||||
}
|
||||
|
||||
static void
|
||||
@ -4273,7 +4273,7 @@ set_mipsfpu_double_command (char *args, int from_tty)
|
||||
instead of relying on globals. Doing that would let generic code
|
||||
handle the search for this specific architecture. */
|
||||
if (!gdbarch_update_p (info))
|
||||
internal_error (__FILE__, __LINE__, "set mipsfpu failed");
|
||||
internal_error (__FILE__, __LINE__, _("set mipsfpu failed"));
|
||||
}
|
||||
|
||||
static void
|
||||
@ -4287,7 +4287,7 @@ set_mipsfpu_none_command (char *args, int from_tty)
|
||||
instead of relying on globals. Doing that would let generic code
|
||||
handle the search for this specific architecture. */
|
||||
if (!gdbarch_update_p (info))
|
||||
internal_error (__FILE__, __LINE__, "set mipsfpu failed");
|
||||
internal_error (__FILE__, __LINE__, _("set mipsfpu failed"));
|
||||
}
|
||||
|
||||
static void
|
||||
@ -4643,7 +4643,7 @@ global_mips_abi (void)
|
||||
if (mips_abi_strings[i] == mips_abi_string)
|
||||
return (enum mips_abi) i;
|
||||
|
||||
internal_error (__FILE__, __LINE__, "unknown ABI string");
|
||||
internal_error (__FILE__, __LINE__, _("unknown ABI string"));
|
||||
}
|
||||
|
||||
static struct gdbarch *
|
||||
@ -4943,7 +4943,7 @@ mips_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
||||
&floatformat_n32n64_long_double_big);
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "unknown ABI in switch");
|
||||
internal_error (__FILE__, __LINE__, _("unknown ABI in switch"));
|
||||
}
|
||||
|
||||
/* FIXME: jlarmour/2000-04-07: There *is* a flag EF_MIPS_32BIT_MODE
|
||||
@ -5162,7 +5162,7 @@ _initialize_mips_tdep (void)
|
||||
mips_abi_string = mips_abi_strings[MIPS_ABI_UNKNOWN];
|
||||
if (MIPS_ABI_LAST + 1
|
||||
!= sizeof (mips_abi_strings) / sizeof (mips_abi_strings[0]))
|
||||
internal_error (__FILE__, __LINE__, "mips_abi_strings out of sync");
|
||||
internal_error (__FILE__, __LINE__, _("mips_abi_strings out of sync"));
|
||||
|
||||
gdbarch_register (bfd_arch_mips, mips_gdbarch_init, mips_dump_tdep);
|
||||
|
||||
|
@ -85,7 +85,7 @@ mips64obsd_fetch_inferior_registers (int regnum)
|
||||
|
||||
if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
||||
perror_with_name ("Couldn't get registers");
|
||||
perror_with_name (_("Couldn't get registers"));
|
||||
|
||||
mips64obsd_supply_gregset (current_regcache, ®s);
|
||||
}
|
||||
@ -100,13 +100,13 @@ mips64obsd_store_inferior_registers (int regnum)
|
||||
|
||||
if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
||||
perror_with_name ("Couldn't get registers");
|
||||
perror_with_name (_("Couldn't get registers"));
|
||||
|
||||
mips64obsd_collect_gregset (current_regcache, ®s, regnum);
|
||||
|
||||
if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
||||
perror_with_name ("Couldn't write registers");
|
||||
perror_with_name (_("Couldn't write registers"));
|
||||
}
|
||||
|
||||
|
||||
|
@ -48,7 +48,7 @@ mipsnbsd_fetch_inferior_registers (int regno)
|
||||
|
||||
if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
||||
perror_with_name ("Couldn't get registers");
|
||||
perror_with_name (_("Couldn't get registers"));
|
||||
|
||||
mipsnbsd_supply_reg ((char *) ®s, regno);
|
||||
if (regno != -1)
|
||||
@ -61,7 +61,7 @@ mipsnbsd_fetch_inferior_registers (int regno)
|
||||
|
||||
if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
|
||||
perror_with_name ("Couldn't get floating point status");
|
||||
perror_with_name (_("Couldn't get floating point status"));
|
||||
|
||||
mipsnbsd_supply_fpreg ((char *) &fpregs, regno);
|
||||
}
|
||||
@ -76,13 +76,13 @@ mipsnbsd_store_inferior_registers (int regno)
|
||||
|
||||
if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
||||
perror_with_name ("Couldn't get registers");
|
||||
perror_with_name (_("Couldn't get registers"));
|
||||
|
||||
mipsnbsd_fill_reg ((char *) ®s, regno);
|
||||
|
||||
if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
||||
perror_with_name ("Couldn't write registers");
|
||||
perror_with_name (_("Couldn't write registers"));
|
||||
|
||||
if (regno != -1)
|
||||
return;
|
||||
@ -94,13 +94,13 @@ mipsnbsd_store_inferior_registers (int regno)
|
||||
|
||||
if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
|
||||
perror_with_name ("Couldn't get floating point status");
|
||||
perror_with_name (_("Couldn't get floating point status"));
|
||||
|
||||
mipsnbsd_fill_fpreg ((char *) &fpregs, regno);
|
||||
|
||||
if (ptrace (PT_SETFPREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
|
||||
perror_with_name ("Couldn't write floating point status");
|
||||
perror_with_name (_("Couldn't write floating point status"));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -131,7 +131,7 @@ mn10300_type_align (struct type *type)
|
||||
return mn10300_type_align (check_typedef (type));
|
||||
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "bad switch");
|
||||
internal_error (__FILE__, __LINE__, _("bad switch"));
|
||||
}
|
||||
}
|
||||
|
||||
@ -204,7 +204,7 @@ mn10300_store_return_value (struct type *type,
|
||||
}
|
||||
else
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"Cannot store return value %d bytes long.", len);
|
||||
_("Cannot store return value %d bytes long."), len);
|
||||
}
|
||||
|
||||
/* MVS note deprecated. */
|
||||
@ -238,7 +238,7 @@ mn10300_extract_return_value (struct type *type,
|
||||
}
|
||||
else
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"Cannot extract return value %d bytes long.", len);
|
||||
_("Cannot extract return value %d bytes long."), len);
|
||||
}
|
||||
|
||||
static char *
|
||||
@ -481,7 +481,7 @@ mn10300_gdbarch_init (struct gdbarch_info info,
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"mn10300_gdbarch_init: Unknown mn10300 variant");
|
||||
_("mn10300_gdbarch_init: Unknown mn10300 variant"));
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -346,7 +346,7 @@ monitor_printf_noecho (char *pattern,...)
|
||||
|
||||
len = strlen (sndbuf);
|
||||
if (len + 1 > sizeof sndbuf)
|
||||
internal_error (__FILE__, __LINE__, "failed internal consistency check");
|
||||
internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
|
||||
|
||||
if (monitor_debug_p)
|
||||
{
|
||||
@ -374,7 +374,7 @@ monitor_printf (char *pattern,...)
|
||||
|
||||
len = strlen (sndbuf);
|
||||
if (len + 1 > sizeof sndbuf)
|
||||
internal_error (__FILE__, __LINE__, "failed internal consistency check");
|
||||
internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
|
||||
|
||||
if (monitor_debug_p)
|
||||
{
|
||||
@ -431,7 +431,7 @@ monitor_readchar (void)
|
||||
if (c == SERIAL_TIMEOUT)
|
||||
error (_("Timeout reading from remote system."));
|
||||
|
||||
perror_with_name ("remote-monitor");
|
||||
perror_with_name (_("remote-monitor"));
|
||||
}
|
||||
|
||||
|
||||
@ -506,7 +506,7 @@ readchar (int timeout)
|
||||
#endif
|
||||
error (_("Timeout reading from remote system."));
|
||||
|
||||
perror_with_name ("remote-monitor");
|
||||
perror_with_name (_("remote-monitor"));
|
||||
}
|
||||
|
||||
/* Scan input from the remote system, until STRING is found. If BUF is non-
|
||||
@ -1300,7 +1300,7 @@ monitor_dump_regs (void)
|
||||
parse_register_dump (buf, resp_len);
|
||||
}
|
||||
else
|
||||
internal_error (__FILE__, __LINE__, "failed internal consistency check"); /* Need some way to read registers */
|
||||
internal_error (__FILE__, __LINE__, _("failed internal consistency check")); /* Need some way to read registers */
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -518,7 +518,7 @@ procfs_attach (char *args, int from_tty)
|
||||
int pid;
|
||||
|
||||
if (!args)
|
||||
error_no_arg ("process-id to attach");
|
||||
error_no_arg (_("process-id to attach"));
|
||||
|
||||
pid = atoi (args);
|
||||
|
||||
|
@ -124,7 +124,7 @@ lookup_objc_class (char *classname)
|
||||
function = find_function_in_inferior("objc_lookup_class");
|
||||
else
|
||||
{
|
||||
complaint (&symfile_complaints, "no way to lookup Objective-C classes");
|
||||
complaint (&symfile_complaints, _("no way to lookup Objective-C classes"));
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -151,7 +151,7 @@ lookup_child_selector (char *selname)
|
||||
function = find_function_in_inferior("sel_get_any_uid");
|
||||
else
|
||||
{
|
||||
complaint (&symfile_complaints, "no way to lookup Objective-C selectors");
|
||||
complaint (&symfile_complaints, _("no way to lookup Objective-C selectors"));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -305,7 +305,7 @@ put_objfile_before (struct objfile *objfile, struct objfile *before_this)
|
||||
}
|
||||
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"put_objfile_before: before objfile not in list");
|
||||
_("put_objfile_before: before objfile not in list"));
|
||||
}
|
||||
|
||||
/* Put OBJFILE at the front of the list. */
|
||||
@ -357,7 +357,7 @@ unlink_objfile (struct objfile *objfile)
|
||||
}
|
||||
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"unlink_objfile: objfile already unlinked");
|
||||
_("unlink_objfile: objfile already unlinked"));
|
||||
}
|
||||
|
||||
|
||||
|
@ -624,17 +624,17 @@ extern void *objfile_data (struct objfile *objfile,
|
||||
|
||||
#define SECT_OFF_DATA(objfile) \
|
||||
((objfile->sect_index_data == -1) \
|
||||
? (internal_error (__FILE__, __LINE__, "sect_index_data not initialized"), -1) \
|
||||
? (internal_error (__FILE__, __LINE__, _("sect_index_data not initialized")), -1) \
|
||||
: objfile->sect_index_data)
|
||||
|
||||
#define SECT_OFF_RODATA(objfile) \
|
||||
((objfile->sect_index_rodata == -1) \
|
||||
? (internal_error (__FILE__, __LINE__, "sect_index_rodata not initialized"), -1) \
|
||||
? (internal_error (__FILE__, __LINE__, _("sect_index_rodata not initialized")), -1) \
|
||||
: objfile->sect_index_rodata)
|
||||
|
||||
#define SECT_OFF_TEXT(objfile) \
|
||||
((objfile->sect_index_text == -1) \
|
||||
? (internal_error (__FILE__, __LINE__, "sect_index_text not initialized"), -1) \
|
||||
? (internal_error (__FILE__, __LINE__, _("sect_index_text not initialized")), -1) \
|
||||
: objfile->sect_index_text)
|
||||
|
||||
/* Sometimes the .bss section is missing from the objfile, so we don't
|
||||
|
@ -746,7 +746,7 @@ readchar (int timeout)
|
||||
case SERIAL_EOF:
|
||||
error (_("Remote connection closed"));
|
||||
case SERIAL_ERROR:
|
||||
perror_with_name ("Remote communication error");
|
||||
perror_with_name (_("Remote communication error"));
|
||||
case SERIAL_TIMEOUT:
|
||||
default:
|
||||
return ch;
|
||||
@ -786,7 +786,7 @@ ocd_put_packet (unsigned char *buf, int len)
|
||||
|
||||
*packet_ptr++ = -checksum;
|
||||
if (serial_write (ocd_desc, packet, packet_ptr - packet))
|
||||
perror_with_name ("output_packet: write failed");
|
||||
perror_with_name (_("output_packet: write failed"));
|
||||
}
|
||||
|
||||
/* Get a packet from the OCD device. Timeout is only enforced for the
|
||||
|
26
gdb/osabi.c
26
gdb/osabi.c
@ -117,9 +117,9 @@ gdbarch_register_osabi (enum bfd_architecture arch, unsigned long machine,
|
||||
{
|
||||
internal_error
|
||||
(__FILE__, __LINE__,
|
||||
"gdbarch_register_osabi: An attempt to register a handler for "
|
||||
_("gdbarch_register_osabi: An attempt to register a handler for "
|
||||
"OS ABI \"%s\" for architecture %s was made. The handler will "
|
||||
"not be registered",
|
||||
"not be registered"),
|
||||
gdbarch_osabi_name (osabi),
|
||||
bfd_printable_arch_mach (arch, machine));
|
||||
return;
|
||||
@ -135,8 +135,8 @@ gdbarch_register_osabi (enum bfd_architecture arch, unsigned long machine,
|
||||
{
|
||||
internal_error
|
||||
(__FILE__, __LINE__,
|
||||
"gdbarch_register_osabi: A handler for OS ABI \"%s\" "
|
||||
"has already been registered for architecture %s",
|
||||
_("gdbarch_register_osabi: A handler for OS ABI \"%s\" "
|
||||
"has already been registered for architecture %s"),
|
||||
gdbarch_osabi_name (osabi),
|
||||
arch_info->printable_name);
|
||||
/* If user wants to continue, override previous definition. */
|
||||
@ -233,8 +233,8 @@ gdbarch_lookup_osabi (bfd *abfd)
|
||||
{
|
||||
internal_error
|
||||
(__FILE__, __LINE__,
|
||||
"gdbarch_lookup_osabi: invalid OS ABI (%d) from sniffer "
|
||||
"for architecture %s flavour %d",
|
||||
_("gdbarch_lookup_osabi: invalid OS ABI (%d) from sniffer "
|
||||
"for architecture %s flavour %d"),
|
||||
(int) osabi,
|
||||
bfd_printable_arch_mach (bfd_get_arch (abfd), 0),
|
||||
(int) bfd_get_flavour (abfd));
|
||||
@ -252,9 +252,9 @@ gdbarch_lookup_osabi (bfd *abfd)
|
||||
{
|
||||
internal_error
|
||||
(__FILE__, __LINE__,
|
||||
"gdbarch_lookup_osabi: multiple %sspecific OS ABI "
|
||||
_("gdbarch_lookup_osabi: multiple %sspecific OS ABI "
|
||||
"match for architecture %s flavour %d: first "
|
||||
"match \"%s\", second match \"%s\"",
|
||||
"match \"%s\", second match \"%s\""),
|
||||
match_specific ? "" : "non-",
|
||||
bfd_printable_arch_mach (bfd_get_arch (abfd), 0),
|
||||
(int) bfd_get_flavour (abfd),
|
||||
@ -447,8 +447,8 @@ generic_elf_osabi_sniff_abi_tag_sections (bfd *abfd, asection *sect, void *obj)
|
||||
break;
|
||||
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "\
|
||||
generic_elf_osabi_sniff_abi_tag_sections: unknown OS number %d",
|
||||
internal_error (__FILE__, __LINE__, _("\
|
||||
generic_elf_osabi_sniff_abi_tag_sections: unknown OS number %d"),
|
||||
abi_tag);
|
||||
}
|
||||
return;
|
||||
@ -585,7 +585,7 @@ set_osabi (char *args, int from_tty, struct cmd_list_element *c)
|
||||
}
|
||||
if (i == GDB_OSABI_INVALID)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"Invalid OS ABI \"%s\" passed to command handler.",
|
||||
_("Invalid OS ABI \"%s\" passed to command handler."),
|
||||
set_osabi_string);
|
||||
}
|
||||
|
||||
@ -593,7 +593,7 @@ set_osabi (char *args, int from_tty, struct cmd_list_element *c)
|
||||
graceful here. */
|
||||
gdbarch_info_init (&info);
|
||||
if (! gdbarch_update_p (info))
|
||||
internal_error (__FILE__, __LINE__, "Updating OS ABI failed.");
|
||||
internal_error (__FILE__, __LINE__, _("Updating OS ABI failed."));
|
||||
}
|
||||
|
||||
static void
|
||||
@ -621,7 +621,7 @@ _initialize_gdb_osabi (void)
|
||||
if (strcmp (gdb_osabi_names[GDB_OSABI_INVALID], "<invalid>") != 0)
|
||||
internal_error
|
||||
(__FILE__, __LINE__,
|
||||
"_initialize_gdb_osabi: gdb_osabi_names[] is inconsistent");
|
||||
_("_initialize_gdb_osabi: gdb_osabi_names[] is inconsistent"));
|
||||
|
||||
/* Register a generic sniffer for ELF flavoured files. */
|
||||
gdbarch_register_osabi_sniffer (bfd_arch_unknown,
|
||||
|
@ -1025,7 +1025,7 @@ parse_exp_in_context (char **stringptr, struct block *block, int comma,
|
||||
comma_terminates = comma;
|
||||
|
||||
if (lexptr == 0 || *lexptr == 0)
|
||||
error_no_arg ("expression to compute");
|
||||
error_no_arg (_("expression to compute"));
|
||||
|
||||
old_chain = make_cleanup (free_funcalls, 0 /*ignore*/);
|
||||
funcall_chain = 0;
|
||||
|
@ -215,8 +215,8 @@ bdm_ppc_fetch_registers (int regno)
|
||||
}
|
||||
else
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"ppc_bdm_fetch_registers: "
|
||||
"'all registers' case not implemented");
|
||||
_("ppc_bdm_fetch_registers: "
|
||||
"'all registers' case not implemented"));
|
||||
|
||||
#endif
|
||||
#if 0
|
||||
|
@ -248,7 +248,7 @@ fetch_altivec_register (int tid, int regno)
|
||||
have_ptrace_getvrregs = 0;
|
||||
return;
|
||||
}
|
||||
perror_with_name ("Unable to fetch AltiVec register");
|
||||
perror_with_name (_("Unable to fetch AltiVec register"));
|
||||
}
|
||||
|
||||
/* VSCR is fetched as a 16 bytes quantity, but it is really 4 bytes
|
||||
@ -285,7 +285,7 @@ get_spe_registers (int tid, struct gdb_evrregset_t *evrregset)
|
||||
have_ptrace_getsetevrregs = 0;
|
||||
else
|
||||
/* Anything else needs to be reported. */
|
||||
perror_with_name ("Unable to fetch SPE registers");
|
||||
perror_with_name (_("Unable to fetch SPE registers"));
|
||||
}
|
||||
}
|
||||
|
||||
@ -411,7 +411,7 @@ fetch_register (int tid, int regno)
|
||||
}
|
||||
else
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"fetch_register: unexpected byte order: %d",
|
||||
_("fetch_register: unexpected byte order: %d"),
|
||||
gdbarch_byte_order (current_gdbarch));
|
||||
}
|
||||
|
||||
@ -453,7 +453,7 @@ fetch_altivec_registers (int tid)
|
||||
have_ptrace_getvrregs = 0;
|
||||
return;
|
||||
}
|
||||
perror_with_name ("Unable to fetch AltiVec registers");
|
||||
perror_with_name (_("Unable to fetch AltiVec registers"));
|
||||
}
|
||||
supply_vrregset (®s);
|
||||
}
|
||||
@ -528,7 +528,7 @@ store_altivec_register (int tid, int regno)
|
||||
have_ptrace_getvrregs = 0;
|
||||
return;
|
||||
}
|
||||
perror_with_name ("Unable to fetch AltiVec register");
|
||||
perror_with_name (_("Unable to fetch AltiVec register"));
|
||||
}
|
||||
|
||||
/* VSCR is fetched as a 16 bytes quantity, but it is really 4 bytes
|
||||
@ -541,7 +541,7 @@ store_altivec_register (int tid, int regno)
|
||||
|
||||
ret = ptrace (PTRACE_SETVRREGS, tid, 0, ®s);
|
||||
if (ret < 0)
|
||||
perror_with_name ("Unable to store AltiVec register");
|
||||
perror_with_name (_("Unable to store AltiVec register"));
|
||||
}
|
||||
|
||||
/* Assuming TID referrs to an SPE process, set the top halves of TID's
|
||||
@ -568,7 +568,7 @@ set_spe_registers (int tid, struct gdb_evrregset_t *evrregset)
|
||||
have_ptrace_getsetevrregs = 0;
|
||||
else
|
||||
/* Anything else needs to be reported. */
|
||||
perror_with_name ("Unable to set SPE registers");
|
||||
perror_with_name (_("Unable to set SPE registers"));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -733,13 +733,13 @@ store_altivec_registers (int tid)
|
||||
have_ptrace_getvrregs = 0;
|
||||
return;
|
||||
}
|
||||
perror_with_name ("Couldn't get AltiVec registers");
|
||||
perror_with_name (_("Couldn't get AltiVec registers"));
|
||||
}
|
||||
|
||||
fill_vrregset (®s);
|
||||
|
||||
if (ptrace (PTRACE_SETVRREGS, tid, 0, ®s) < 0)
|
||||
perror_with_name ("Couldn't write AltiVec registers");
|
||||
perror_with_name (_("Couldn't write AltiVec registers"));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -142,7 +142,7 @@ ppc_sysv_abi_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
|
||||
memtype = builtin_type_ieee_double_little;
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "bad switch");
|
||||
internal_error (__FILE__, __LINE__, _("bad switch"));
|
||||
}
|
||||
convert_typed_floating (val, type, memval, memtype);
|
||||
write_memory (sp + argoffset, val, len);
|
||||
|
@ -84,7 +84,7 @@ ppcnbsd_fetch_inferior_registers (int regno)
|
||||
|
||||
if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
||||
perror_with_name ("Couldn't get registers");
|
||||
perror_with_name (_("Couldn't get registers"));
|
||||
|
||||
ppcnbsd_supply_reg ((char *) ®s, regno);
|
||||
if (regno != -1)
|
||||
@ -97,7 +97,7 @@ ppcnbsd_fetch_inferior_registers (int regno)
|
||||
|
||||
if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
|
||||
perror_with_name ("Couldn't get FP registers");
|
||||
perror_with_name (_("Couldn't get FP registers"));
|
||||
|
||||
ppcnbsd_supply_fpreg ((char *) &fpregs, regno);
|
||||
if (regno != -1)
|
||||
@ -114,13 +114,13 @@ ppcnbsd_store_inferior_registers (int regno)
|
||||
|
||||
if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
||||
perror_with_name ("Couldn't get registers");
|
||||
perror_with_name (_("Couldn't get registers"));
|
||||
|
||||
ppcnbsd_fill_reg ((char *) ®s, regno);
|
||||
|
||||
if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
||||
perror_with_name ("Couldn't write registers");
|
||||
perror_with_name (_("Couldn't write registers"));
|
||||
|
||||
if (regno != -1)
|
||||
return;
|
||||
@ -132,13 +132,13 @@ ppcnbsd_store_inferior_registers (int regno)
|
||||
|
||||
if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
|
||||
perror_with_name ("Couldn't get FP registers");
|
||||
perror_with_name (_("Couldn't get FP registers"));
|
||||
|
||||
ppcnbsd_fill_fpreg ((char *) &fpregs, regno);
|
||||
|
||||
if (ptrace (PT_SETFPREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
|
||||
perror_with_name ("Couldn't set FP registers");
|
||||
perror_with_name (_("Couldn't set FP registers"));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -44,7 +44,7 @@ fetch_inferior_registers (int regnum)
|
||||
|
||||
if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
||||
perror_with_name ("Couldn't get registers");
|
||||
perror_with_name (_("Couldn't get registers"));
|
||||
|
||||
ppcobsd_supply_gregset (&ppcobsd_gregset, current_regcache, -1,
|
||||
®s, sizeof regs);
|
||||
@ -60,14 +60,14 @@ store_inferior_registers (int regnum)
|
||||
|
||||
if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
||||
perror_with_name ("Couldn't get registers");
|
||||
perror_with_name (_("Couldn't get registers"));
|
||||
|
||||
ppcobsd_collect_gregset (&ppcobsd_gregset, current_regcache,
|
||||
regnum, ®s, sizeof regs);
|
||||
|
||||
if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
||||
perror_with_name ("Couldn't write registers");
|
||||
perror_with_name (_("Couldn't write registers"));
|
||||
}
|
||||
|
||||
|
||||
|
@ -242,7 +242,7 @@ decode_format (char **string_ptr, int oformat, int osize)
|
||||
val.size = osize ? 'h' : osize;
|
||||
else
|
||||
/* Bad value for TARGET_PTR_BIT */
|
||||
internal_error (__FILE__, __LINE__, "failed internal consistency check");
|
||||
internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
|
||||
break;
|
||||
case 'f':
|
||||
/* Floating point has to be word or giantword. */
|
||||
@ -445,7 +445,7 @@ print_scalar_formatted (const void *valaddr, struct type *type,
|
||||
break;
|
||||
|
||||
case 0:
|
||||
internal_error (__FILE__, __LINE__, "failed internal consistency check");
|
||||
internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
|
||||
|
||||
case 't':
|
||||
/* Binary; 't' stands for "two". */
|
||||
@ -1001,7 +1001,7 @@ sym_info (char *arg, int from_tty)
|
||||
unsigned int offset;
|
||||
|
||||
if (!arg)
|
||||
error_no_arg ("address");
|
||||
error_no_arg (_("address"));
|
||||
|
||||
addr = parse_and_eval_address (arg);
|
||||
ALL_OBJSECTIONS (objfile, osect)
|
||||
@ -1731,7 +1731,7 @@ printf_command (char *arg, int from_tty)
|
||||
old_cleanups = make_cleanup (free_current_contents, &val_args);
|
||||
|
||||
if (s == 0)
|
||||
error_no_arg ("format-control string and values to print");
|
||||
error_no_arg (_("format-control string and values to print"));
|
||||
|
||||
/* Skip white space before format string */
|
||||
while (*s == ' ' || *s == '\t')
|
||||
|
@ -3512,7 +3512,7 @@ procfs_attach (char *args, int from_tty)
|
||||
int pid;
|
||||
|
||||
if (!args)
|
||||
error_no_arg ("process-id to attach");
|
||||
error_no_arg (_("process-id to attach"));
|
||||
|
||||
pid = atoi (args);
|
||||
if (pid == getpid ())
|
||||
@ -3648,7 +3648,7 @@ do_detach (int signo)
|
||||
|
||||
if (signo || (proc_flags (pi) & (PR_STOPPED | PR_ISTOP)))
|
||||
if (signo || !(pi->was_stopped) ||
|
||||
query ("Was stopped when attached, make it runnable again? "))
|
||||
query (_("Was stopped when attached, make it runnable again? ")))
|
||||
{
|
||||
/* Clear any pending signal. */
|
||||
if (!proc_clear_current_fault (pi))
|
||||
@ -4912,7 +4912,7 @@ procfs_set_exec_trap (void)
|
||||
sysset_t *exitset;
|
||||
|
||||
if ((pi = create_procinfo (getpid (), 0)) == NULL)
|
||||
perror_with_name ("procfs: create_procinfo failed in child.");
|
||||
perror_with_name (_("procfs: create_procinfo failed in child."));
|
||||
|
||||
if (open_procinfo_files (pi, FD_CTL) == 0)
|
||||
{
|
||||
@ -5927,7 +5927,7 @@ proc_trace_syscalls (char *args, int from_tty, int entry_or_exit, int mode)
|
||||
error (_("you must be debugging a process to use this command."));
|
||||
|
||||
if (args == NULL || args[0] == 0)
|
||||
error_no_arg ("system call to trace");
|
||||
error_no_arg (_("system call to trace"));
|
||||
|
||||
pi = find_procinfo_or_die (PIDGET (inferior_ptid), 0);
|
||||
if (isdigit (args[0]))
|
||||
|
@ -1076,7 +1076,7 @@ read_pc_pid (ptid_t ptid)
|
||||
pc_val = ADDR_BITS_REMOVE (raw_val);
|
||||
}
|
||||
else
|
||||
internal_error (__FILE__, __LINE__, "read_pc_pid: Unable to find PC");
|
||||
internal_error (__FILE__, __LINE__, _("read_pc_pid: Unable to find PC"));
|
||||
|
||||
inferior_ptid = saved_inferior_ptid;
|
||||
return pc_val;
|
||||
@ -1095,7 +1095,7 @@ generic_target_write_pc (CORE_ADDR pc, ptid_t ptid)
|
||||
write_register_pid (PC_REGNUM, pc, ptid);
|
||||
else
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"generic_target_write_pc");
|
||||
_("generic_target_write_pc"));
|
||||
}
|
||||
|
||||
void
|
||||
@ -1131,7 +1131,7 @@ read_sp (void)
|
||||
/* Try SP_REGNUM last: this makes all sorts of [wrong] assumptions
|
||||
about the architecture so put it at the end. */
|
||||
return read_register (SP_REGNUM);
|
||||
internal_error (__FILE__, __LINE__, "read_sp: Unable to find SP");
|
||||
internal_error (__FILE__, __LINE__, _("read_sp: Unable to find SP"));
|
||||
}
|
||||
|
||||
static void
|
||||
@ -1166,7 +1166,7 @@ dump_endian_bytes (struct ui_file *file, enum bfd_endian endian,
|
||||
fprintf_unfiltered (file, "%02x", buf[i]);
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "Bad switch");
|
||||
internal_error (__FILE__, __LINE__, _("Bad switch"));
|
||||
}
|
||||
}
|
||||
|
||||
@ -1373,7 +1373,7 @@ regcache_print (char *args, enum regcache_dump_what what_to_dump)
|
||||
{
|
||||
struct ui_file *file = gdb_fopen (args, "w");
|
||||
if (file == NULL)
|
||||
perror_with_name ("maintenance print architecture");
|
||||
perror_with_name (_("maintenance print architecture"));
|
||||
regcache_dump (current_regcache, file, what_to_dump);
|
||||
ui_file_delete (file);
|
||||
}
|
||||
|
@ -215,7 +215,7 @@ reggroups_dump (struct gdbarch *gdbarch, struct ui_file *file)
|
||||
type = "internal";
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "bad switch");
|
||||
internal_error (__FILE__, __LINE__, _("bad switch"));
|
||||
}
|
||||
}
|
||||
fprintf_unfiltered (file, " %-10s", type);
|
||||
@ -240,7 +240,7 @@ maintenance_print_reggroups (char *args, int from_tty)
|
||||
{
|
||||
struct ui_file *file = gdb_fopen (args, "w");
|
||||
if (file == NULL)
|
||||
perror_with_name ("maintenance print reggroups");
|
||||
perror_with_name (_("maintenance print reggroups"));
|
||||
reggroups_dump (current_gdbarch, file);
|
||||
ui_file_delete (file);
|
||||
}
|
||||
|
@ -788,7 +788,7 @@ fetch_regs_from_dump (int (*nextchar) (), char *want)
|
||||
int thischar = nextchar ();
|
||||
|
||||
if (want == NULL)
|
||||
internal_error (__FILE__, __LINE__, "Register set not selected.");
|
||||
internal_error (__FILE__, __LINE__, _("Register set not selected."));
|
||||
|
||||
while (*want)
|
||||
{
|
||||
@ -877,7 +877,7 @@ fetch_regs_from_dump (int (*nextchar) (), char *want)
|
||||
}
|
||||
|
||||
else
|
||||
internal_error (__FILE__, __LINE__, "failed internal consistency check");
|
||||
internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
|
||||
}
|
||||
store_signed_integer (buf,
|
||||
register_size (current_gdbarch, regno),
|
||||
@ -2112,7 +2112,7 @@ e7000_wait (ptid_t ptid, struct target_waitstatus *status)
|
||||
break;
|
||||
default:
|
||||
/* Get the user's attention - this should never happen. */
|
||||
internal_error (__FILE__, __LINE__, "failed internal consistency check");
|
||||
internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
|
||||
}
|
||||
|
||||
return inferior_ptid;
|
||||
|
@ -1213,7 +1213,7 @@ mips_request (int cmd,
|
||||
{
|
||||
if (mips_need_reply)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"mips_request: Trying to send command before reply");
|
||||
_("mips_request: Trying to send command before reply"));
|
||||
sprintf (buff, "0x0 %c 0x%s 0x%s", cmd, paddr_nz (addr), paddr_nz (data));
|
||||
mips_send_packet (buff, 1);
|
||||
mips_need_reply = 1;
|
||||
@ -1224,7 +1224,7 @@ mips_request (int cmd,
|
||||
|
||||
if (!mips_need_reply)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"mips_request: Trying to get reply before command");
|
||||
_("mips_request: Trying to get reply before command"));
|
||||
|
||||
mips_need_reply = 0;
|
||||
|
||||
@ -2540,7 +2540,7 @@ common_breakpoint (int set, CORE_ADDR addr, int len, enum break_type type)
|
||||
flags = "f";
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "failed internal consistency check");
|
||||
internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
|
||||
}
|
||||
|
||||
cmd = 'B';
|
||||
|
@ -495,13 +495,13 @@ send_rdp (char *template,...)
|
||||
*pi = get_byte ();
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "failed internal consistency check");
|
||||
internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
|
||||
}
|
||||
}
|
||||
va_end (alist);
|
||||
|
||||
if (dst != buf)
|
||||
internal_error (__FILE__, __LINE__, "failed internal consistency check");
|
||||
internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
|
||||
}
|
||||
|
||||
|
||||
@ -1126,7 +1126,7 @@ remote_rdp_open (char *args, int from_tty)
|
||||
int not_icebreaker;
|
||||
|
||||
if (!args)
|
||||
error_no_arg ("serial port device name");
|
||||
error_no_arg (_("serial port device name"));
|
||||
|
||||
baud_rate = 9600;
|
||||
|
||||
|
@ -728,7 +728,7 @@ putmessage (unsigned char *buf, int len)
|
||||
and giving it a checksum. */
|
||||
|
||||
if (len > 170) /* Prosanity check */
|
||||
internal_error (__FILE__, __LINE__, "failed internal consistency check");
|
||||
internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
|
||||
|
||||
if (remote_debug)
|
||||
{
|
||||
|
@ -364,7 +364,7 @@ gdbsim_store_register (int regno)
|
||||
tmp, register_size (current_gdbarch, regno));
|
||||
if (nr_bytes > 0 && nr_bytes != register_size (current_gdbarch, regno))
|
||||
internal_error (__FILE__, __LINE__,
|
||||
"Register size different to expected");
|
||||
_("Register size different to expected"));
|
||||
/* FIXME: cagney/2002-05-27: Should check `nr_bytes == 0'
|
||||
indicating that GDB and the SIM have different ideas about
|
||||
which registers are fetchable. */
|
||||
|
@ -108,7 +108,7 @@ readchar (int timeout)
|
||||
error (_("Timeout reading from remote system."));
|
||||
}
|
||||
|
||||
perror_with_name ("remote-st2000");
|
||||
perror_with_name (_("remote-st2000"));
|
||||
}
|
||||
|
||||
/* Scan input from the remote system, until STRING is found. If DISCARD is
|
||||
@ -302,7 +302,7 @@ or target st2000 <host> <port>\n"));
|
||||
#if defined (LOG_FILE)
|
||||
log_file = fopen (LOG_FILE, "w");
|
||||
if (log_file == NULL)
|
||||
perror_with_name (LOG_FILE);
|
||||
perror_with_name ((LOG_FILE));
|
||||
#endif
|
||||
|
||||
/* Hello? Are you there? */
|
||||
@ -710,13 +710,13 @@ connect_command (char *args, int fromtty)
|
||||
while (numfds == 0);
|
||||
|
||||
if (numfds < 0)
|
||||
perror_with_name ("select");
|
||||
perror_with_name (("select"));
|
||||
|
||||
if (FD_ISSET (0, &readfds))
|
||||
{ /* tty input, send to stdebug */
|
||||
c = getchar ();
|
||||
if (c < 0)
|
||||
perror_with_name ("connect");
|
||||
perror_with_name (("connect"));
|
||||
|
||||
printf_stdebug ("%c", c);
|
||||
switch (cur_esc)
|
||||
|
@ -282,7 +282,7 @@ sr_write (char *a, int l)
|
||||
int i;
|
||||
|
||||
if (serial_write (sr_get_desc (), a, l) != 0)
|
||||
perror_with_name ("sr_write: Error writing to remote");
|
||||
perror_with_name (_("sr_write: Error writing to remote"));
|
||||
|
||||
if (sr_get_debug () > 0)
|
||||
for (i = 0; i < l; i++)
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user