diff options
Diffstat (limited to 'gdb')
136 files changed, 725 insertions, 692 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ad02de1..2f8c1db 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index f9c1d1e..7e84853 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -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) { diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index 23ea710..ed3cd8b 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -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); diff --git a/gdb/cli/cli-logging.c b/gdb/cli/cli-logging.c index c42892d..8df6b85 100644 --- a/gdb/cli/cli-logging.c +++ b/gdb/cli/cli-logging.c @@ -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); diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c index 51d55f1..6d3122b 100644 --- a/gdb/cli/cli-script.c +++ b/gdb/cli/cli-script.c @@ -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")); } } diff --git a/gdb/cli/cli-setshow.c b/gdb/cli/cli-setshow.c index d87791e..b0c0acd 100644 --- a/gdb/cli/cli-setshow.c +++ b/gdb/cli/cli-setshow.c @@ -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; diff --git a/gdb/cp-abi.c b/gdb/cp-abi.c index b751363..2ab4f9d 100644 --- a/gdb/cp-abi.c +++ b/gdb/cp-abi.c @@ -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) diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c index 910289f..3b4a5ff 100644 --- a/gdb/cp-namespace.c +++ b/gdb/cp-namespace.c @@ -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.")); } } diff --git a/gdb/cp-support.c b/gdb/cp-support.c index ad5e169..41c6480 100644 --- a/gdb/cp-support.c +++ b/gdb/cp-support.c @@ -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 --; diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c index ef315a6..b5335e3 100644 --- a/gdb/cris-tdep.c +++ b/gdb/cris-tdep.c @@ -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 diff --git a/gdb/dbxread.c b/gdb/dbxread.c index f4dd407..5b2c80a 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -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; } diff --git a/gdb/dictionary.c b/gdb/dictionary.c index 09851ef..a45ef3c 100644 --- a/gdb/dictionary.c +++ b/gdb/dictionary.c @@ -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. */ diff --git a/gdb/dsrec.c b/gdb/dsrec.c index 367b1a7..8addfcc 100644 --- a/gdb/dsrec.c +++ b/gdb/dsrec.c @@ -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 diff --git a/gdb/dummy-frame.c b/gdb/dummy-frame.c index 95d0adf..10596b9 100644 --- a/gdb/dummy-frame.c +++ b/gdb/dummy-frame.c @@ -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); } diff --git a/gdb/dve3900-rom.c b/gdb/dve3900-rom.c index 91590f5..f1b38f1 100644 --- a/gdb/dve3900-rom.c +++ b/gdb/dve3900-rom.c @@ -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]; diff --git a/gdb/dwarf2-frame.c b/gdb/dwarf2-frame.c index fc0ac8b..cedeaa1 100644 --- a/gdb/dwarf2-frame.c +++ b/gdb/dwarf2-frame.c @@ -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; diff --git a/gdb/dwarf2expr.c b/gdb/dwarf2expr.c index 7b9374a..0d318e4 100644 --- a/gdb/dwarf2expr.c +++ b/gdb/dwarf2expr.c @@ -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)); } diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 564d3ac..85c5500 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -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; diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c index f36fb1f..72718fe 100644 --- a/gdb/dwarfread.c +++ b/gdb/dwarfread.c @@ -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; diff --git a/gdb/elfread.c b/gdb/elfread.c index 99ae93c..568d9f4 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -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. */ diff --git a/gdb/event-loop.c b/gdb/event-loop.c index 5f3d30e..71e8d4d 100644 --- a/gdb/event-loop.c +++ b/gdb/event-loop.c @@ -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 diff --git a/gdb/exceptions.c b/gdb/exceptions.c index 610f168..98e6f25 100644 --- a/gdb/exceptions.c +++ b/gdb/exceptions.c @@ -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) { diff --git a/gdb/f-lang.c b/gdb/f-lang.c index 2d779d7..d5b40cd 100644 --- a/gdb/f-lang.c +++ b/gdb/f-lang.c @@ -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) diff --git a/gdb/findvar.c b/gdb/findvar.c index fb9217d..84964f3 100644 --- a/gdb/findvar.c +++ b/gdb/findvar.c @@ -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); } diff --git a/gdb/fork-child.c b/gdb/fork-child.c index 718a3d2..4d8a857 100644 --- a/gdb/fork-child.c +++ b/gdb/fork-child.c @@ -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) { diff --git a/gdb/frame-unwind.c b/gdb/frame-unwind.c index 9e30c78..28192fb 100644 --- a/gdb/frame-unwind.c +++ b/gdb/frame-unwind.c @@ -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 */ diff --git a/gdb/frame.c b/gdb/frame.c index bfa9380..c1988b8 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -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 */ diff --git a/gdb/frv-linux-tdep.c b/gdb/frv-linux-tdep.c index 850c143..e78fe39 100644 --- a/gdb/frv-linux-tdep.c +++ b/gdb/frv-linux-tdep.c @@ -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; diff --git a/gdb/frv-tdep.c b/gdb/frv-tdep.c index 844cccb..32eb92e 100644 --- a/gdb/frv-tdep.c +++ b/gdb/frv-tdep.c @@ -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); } diff --git a/gdb/gdb_assert.h b/gdb/gdb_assert.h index 9cad74c..0c3612e 100644 --- a/gdb/gdb_assert.h +++ b/gdb/gdb_assert.h @@ -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 diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index 172a350..5b2f9a2 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -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); diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index 06be9b5..d3a20e4 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -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. diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index 4527ba9..404ffe4 100644 --- a/gdb/gnu-nat.c +++ b/gdb/gnu-nat.c @@ -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); diff --git a/gdb/go32-nat.c b/gdb/go32-nat.c index e0223f4..16e42a5 100644 --- a/gdb/go32-nat.c +++ b/gdb/go32-nat.c @@ -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) diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 66ea2e3..f2d3ff6 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -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); diff --git a/gdb/hppabsd-nat.c b/gdb/hppabsd-nat.c index fb53c96..a7a85e5 100644 --- a/gdb/hppabsd-nat.c +++ b/gdb/hppabsd-nat.c @@ -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")); } } diff --git a/gdb/hpread.c b/gdb/hpread.c index 77a10db..6f27b45 100644 --- a/gdb/hpread.c +++ b/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: diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c index 78394d0..f04b091 100644 --- a/gdb/i386-linux-nat.c +++ b/gdb/i386-linux-nat.c @@ -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 diff --git a/gdb/i386-nat.c b/gdb/i386-nat.c index 6b5f49b..5388ef9 100644 --- a/gdb/i386-nat.c +++ b/gdb/i386-nat.c @@ -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 diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index 6fca2b2..fd0f5cf 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -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 diff --git a/gdb/i386bsd-nat.c b/gdb/i386bsd-nat.c index 4456715..a19b265 100644 --- a/gdb/i386bsd-nat.c +++ b/gdb/i386bsd-nat.c @@ -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 diff --git a/gdb/i386fbsd-nat.c b/gdb/i386fbsd-nat.c index 29a02f0..bb516fe 100644 --- a/gdb/i386fbsd-nat.c +++ b/gdb/i386fbsd-nat.c @@ -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")); } diff --git a/gdb/inf-ptrace.c b/gdb/inf-ptrace.c index 7733eec..9d711c0 100644 --- a/gdb/inf-ptrace.c +++ b/gdb/inf-ptrace.c @@ -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")); diff --git a/gdb/inf-ttrace.c b/gdb/inf-ttrace.c index 5f83712..1685af8 100644 --- a/gdb/inf-ttrace.c +++ b/gdb/inf-ttrace.c @@ -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. */ diff --git a/gdb/infcall.c b/gdb/infcall.c index 67bcb5b..9246cc0 100644 --- a/gdb/infcall.c +++ b/gdb/infcall.c @@ -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. */ diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 8e66475..704e321 100644 --- a/gdb/infcmd.c +++ b/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 (); diff --git a/gdb/inflow.c b/gdb/inflow.c index 7ea00e0..c253735 100644 --- a/gdb/inflow.c +++ b/gdb/inflow.c @@ -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. */ diff --git a/gdb/infptrace.c b/gdb/infptrace.c index e69c569..5d2e811 100644 --- a/gdb/infptrace.c +++ b/gdb/infptrace.c @@ -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")); diff --git a/gdb/infrun.c b/gdb/infrun.c index 09be710..7ab427c 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -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. */ diff --git a/gdb/inftarg.c b/gdb/inftarg.c index 1d0b286..f7e9192 100644 --- a/gdb/inftarg.c +++ b/gdb/inftarg.c @@ -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); diff --git a/gdb/interps.c b/gdb/interps.c index 669b041..dc65745 100644 --- a/gdb/interps.c +++ b/gdb/interps.c @@ -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; } diff --git a/gdb/language.c b/gdb/language.c index e10ac60..6482823 100644 --- a/gdb/language.c +++ b/gdb/language.c @@ -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) diff --git a/gdb/linespec.c b/gdb/linespec.c index 808f061..cae9067 100644 --- a/gdb/linespec.c +++ b/gdb/linespec.c @@ -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) diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 8500493..70df9ea 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -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); } diff --git a/gdb/m32r-linux-nat.c b/gdb/m32r-linux-nat.c index 7b35087..a8c5031 100644 --- a/gdb/m32r-linux-nat.c +++ b/gdb/m32r-linux-nat.c @@ -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); } diff --git a/gdb/m68k-tdep.c b/gdb/m68k-tdep.c index ed62a45..be1845e 100644 --- a/gdb/m68k-tdep.c +++ b/gdb/m68k-tdep.c @@ -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; } diff --git a/gdb/m68kbsd-nat.c b/gdb/m68kbsd-nat.c index d84d85c..9e1366d 100644 --- a/gdb/m68kbsd-nat.c +++ b/gdb/m68kbsd-nat.c @@ -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")); } } diff --git a/gdb/m68klinux-nat.c b/gdb/m68klinux-nat.c index 9729d89..c135acc 100644 --- a/gdb/m68klinux-nat.c +++ b/gdb/m68klinux-nat.c @@ -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. */ diff --git a/gdb/m88kbsd-nat.c b/gdb/m88kbsd-nat.c index 472eb76..2a2b28e 100644 --- a/gdb/m88kbsd-nat.c +++ b/gdb/m88kbsd-nat.c @@ -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")); } diff --git a/gdb/macroexp.c b/gdb/macroexp.c index 2c7b682..2ca341a 100644 --- a/gdb/macroexp.c +++ b/gdb/macroexp.c @@ -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")); } diff --git a/gdb/macroscope.c b/gdb/macroscope.c index 19557d7..ed3ea83 100644 --- a/gdb/macroscope.c +++ b/gdb/macroscope.c @@ -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); } diff --git a/gdb/macrotab.c b/gdb/macrotab.c index 56ee2a4..08d931a 100644 --- a/gdb/macrotab.c +++ b/gdb/macrotab.c @@ -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 } diff --git a/gdb/maint.c b/gdb/maint.c index 67caf38..bad2e4d 100644 --- a/gdb/maint.c +++ b/gdb/maint.c @@ -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); } diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index 41cfec0..25a3e6b 100644 --- a/gdb/mdebugread.c +++ b/gdb/mdebugread.c @@ -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); diff --git a/gdb/memattr.c b/gdb/memattr.c index db75c28..47e716e 100644 --- a/gdb/memattr.c +++ b/gdb/memattr.c @@ -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) diff --git a/gdb/mi/mi-cmd-break.c b/gdb/mi/mi-cmd-break.c index 4b39625..50a1cee 100644 --- a/gdb/mi/mi-cmd-break.c +++ b/gdb/mi/mi-cmd-break.c @@ -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); diff --git a/gdb/mi/mi-cmds.c b/gdb/mi/mi-cmds.c index 918676d..e174910 100644 --- a/gdb/mi/mi-cmds.c +++ b/gdb/mi/mi-cmds.c @@ -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) diff --git a/gdb/mi/mi-console.c b/gdb/mi/mi-console.c index aca0086..1df5e24 100644 --- a/gdb/mi/mi-console.c +++ b/gdb/mi/mi-console.c @@ -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); } diff --git a/gdb/mi/mi-getopt.c b/gdb/mi/mi-getopt.c index 8d29957..052a84a 100644 --- a/gdb/mi/mi-getopt.c +++ b/gdb/mi/mi-getopt.c @@ -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]; diff --git a/gdb/mi/mi-out.c b/gdb/mi/mi-out.c index 2be9d17..361cf69 100644 --- a/gdb/mi/mi-out.c +++ b/gdb/mi/mi-out.c @@ -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; } diff --git a/gdb/mips-linux-tdep.c b/gdb/mips-linux-tdep.c index f9497eb..6b621f5 100644 --- a/gdb/mips-linux-tdep.c +++ b/gdb/mips-linux-tdep.c @@ -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; } diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index b225f73..608c146 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -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); diff --git a/gdb/mips64obsd-nat.c b/gdb/mips64obsd-nat.c index d3f1d69..56a8608 100644 --- a/gdb/mips64obsd-nat.c +++ b/gdb/mips64obsd-nat.c @@ -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")); } diff --git a/gdb/mipsnbsd-nat.c b/gdb/mipsnbsd-nat.c index c952bb0..6e86609 100644 --- a/gdb/mipsnbsd-nat.c +++ b/gdb/mipsnbsd-nat.c @@ -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")); } } diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c index 9dbbbc7..03d2402 100644 --- a/gdb/mn10300-tdep.c +++ b/gdb/mn10300-tdep.c @@ -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;
}
diff --git a/gdb/monitor.c b/gdb/monitor.c index 76971d2..81c4876 100644 --- a/gdb/monitor.c +++ b/gdb/monitor.c @@ -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 diff --git a/gdb/nto-procfs.c b/gdb/nto-procfs.c index 0f7b346..ac67ad8 100644 --- a/gdb/nto-procfs.c +++ b/gdb/nto-procfs.c @@ -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); diff --git a/gdb/objc-lang.c b/gdb/objc-lang.c index 3179183..1c035d6 100644 --- a/gdb/objc-lang.c +++ b/gdb/objc-lang.c @@ -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; } diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 315de9a..7fa2e89 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -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")); } diff --git a/gdb/objfiles.h b/gdb/objfiles.h index d0c11d8..ec4d2e2 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -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 diff --git a/gdb/osabi.c b/gdb/osabi.c index ea84456..5014edd 100644 --- a/gdb/osabi.c +++ b/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, diff --git a/gdb/parse.c b/gdb/parse.c index 28e2257..da80b99 100644 --- a/gdb/parse.c +++ b/gdb/parse.c @@ -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; diff --git a/gdb/ppc-bdm.c b/gdb/ppc-bdm.c index 16d2532..94defa9 100644 --- a/gdb/ppc-bdm.c +++ b/gdb/ppc-bdm.c @@ -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 diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c index 9df3e3d..90a9919 100644 --- a/gdb/ppc-linux-nat.c +++ b/gdb/ppc-linux-nat.c @@ -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 diff --git a/gdb/ppc-sysv-tdep.c b/gdb/ppc-sysv-tdep.c index 481b38c..7863aca 100644 --- a/gdb/ppc-sysv-tdep.c +++ b/gdb/ppc-sysv-tdep.c @@ -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); diff --git a/gdb/ppcnbsd-nat.c b/gdb/ppcnbsd-nat.c index 6fa55d6..064f602 100644 --- a/gdb/ppcnbsd-nat.c +++ b/gdb/ppcnbsd-nat.c @@ -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")); } } diff --git a/gdb/ppcobsd-nat.c b/gdb/ppcobsd-nat.c index c36c63f..eac058b 100644 --- a/gdb/ppcobsd-nat.c +++ b/gdb/ppcobsd-nat.c @@ -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")); } diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 9b16331..28cb5bd 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -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') diff --git a/gdb/procfs.c b/gdb/procfs.c index 5976624..5a40e7f 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -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])) diff --git a/gdb/regcache.c b/gdb/regcache.c index 0fe566a..f2a8383 100644 --- a/gdb/regcache.c +++ b/gdb/regcache.c @@ -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); } diff --git a/gdb/reggroups.c b/gdb/reggroups.c index c20f886..858ab9d 100644 --- a/gdb/reggroups.c +++ b/gdb/reggroups.c @@ -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); } diff --git a/gdb/remote-e7000.c b/gdb/remote-e7000.c index 6c4cdf0..afc6d6b 100644 --- a/gdb/remote-e7000.c +++ b/gdb/remote-e7000.c @@ -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; diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index aa14c19..547e37a 100644 --- a/gdb/remote-mips.c +++ b/gdb/remote-mips.c @@ -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'; diff --git a/gdb/remote-rdp.c b/gdb/remote-rdp.c index 8c9288d..2a60f28 100644 --- a/gdb/remote-rdp.c +++ b/gdb/remote-rdp.c @@ -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; diff --git a/gdb/remote-sds.c b/gdb/remote-sds.c index 06763fa..d516cdf 100644 --- a/gdb/remote-sds.c +++ b/gdb/remote-sds.c @@ -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) { diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index 1a8302f..04d8cbe 100644 --- a/gdb/remote-sim.c +++ b/gdb/remote-sim.c @@ -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. */ diff --git a/gdb/remote-st.c b/gdb/remote-st.c index a8d8fb2..47b9ec3 100644 --- a/gdb/remote-st.c +++ b/gdb/remote-st.c @@ -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) diff --git a/gdb/remote-utils.c b/gdb/remote-utils.c index 8bfa864..d4775ad 100644 --- a/gdb/remote-utils.c +++ b/gdb/remote-utils.c @@ -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++) diff --git a/gdb/remote.c b/gdb/remote.c index f5099ad..e127c4c 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -477,8 +477,8 @@ set_memory_packet_size (char *args, struct memory_packet_config *config) /* Extra checks? */ if (fixed_p && !config->fixed_p) { - if (! query ("The target may not be able to correctly handle a %s\n" - "of %ld bytes. Change the packet size? ", + if (! query (_("The target may not be able to correctly handle a %s\n" + "of %ld bytes. Change the packet size? "), config->name, size)) error (_("Packet size not changed.")); } @@ -693,7 +693,7 @@ packet_ok (const char *buf, struct packet_config *config) break; case PACKET_DISABLE: internal_error (__FILE__, __LINE__, - "packet_ok: attempt to use a disabled packet"); + _("packet_ok: attempt to use a disabled packet")); break; case PACKET_ENABLE: break; @@ -1847,7 +1847,7 @@ remote_threads_extra_info (struct thread_info *tp) if (remote_desc == 0) /* paranoia */ internal_error (__FILE__, __LINE__, - "remote_threads_extra_info"); + _("remote_threads_extra_info")); if (use_threadextra_query) { @@ -3262,8 +3262,8 @@ remote_fetch_registers (int regnum) gdb_assert (reg != NULL); if (!reg->in_g_packet) internal_error (__FILE__, __LINE__, - "Attempt to fetch a non G-packet register when this " - "remote.c does not support the p-packet."); + _("Attempt to fetch a non G-packet register when this " + "remote.c does not support the p-packet.")); } switch (remote_protocol_p.support) { @@ -3664,9 +3664,9 @@ remote_write_bytes (CORE_ADDR memaddr, char *myaddr, int len) break; case PACKET_SUPPORT_UNKNOWN: internal_error (__FILE__, __LINE__, - "remote_write_bytes: bad internal state"); + _("remote_write_bytes: bad internal state")); default: - internal_error (__FILE__, __LINE__, "bad switch"); + internal_error (__FILE__, __LINE__, _("bad switch")); } /* Append "<memaddr>". */ @@ -3731,9 +3731,9 @@ remote_write_bytes (CORE_ADDR memaddr, char *myaddr, int len) break; case PACKET_SUPPORT_UNKNOWN: internal_error (__FILE__, __LINE__, - "remote_write_bytes: bad internal state"); + _("remote_write_bytes: bad internal state")); default: - internal_error (__FILE__, __LINE__, "bad switch"); + internal_error (__FILE__, __LINE__, _("bad switch")); } putpkt_binary (buf, (int) (p - buf)); @@ -3893,7 +3893,7 @@ readchar (int timeout) error (_("Remote connection closed")); /* no return */ case SERIAL_ERROR: - perror_with_name ("Remote communication error"); + perror_with_name (_("Remote communication error")); /* no return */ case SERIAL_TIMEOUT: break; @@ -3982,7 +3982,7 @@ putpkt_binary (char *buf, int cnt) gdb_flush (gdb_stdlog); } if (serial_write (remote_desc, buf2, p - buf2)) - perror_with_name ("putpkt: write failed"); + perror_with_name (_("putpkt: write failed")); /* Read until either a timeout occurs (-2) or '+' is read. */ while (1) @@ -4576,7 +4576,7 @@ watchpoint_to_Z_packet (int type) break; default: internal_error (__FILE__, __LINE__, - "hw_bp_to_z: bad watchpoint type %d", type); + _("hw_bp_to_z: bad watchpoint type %d"), type); } } @@ -4611,7 +4611,7 @@ remote_insert_watchpoint (CORE_ADDR addr, int len, int type) return 0; } internal_error (__FILE__, __LINE__, - "remote_insert_watchpoint: reached end of function"); + _("remote_insert_watchpoint: reached end of function")); } @@ -4645,7 +4645,7 @@ remote_remove_watchpoint (CORE_ADDR addr, int len, int type) return 0; } internal_error (__FILE__, __LINE__, - "remote_remove_watchpoint: reached end of function"); + _("remote_remove_watchpoint: reached end of function")); } @@ -4739,7 +4739,7 @@ remote_insert_hw_breakpoint (CORE_ADDR addr, char *shadow) return 0; } internal_error (__FILE__, __LINE__, - "remote_insert_hw_breakpoint: reached end of function"); + _("remote_insert_hw_breakpoint: reached end of function")); } @@ -4781,7 +4781,7 @@ remote_remove_hw_breakpoint (CORE_ADDR addr, char *shadow) return 0; } internal_error (__FILE__, __LINE__, - "remote_remove_hw_breakpoint: reached end of function"); + _("remote_remove_hw_breakpoint: reached end of function")); } /* Some targets are only capable of doing downloads, and afterwards @@ -5398,7 +5398,7 @@ remote_async (void (*callback) (enum inferior_event_type event_type, { if (current_target.to_async_mask_value == 0) internal_error (__FILE__, __LINE__, - "Calling remote_async when async is masked"); + _("Calling remote_async when async is masked")); if (callback != NULL) { diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c index 88a6f0d..c930097 100644 --- a/gdb/rs6000-nat.c +++ b/gdb/rs6000-nat.c @@ -1036,10 +1036,8 @@ set_host_arch (int pid) info.abfd = exec_bfd; if (!gdbarch_update_p (info)) - { - internal_error (__FILE__, __LINE__, - "set_host_arch: failed to select architecture"); - } + internal_error (__FILE__, __LINE__, + _("set_host_arch: failed to select architecture")); } @@ -1079,7 +1077,7 @@ xcoff_relocate_symtab (unsigned int pid) if (errno == ENOMEM) load_segs *= 2; else - perror_with_name ("ptrace ldinfo"); + perror_with_name (_("ptrace ldinfo")); } else { diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index e095626..bca4a17 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -1857,7 +1857,7 @@ rs6000_register_type (struct gdbarch *gdbarch, int n) return builtin_type_vec128; break; default: - internal_error (__FILE__, __LINE__, "Register %d size %d unknown", + internal_error (__FILE__, __LINE__, _("Register %d size %d unknown"), n, size); } } @@ -2025,8 +2025,8 @@ e500_pseudo_register_read (struct gdbarch *gdbarch, struct regcache *regcache, e500_move_ev_register (regcache_raw_read, regcache, reg_nr, buffer); else internal_error (__FILE__, __LINE__, - "e500_pseudo_register_read: " - "called on unexpected register '%s' (%d)", + _("e500_pseudo_register_read: " + "called on unexpected register '%s' (%d)"), gdbarch_register_name (gdbarch, reg_nr), reg_nr); } @@ -2046,8 +2046,8 @@ e500_pseudo_register_write (struct gdbarch *gdbarch, struct regcache *regcache, regcache, reg_nr, (void *) buffer); else internal_error (__FILE__, __LINE__, - "e500_pseudo_register_read: " - "called on unexpected register '%s' (%d)", + _("e500_pseudo_register_read: " + "called on unexpected register '%s' (%d)"), gdbarch_register_name (gdbarch, reg_nr), reg_nr); } @@ -2183,8 +2183,8 @@ rs6000_store_return_value (struct type *type, regnum = tdep->ppc_vr0_regnum + 2; else internal_error (__FILE__, __LINE__, - "rs6000_store_return_value: " - "unexpected array return type"); + _("rs6000_store_return_value: " + "unexpected array return type")); } else /* Everything else is returned in GPR3 and up. */ @@ -3254,8 +3254,8 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) } else internal_error (__FILE__, __LINE__, - "rs6000_gdbarch_init: " - "received unexpected BFD 'arch' value"); + _("rs6000_gdbarch_init: " + "received unexpected BFD 'arch' value")); /* Sanity check on registers. */ gdb_assert (strcmp (tdep->regs[tdep->ppc_gp0_regnum].name, "r0") == 0); diff --git a/gdb/s390-nat.c b/gdb/s390-nat.c index b8da548..0fa7003 100644 --- a/gdb/s390-nat.c +++ b/gdb/s390-nat.c @@ -136,7 +136,7 @@ fetch_regs (int tid) parea.process_addr = (addr_t) ®s; parea.kernel_addr = offsetof (struct user_regs_struct, psw); if (ptrace (PTRACE_PEEKUSR_AREA, tid, (long) &parea) < 0) - perror_with_name ("Couldn't get registers"); + perror_with_name (_("Couldn't get registers")); supply_gregset (®s); } @@ -153,12 +153,12 @@ store_regs (int tid, int regnum) parea.process_addr = (addr_t) ®s; parea.kernel_addr = offsetof (struct user_regs_struct, psw); if (ptrace (PTRACE_PEEKUSR_AREA, tid, (long) &parea) < 0) - perror_with_name ("Couldn't get registers"); + perror_with_name (_("Couldn't get registers")); fill_gregset (®s, regnum); if (ptrace (PTRACE_POKEUSR_AREA, tid, (long) &parea) < 0) - perror_with_name ("Couldn't write registers"); + perror_with_name (_("Couldn't write registers")); } /* Fetch all floating-point registers from process/thread TID and store @@ -173,7 +173,7 @@ fetch_fpregs (int tid) parea.process_addr = (addr_t) &fpregs; parea.kernel_addr = offsetof (struct user_regs_struct, fp_regs); if (ptrace (PTRACE_PEEKUSR_AREA, tid, (long) &parea) < 0) - perror_with_name ("Couldn't get floating point status"); + perror_with_name (_("Couldn't get floating point status")); supply_fpregset (&fpregs); } @@ -190,12 +190,12 @@ store_fpregs (int tid, int regnum) parea.process_addr = (addr_t) &fpregs; parea.kernel_addr = offsetof (struct user_regs_struct, fp_regs); if (ptrace (PTRACE_PEEKUSR_AREA, tid, (long) &parea) < 0) - perror_with_name ("Couldn't get floating point status"); + perror_with_name (_("Couldn't get floating point status")); fill_fpregset (&fpregs, regnum); if (ptrace (PTRACE_POKEUSR_AREA, tid, (long) &parea) < 0) - perror_with_name ("Couldn't write floating point status"); + perror_with_name (_("Couldn't write floating point status")); } /* Fetch register REGNUM from the child process. If REGNUM is -1, do @@ -262,7 +262,7 @@ s390_stopped_by_watchpoint (void) parea.process_addr = (addr_t) & per_lowcore; parea.kernel_addr = offsetof (struct user_regs_struct, per_info.lowcore); if (ptrace (PTRACE_PEEKUSR_AREA, s390_inferior_tid (), &parea) < 0) - perror_with_name ("Couldn't retrieve watchpoint status"); + perror_with_name (_("Couldn't retrieve watchpoint status")); return per_lowcore.perc_storage_alteration == 1 && per_lowcore.perc_store_real_address == 0; @@ -289,7 +289,7 @@ s390_fix_watch_points (void) parea.process_addr = (addr_t) & per_info; parea.kernel_addr = offsetof (struct user_regs_struct, per_info); if (ptrace (PTRACE_PEEKUSR_AREA, tid, &parea) < 0) - perror_with_name ("Couldn't retrieve watchpoint status"); + perror_with_name (_("Couldn't retrieve watchpoint status")); if (watch_base) { @@ -305,7 +305,7 @@ s390_fix_watch_points (void) per_info.ending_addr = watch_hi_addr; if (ptrace (PTRACE_POKEUSR_AREA, tid, &parea) < 0) - perror_with_name ("Couldn't modify watchpoint status"); + perror_with_name (_("Couldn't modify watchpoint status")); } int diff --git a/gdb/s390-tdep.c b/gdb/s390-tdep.c index 3e57b71..55c4904 100644 --- a/gdb/s390-tdep.c +++ b/gdb/s390-tdep.c @@ -227,7 +227,7 @@ s390_pseudo_register_read (struct gdbarch *gdbarch, struct regcache *regcache, break; default: - internal_error (__FILE__, __LINE__, "invalid regnum"); + internal_error (__FILE__, __LINE__, _("invalid regnum")); } } @@ -254,7 +254,7 @@ s390_pseudo_register_write (struct gdbarch *gdbarch, struct regcache *regcache, break; default: - internal_error (__FILE__, __LINE__, "invalid regnum"); + internal_error (__FILE__, __LINE__, _("invalid regnum")); } } @@ -276,7 +276,7 @@ s390x_pseudo_register_read (struct gdbarch *gdbarch, struct regcache *regcache, break; default: - internal_error (__FILE__, __LINE__, "invalid regnum"); + internal_error (__FILE__, __LINE__, _("invalid regnum")); } } @@ -300,7 +300,7 @@ s390x_pseudo_register_write (struct gdbarch *gdbarch, struct regcache *regcache, break; default: - internal_error (__FILE__, __LINE__, "invalid regnum"); + internal_error (__FILE__, __LINE__, _("invalid regnum")); } } @@ -2628,7 +2628,7 @@ s390_push_dummy_call (struct gdbarch *gdbarch, struct value *function, } } else - internal_error (__FILE__, __LINE__, "unknown argument type"); + internal_error (__FILE__, __LINE__, _("unknown argument type")); } } @@ -2729,7 +2729,7 @@ s390_return_value (struct gdbarch *gdbarch, struct type *type, (const char *)in + word_size); } else - internal_error (__FILE__, __LINE__, "invalid return type"); + internal_error (__FILE__, __LINE__, _("invalid return type")); break; case RETURN_VALUE_STRUCT_CONVENTION: @@ -2762,7 +2762,7 @@ s390_return_value (struct gdbarch *gdbarch, struct type *type, (char *)out + word_size); } else - internal_error (__FILE__, __LINE__, "invalid return type"); + internal_error (__FILE__, __LINE__, _("invalid return type")); break; case RETURN_VALUE_STRUCT_CONVENTION: diff --git a/gdb/sentinel-frame.c b/gdb/sentinel-frame.c index b17bc82..136dad8 100644 --- a/gdb/sentinel-frame.c +++ b/gdb/sentinel-frame.c @@ -78,7 +78,7 @@ sentinel_frame_this_id (struct frame_info *next_frame, /* The sentinel frame is used as a starting point for creating the previous (inner most) frame. That frame's THIS_ID method will be called to determine the inner most frame's ID. Not this one. */ - internal_error (__FILE__, __LINE__, "sentinel_frame_this_id called"); + internal_error (__FILE__, __LINE__, _("sentinel_frame_this_id called")); } static CORE_ADDR diff --git a/gdb/serial.c b/gdb/serial.c index 7311dd8..eeac0e3 100644 --- a/gdb/serial.c +++ b/gdb/serial.c @@ -347,7 +347,7 @@ serial_readchar (struct serial *scb, int timeout) code is finished. */ if (0 && serial_is_async_p (scb) && timeout < 0) internal_error (__FILE__, __LINE__, - "serial_readchar: blocking read in async mode"); + _("serial_readchar: blocking read in async mode")); ch = scb->ops->readchar (scb, timeout); if (serial_logfp != NULL) @@ -507,7 +507,7 @@ deprecated_serial_fd (struct serial *scb) if (scb->fd < 0) { internal_error (__FILE__, __LINE__, - "serial: FD not valid"); + _("serial: FD not valid")); } return scb->fd; /* sigh */ } @@ -597,7 +597,7 @@ connect_command (char *args, int fromtty) break; if (c < 0) - perror_with_name ("connect"); + perror_with_name (_("connect")); cx = c; serial_write (port_desc, &cx, 1); @@ -635,7 +635,7 @@ connect_command (char *args, int fromtty) break; if (c < 0) - perror_with_name ("connect"); + perror_with_name (_("connect")); cx = c; diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c index 4da61fc..cde1555 100644 --- a/gdb/sh-tdep.c +++ b/gdb/sh-tdep.c @@ -2013,7 +2013,7 @@ sh_print_pseudo_register (struct gdbarch *gdbarch, struct ui_file *file, { if (regnum < NUM_REGS || regnum >= NUM_REGS + NUM_PSEUDO_REGS) internal_error (__FILE__, __LINE__, - "Invalid pseudo register number %d\n", regnum); + _("Invalid pseudo register number %d\n"), regnum); else if (regnum == PSEUDO_BANK_REGNUM) do_bank_register_info (gdbarch, file); else if (regnum >= DR0_REGNUM && regnum <= DR_LAST_REGNUM) @@ -2088,7 +2088,7 @@ sh_print_register (struct gdbarch *gdbarch, struct ui_file *file, int regnum) { if (regnum < 0 || regnum >= NUM_REGS + NUM_PSEUDO_REGS) internal_error (__FILE__, __LINE__, - "Invalid register number %d\n", regnum); + _("Invalid register number %d\n"), regnum); else if (regnum >= 0 && regnum < NUM_REGS) { diff --git a/gdb/sh3-rom.c b/gdb/sh3-rom.c index 3a01e25..7177b76 100644 --- a/gdb/sh3-rom.c +++ b/gdb/sh3-rom.c @@ -276,7 +276,7 @@ sh3_open (char *args, int from_tty) parallel = serial_open (parallel_port_name); if (!parallel) - perror_with_name ("Unable to open parallel port."); + perror_with_name (_("Unable to open parallel port.")); parallel_in_use = 1; } @@ -330,7 +330,7 @@ sh3e_open (char *args, int from_tty) parallel = serial_open (parallel_port_name); if (!parallel) - perror_with_name ("Unable to open parallel port."); + perror_with_name (_("Unable to open parallel port.")); parallel_in_use = 1; } diff --git a/gdb/sh64-tdep.c b/gdb/sh64-tdep.c index a7cde84..1652097 100644 --- a/gdb/sh64-tdep.c +++ b/gdb/sh64-tdep.c @@ -2574,7 +2574,7 @@ sh64_do_pseudo_register (int regnum) if (regnum < NUM_REGS || regnum >= NUM_REGS + NUM_PSEUDO_REGS_SH_MEDIA + NUM_PSEUDO_REGS_SH_COMPACT) internal_error (__FILE__, __LINE__, - "Invalid pseudo register number %d\n", regnum); + _("Invalid pseudo register number %d\n"), regnum); else if ((regnum >= DR0_REGNUM && regnum <= DR_LAST_REGNUM)) @@ -2634,7 +2634,7 @@ sh_print_register (struct gdbarch *gdbarch, struct ui_file *file, int regnum) { if (regnum < 0 || regnum >= NUM_REGS + NUM_PSEUDO_REGS) internal_error (__FILE__, __LINE__, - "Invalid register number %d\n", regnum); + _("Invalid register number %d\n"), regnum); else if (regnum >= 0 && regnum < NUM_REGS) { diff --git a/gdb/shnbsd-nat.c b/gdb/shnbsd-nat.c index db6dae5..c8ad340 100644 --- a/gdb/shnbsd-nat.c +++ b/gdb/shnbsd-nat.c @@ -46,7 +46,7 @@ fetch_inferior_registers (int regno) if (ptrace (PT_GETREGS, PIDGET (inferior_ptid), (PTRACE_TYPE_ARG3) &inferior_registers, 0) == -1) - perror_with_name ("Couldn't get registers"); + perror_with_name (_("Couldn't get registers")); shnbsd_supply_reg ((char *) &inferior_registers, regno); @@ -64,13 +64,13 @@ store_inferior_registers (int regno) if (ptrace (PT_GETREGS, PIDGET (inferior_ptid), (PTRACE_TYPE_ARG3) &inferior_registers, 0) == -1) - perror_with_name ("Couldn't get registers"); + perror_with_name (_("Couldn't get registers")); shnbsd_fill_reg ((char *) &inferior_registers, regno); if (ptrace (PT_SETREGS, PIDGET (inferior_ptid), (PTRACE_TYPE_ARG3) &inferior_registers, 0) == -1) - perror_with_name ("Couldn't set registers"); + perror_with_name (_("Couldn't set registers")); if (regno != -1) return; diff --git a/gdb/solib-aix5.c b/gdb/solib-aix5.c index 3c69183..f002c22 100644 --- a/gdb/solib-aix5.c +++ b/gdb/solib-aix5.c @@ -839,7 +839,7 @@ aix5_relocate_section_addresses (struct so_list *so, if (idx >= so->lm_info->nmappings) internal_error (__FILE__, __LINE__, - "aix_relocate_section_addresses: Can't find mapping for section %s", + _("aix_relocate_section_addresses: Can't find mapping for section %s"), bfd_get_section_name (sec->bfd, sec->the_bfd_section)); addr = so->lm_info->mapping[idx].addr; diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index f3fe605..6106d9e 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -1301,8 +1301,8 @@ legacy_fetch_link_map_offsets (void) else { internal_error (__FILE__, __LINE__, - "legacy_fetch_link_map_offsets called without legacy " - "link_map support enabled."); + _("legacy_fetch_link_map_offsets called without legacy " + "link_map support enabled.")); return 0; } } @@ -1319,8 +1319,8 @@ svr4_fetch_link_map_offsets (void) if (flmo == NULL) { internal_error (__FILE__, __LINE__, - "svr4_fetch_link_map_offsets: fetch_link_map_offsets " - "method not defined for this architecture."); + _("svr4_fetch_link_map_offsets: fetch_link_map_offsets " + "method not defined for this architecture.")); return 0; } else diff --git a/gdb/solib.c b/gdb/solib.c index aa15e92..f64d892 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -667,7 +667,7 @@ info_sharedlibrary_command (char *ignore, int from_tty) else { internal_error (__FILE__, __LINE__, - "TARGET_PTR_BIT returned unknown size %d", + _("TARGET_PTR_BIT returned unknown size %d"), TARGET_PTR_BIT); } diff --git a/gdb/source.c b/gdb/source.c index 14faff1..37d2b72 100644 --- a/gdb/source.c +++ b/gdb/source.c @@ -273,8 +273,8 @@ select_source_symtab (struct symtab *s) if (cs_pst->readin) { internal_error (__FILE__, __LINE__, - "select_source_symtab: " - "readin pst found and no symtabs."); + _("select_source_symtab: " + "readin pst found and no symtabs.")); } else { @@ -358,7 +358,7 @@ directory_command (char *dirname, int from_tty) /* FIXME, this goes to "delete dir"... */ if (dirname == 0) { - if (from_tty && query ("Reinitialize source path to empty? ")) + if (from_tty && query (_("Reinitialize source path to empty? "))) { xfree (source_path); init_source_path (); diff --git a/gdb/sparc-nat.c b/gdb/sparc-nat.c index 4bd7b72..f2d73c0 100644 --- a/gdb/sparc-nat.c +++ b/gdb/sparc-nat.c @@ -168,7 +168,7 @@ fetch_inferior_registers (int regnum) gregset_t regs; if (ptrace (PTRACE_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) - perror_with_name ("Couldn't get registers"); + perror_with_name (_("Couldn't get registers")); sparc_supply_gregset (sparc_gregset, regcache, -1, ®s); if (regnum != -1) @@ -180,7 +180,7 @@ fetch_inferior_registers (int regnum) fpregset_t fpregs; if (ptrace (PTRACE_GETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, 0) == -1) - perror_with_name ("Couldn't get floating point status"); + perror_with_name (_("Couldn't get floating point status")); sparc_supply_fpregset (regcache, -1, &fpregs); } @@ -203,12 +203,12 @@ store_inferior_registers (int regnum) gregset_t regs; if (ptrace (PTRACE_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) - perror_with_name ("Couldn't get registers"); + perror_with_name (_("Couldn't get registers")); sparc_collect_gregset (sparc_gregset, regcache, regnum, ®s); if (ptrace (PTRACE_SETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) - perror_with_name ("Couldn't write registers"); + perror_with_name (_("Couldn't write registers")); /* Deal with the stack regs. */ if (regnum == -1 || regnum == SPARC_SP_REGNUM @@ -229,7 +229,7 @@ store_inferior_registers (int regnum) fpregset_t fpregs, saved_fpregs; if (ptrace (PTRACE_GETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, 0) == -1) - perror_with_name ("Couldn't get floating-point registers"); + perror_with_name (_("Couldn't get floating-point registers")); memcpy (&saved_fpregs, &fpregs, sizeof (fpregs)); sparc_collect_fpregset (regcache, regnum, &fpregs); @@ -242,7 +242,7 @@ store_inferior_registers (int regnum) { if (ptrace (PTRACE_SETFPREGS, pid, (PTRACE_TYPE_ARG3) &fpregs, 0) == -1) - perror_with_name ("Couldn't write floating-point registers"); + perror_with_name (_("Couldn't write floating-point registers")); } if (regnum != -1) @@ -288,7 +288,7 @@ sparc_xfer_wcookie (struct target_ops *ops, enum target_object object, if (ptrace (PT_WCOOKIE, pid, (PTRACE_TYPE_ARG3) &wcookie, 0) == -1) { if (errno != EINVAL) - perror_with_name ("Couldn't get StackGhost cookie"); + perror_with_name (_("Couldn't get StackGhost cookie")); /* Although PT_WCOOKIE is defined on OpenBSD 3.1 and later, the request wasn't implemented until after OpenBSD 3.4. If diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 463c7b6..d3d4b31 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -174,14 +174,14 @@ static const char vb_name[] = "_vb$"; static void invalid_cpp_abbrev_complaint (const char *arg1) { - complaint (&symfile_complaints, "invalid C++ abbreviation `%s'", arg1); + complaint (&symfile_complaints, _("invalid C++ abbreviation `%s'"), arg1); } static void reg_value_complaint (int regnum, int num_regs, const char *sym) { complaint (&symfile_complaints, - "register number %d too large (max %d) in symbol %s", + _("register number %d too large (max %d) in symbol %s"), regnum, num_regs - 1, sym); } @@ -229,7 +229,7 @@ dbx_lookup_type (int typenums[2]) if (filenum < 0 || filenum >= n_this_object_header_files) { complaint (&symfile_complaints, - "Invalid symbol data: type number (%d,%d) out of range at symtab pos %d.", + _("Invalid symbol data: type number (%d,%d) out of range at symtab pos %d."), filenum, index, symnum); goto error_return; } @@ -669,7 +669,7 @@ define_symbol (CORE_ADDR valu, char *string, int desc, int type, #endif default: - complaint (&symfile_complaints, "Unknown C++ symbol name `%s'", + complaint (&symfile_complaints, _("Unknown C++ symbol name `%s'"), string); goto normal; /* Do *something* with it */ } @@ -1345,7 +1345,7 @@ define_symbol (CORE_ADDR valu, char *string, int desc, int type, static struct type * error_type (char **pp, struct objfile *objfile) { - complaint (&symfile_complaints, "couldn't parse type; debugger out of date?"); + complaint (&symfile_complaints, _("couldn't parse type; debugger out of date?")); while (1) { /* Skip to end of symbol. */ @@ -1466,7 +1466,7 @@ again: /* Complain and keep going, so compilers can invent new cross-reference types. */ complaint (&symfile_complaints, - "Unrecognized cross-reference type `%c'", (*pp)[0]); + _("Unrecognized cross-reference type `%c'"), (*pp)[0]); code = TYPE_CODE_STRUCT; break; } @@ -1672,7 +1672,7 @@ again: else { complaint (&symfile_complaints, - "Prototyped function type didn't end arguments with `#':\n%s", + _("Prototyped function type didn't end arguments with `#':\n%s"), type_start); } @@ -1783,7 +1783,7 @@ again: return_type = read_type (pp, objfile); if (*(*pp)++ != ';') complaint (&symfile_complaints, - "invalid (minimal) member type data format at symtab pos %d.", + _("invalid (minimal) member type data format at symtab pos %d."), symnum); type = allocate_stub_method (return_type); if (typenums[0] != -1) @@ -1911,7 +1911,7 @@ rs6000_builtin_type (int typenum) if (typenum >= 0 || typenum < -NUMBER_RECOGNIZED) { - complaint (&symfile_complaints, "Unknown builtin type %d", typenum); + complaint (&symfile_complaints, _("Unknown builtin type %d"), typenum); return builtin_type_error; } if (negative_types[-typenum] != NULL) @@ -2076,7 +2076,7 @@ update_method_name_from_physname (char **old_name, char *physname) if (method_name == NULL) { complaint (&symfile_complaints, - "Method has bad physname %s\n", physname); + _("Method has bad physname %s\n"), physname); return; } @@ -2274,7 +2274,7 @@ read_member_functions (struct field_info *fip, char **pp, struct type *type, break; default: complaint (&symfile_complaints, - "const/volatile indicator missing, got '%c'", **pp); + _("const/volatile indicator missing, got '%c'"), **pp); break; } @@ -2357,7 +2357,7 @@ read_member_functions (struct field_info *fip, char **pp, struct type *type, default: /* error */ complaint (&symfile_complaints, - "member function type missing, got '%c'", (*pp)[-1]); + _("member function type missing, got '%c'"), (*pp)[-1]); /* Fall through into normal member function. */ case '.': @@ -2623,7 +2623,7 @@ read_cpp_abbrev (struct field_info *fip, char **pp, struct type *type, if (name == NULL) { complaint (&symfile_complaints, - "C++ abbreviated type name unknown at symtab pos %d", + _("C++ abbreviated type name unknown at symtab pos %d"), symnum); name = "FOO"; } @@ -2751,7 +2751,7 @@ read_one_struct_field (struct field_info *fip, char **pp, char *p, it is a field which has been optimized out. The correct stab for this case is to use VISIBILITY_IGNORE, but that is a recent invention. (2) It is a 0-size array. For example - union { int num; char str[0]; } foo. Printing "<no value>" for + union { int num; char str[0]; } foo. Printing _("<no value>" for str in "p foo" is OK, since foo.str (and thus foo.str[3]) will continue to work, and a 0-size array as a whole doesn't have any contents to print. @@ -2976,7 +2976,7 @@ read_baseclasses (struct field_info *fip, char **pp, struct type *type, /* Unknown character. Complain and treat it as non-virtual. */ { complaint (&symfile_complaints, - "Unknown virtual character `%c' for baseclass", **pp); + _("Unknown virtual character `%c' for baseclass"), **pp); } } ++(*pp); @@ -2993,7 +2993,7 @@ read_baseclasses (struct field_info *fip, char **pp, struct type *type, public. */ { complaint (&symfile_complaints, - "Unknown visibility `%c' for baseclass", + _("Unknown visibility `%c' for baseclass"), new->visibility); new->visibility = VISIBILITY_PUBLIC; } @@ -3101,7 +3101,7 @@ read_tilde_fields (struct field_info *fip, char **pp, struct type *type, } /* Virtual function table field not found. */ complaint (&symfile_complaints, - "virtual function table pointer not found when defining class `%s'", + _("virtual function table pointer not found when defining class `%s'"), TYPE_NAME (type)); return 0; } @@ -3211,7 +3211,7 @@ attach_fields_to_type (struct field_info *fip, struct type *type, default: /* Unknown visibility. Complain and treat it as public. */ { - complaint (&symfile_complaints, "Unknown visibility `%c' for field", + complaint (&symfile_complaints, _("Unknown visibility `%c' for field"), fip->list->visibility); } break; @@ -3253,7 +3253,7 @@ complain_about_struct_wipeout (struct type *type) } complaint (&symfile_complaints, - "struct/union type gets multiply defined: %s%s", kind, name); + _("struct/union type gets multiply defined: %s%s"), kind, name); } @@ -3971,7 +3971,7 @@ handle_true_range: static struct type *range_type_index; complaint (&symfile_complaints, - "base type %d of range type is not defined", rangenums[1]); + _("base type %d of range type is not defined"), rangenums[1]); if (range_type_index == NULL) range_type_index = init_type (TYPE_CODE_INT, TARGET_INT_BIT / TARGET_CHAR_BIT, @@ -4048,7 +4048,7 @@ common_block_start (char *name, struct objfile *objfile) if (common_block_name != NULL) { complaint (&symfile_complaints, - "Invalid symbol data: common block within common block"); + _("Invalid symbol data: common block within common block")); } common_block = local_symbols; common_block_i = local_symbols ? local_symbols->nsyms : 0; @@ -4074,7 +4074,7 @@ common_block_end (struct objfile *objfile) if (common_block_name == NULL) { - complaint (&symfile_complaints, "ECOMM symbol unmatched by BCOMM"); + complaint (&symfile_complaints, _("ECOMM symbol unmatched by BCOMM")); return; } @@ -4187,7 +4187,7 @@ cleanup_undefined_types (void) if (typename == NULL) { - complaint (&symfile_complaints, "need a type name"); + complaint (&symfile_complaints, _("need a type name")); break; } for (ppt = file_symbols; ppt; ppt = ppt->next) @@ -4211,8 +4211,8 @@ cleanup_undefined_types (void) default: { complaint (&symfile_complaints, - "forward-referenced types left unresolved, " - "type code %d.", + _("forward-referenced types left unresolved, " + "type code %d."), TYPE_CODE (*type)); } break; @@ -4354,7 +4354,7 @@ scan_file_globals (struct objfile *objfile) SYMBOL_CLASS (prev) = LOC_UNRESOLVED; else complaint (&symfile_complaints, - "%s: common block `%s' from global_sym_chain unresolved", + _("%s: common block `%s' from global_sym_chain unresolved"), objfile->name, DEPRECATED_SYMBOL_NAME (prev)); } } diff --git a/gdb/stack.c b/gdb/stack.c index 677b336..396799d 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -1866,10 +1866,10 @@ If you continue, the return value that you specified will be ignored.\n"; { int confirmed; if (thisfun == NULL) - confirmed = query ("%sMake selected stack frame return now? ", + confirmed = query (_("%sMake selected stack frame return now? "), query_prefix); else - confirmed = query ("%sMake %s return now? ", query_prefix, + confirmed = query (_("%sMake %s return now? "), query_prefix, SYMBOL_PRINT_NAME (thisfun)); if (!confirmed) error (_("Not confirmed")); diff --git a/gdb/symfile.c b/gdb/symfile.c index 7f2c7bd..c81cd9b 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -2520,17 +2520,15 @@ again2: || BLOCK_NSYMS (BLOCKVECTOR_BLOCK (bv, GLOBAL_BLOCK)) || BLOCK_NSYMS (BLOCKVECTOR_BLOCK (bv, STATIC_BLOCK))) { - complaint (&symfile_complaints, "Replacing old symbols for `%s'", + complaint (&symfile_complaints, _("Replacing old symbols for `%s'"), name); clear_symtab_users_queued++; make_cleanup (clear_symtab_users_once, 0); blewit = 1; } else - { - complaint (&symfile_complaints, "Empty symbol table found for `%s'", - name); - } + complaint (&symfile_complaints, _("Empty symbol table found for `%s'"), + name); free_symtab (s); } diff --git a/gdb/symtab.c b/gdb/symtab.c index 85807c1..c19a519 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -1562,7 +1562,7 @@ lookup_partial_symbol (struct partial_symtab *pst, const char *name, { center = bottom + (top - bottom) / 2; if (!(center < top)) - internal_error (__FILE__, __LINE__, "failed internal consistency check"); + internal_error (__FILE__, __LINE__, _("failed internal consistency check")); if (!do_linear_search && (SYMBOL_LANGUAGE (*center) == language_java)) { @@ -1578,7 +1578,7 @@ lookup_partial_symbol (struct partial_symtab *pst, const char *name, } } if (!(top == bottom)) - internal_error (__FILE__, __LINE__, "failed internal consistency check"); + internal_error (__FILE__, __LINE__, _("failed internal consistency check")); while (top <= real_top && (linkage_name != NULL diff --git a/gdb/symtab.h b/gdb/symtab.h index 97899b0..42beb0d 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -754,7 +754,7 @@ struct section_offsets #define ANOFFSET(secoff, whichone) \ ((whichone == -1) \ - ? (internal_error (__FILE__, __LINE__, "Section index is uninitialized"), -1) \ + ? (internal_error (__FILE__, __LINE__, _("Section index is uninitialized")), -1) \ : secoff->offsets[whichone]) /* The size of a section_offsets table for N sections. */ diff --git a/gdb/target.c b/gdb/target.c index 3499470..2db2f08 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -664,7 +664,7 @@ push_target (struct target_ops *t) fprintf_unfiltered (gdb_stderr, "Magic number of %s target struct wrong\n", t->to_shortname); - internal_error (__FILE__, __LINE__, "failed internal consistency check"); + internal_error (__FILE__, __LINE__, _("failed internal consistency check")); } /* Find the proper stratum to install this target in. */ @@ -749,7 +749,7 @@ pop_target (void) fprintf_unfiltered (gdb_stderr, "pop_target couldn't find target %s\n", current_target.to_shortname); - internal_error (__FILE__, __LINE__, "failed internal consistency check"); + internal_error (__FILE__, __LINE__, _("failed internal consistency check")); } #undef MIN @@ -1419,7 +1419,7 @@ target_preopen (int from_tty) if (target_has_execution) { if (!from_tty - || query ("A program is being debugged already. Kill it? ")) + || query (_("A program is being debugged already. Kill it? "))) target_kill (); else error (_("Program not killed.")); diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 050d8c7..4cec476 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -616,7 +616,7 @@ get_tracepoint_by_number (char **arg, int multi_p, int optional_p) if (optional_p) tpnum = tracepoint_count; else - error_no_arg ("tracepoint number"); + error_no_arg (_("tracepoint number")); } else tpnum = multi_p ? get_number_or_range (arg) : get_number (arg); diff --git a/gdb/tui/tui-file.c b/gdb/tui/tui-file.c index 5d2740e..1ceb47f 100644 --- a/gdb/tui/tui-file.c +++ b/gdb/tui/tui-file.c @@ -77,7 +77,7 @@ tui_file_delete (struct ui_file *file) struct tui_stream *tmpstream = ui_file_data (file); if (tmpstream->ts_magic != &tui_file_magic) internal_error (__FILE__, __LINE__, - "tui_file_delete: bad magic number"); + _("tui_file_delete: bad magic number")); if ((tmpstream->ts_streamtype == astring) && (tmpstream->ts_strbuf != NULL)) { @@ -124,7 +124,7 @@ tui_file_isatty (struct ui_file *file) struct tui_stream *stream = ui_file_data (file); if (stream->ts_magic != &tui_file_magic) internal_error (__FILE__, __LINE__, - "tui_file_isatty: bad magic number"); + _("tui_file_isatty: bad magic number")); if (stream->ts_streamtype == afile) return (isatty (fileno (stream->ts_filestream))); else @@ -137,7 +137,7 @@ tui_file_rewind (struct ui_file *file) struct tui_stream *stream = ui_file_data (file); if (stream->ts_magic != &tui_file_magic) internal_error (__FILE__, __LINE__, - "tui_file_rewind: bad magic number"); + _("tui_file_rewind: bad magic number")); stream->ts_strbuf[0] = '\0'; } @@ -149,7 +149,7 @@ tui_file_put (struct ui_file *file, struct tui_stream *stream = ui_file_data (file); if (stream->ts_magic != &tui_file_magic) internal_error (__FILE__, __LINE__, - "tui_file_put: bad magic number"); + _("tui_file_put: bad magic number")); if (stream->ts_streamtype == astring) write (dest, stream->ts_strbuf, strlen (stream->ts_strbuf)); } @@ -185,7 +185,7 @@ tui_file_get_strbuf (struct ui_file *file) struct tui_stream *stream = ui_file_data (file); if (stream->ts_magic != &tui_file_magic) internal_error (__FILE__, __LINE__, - "tui_file_get_strbuf: bad magic number"); + _("tui_file_get_strbuf: bad magic number")); return (stream->ts_strbuf); } @@ -198,7 +198,7 @@ tui_file_adjust_strbuf (int n, struct ui_file *file) int non_null_chars; if (stream->ts_magic != &tui_file_magic) internal_error (__FILE__, __LINE__, - "tui_file_adjust_strbuf: bad magic number"); + _("tui_file_adjust_strbuf: bad magic number")); if (stream->ts_streamtype != astring) return; @@ -225,7 +225,7 @@ tui_file_flush (struct ui_file *file) struct tui_stream *stream = ui_file_data (file); if (stream->ts_magic != &tui_file_magic) internal_error (__FILE__, __LINE__, - "tui_file_flush: bad magic number"); + _("tui_file_flush: bad magic number")); switch (stream->ts_streamtype) { diff --git a/gdb/tui/tui-interp.c b/gdb/tui/tui-interp.c index ced5dbd..d004b09 100644 --- a/gdb/tui/tui-interp.c +++ b/gdb/tui/tui-interp.c @@ -109,7 +109,7 @@ tui_display_prompt_p (void *data) static struct exception tui_exec (void *data, const char *command_str) { - internal_error (__FILE__, __LINE__, "tui_exec called"); + internal_error (__FILE__, __LINE__, _("tui_exec called")); } diff --git a/gdb/ui-file.c b/gdb/ui-file.c index 6ad5414..5a2d047 100644 --- a/gdb/ui-file.c +++ b/gdb/ui-file.c @@ -162,7 +162,7 @@ ui_file_data (struct ui_file *file) { if (file->magic != &ui_file_magic) internal_error (__FILE__, __LINE__, - "ui_file_data: bad magic number"); + _("ui_file_data: bad magic number")); return file->to_data; } @@ -340,7 +340,7 @@ mem_file_delete (struct ui_file *file) struct mem_file *stream = ui_file_data (file); if (stream->magic != &mem_file_magic) internal_error (__FILE__, __LINE__, - "mem_file_delete: bad magic number"); + _("mem_file_delete: bad magic number")); if (stream->buffer != NULL) xfree (stream->buffer); xfree (stream); @@ -358,7 +358,7 @@ mem_file_rewind (struct ui_file *file) struct mem_file *stream = ui_file_data (file); if (stream->magic != &mem_file_magic) internal_error (__FILE__, __LINE__, - "mem_file_rewind: bad magic number"); + _("mem_file_rewind: bad magic number")); stream->length_buffer = 0; } @@ -370,7 +370,7 @@ mem_file_put (struct ui_file *file, struct mem_file *stream = ui_file_data (file); if (stream->magic != &mem_file_magic) internal_error (__FILE__, __LINE__, - "mem_file_put: bad magic number"); + _("mem_file_put: bad magic number")); if (stream->length_buffer > 0) write (dest, stream->buffer, stream->length_buffer); } @@ -383,7 +383,7 @@ mem_file_write (struct ui_file *file, struct mem_file *stream = ui_file_data (file); if (stream->magic != &mem_file_magic) internal_error (__FILE__, __LINE__, - "mem_file_write: bad magic number"); + _("mem_file_write: bad magic number")); if (stream->buffer == NULL) { stream->length_buffer = length_buffer; @@ -447,7 +447,7 @@ stdio_file_delete (struct ui_file *file) struct stdio_file *stdio = ui_file_data (file); if (stdio->magic != &stdio_file_magic) internal_error (__FILE__, __LINE__, - "stdio_file_delete: bad magic number"); + _("stdio_file_delete: bad magic number")); if (stdio->close_p) { fclose (stdio->file); @@ -461,7 +461,7 @@ stdio_file_flush (struct ui_file *file) struct stdio_file *stdio = ui_file_data (file); if (stdio->magic != &stdio_file_magic) internal_error (__FILE__, __LINE__, - "stdio_file_flush: bad magic number"); + _("stdio_file_flush: bad magic number")); fflush (stdio->file); } @@ -471,7 +471,7 @@ stdio_file_read (struct ui_file *file, char *buf, long length_buf) struct stdio_file *stdio = ui_file_data (file); if (stdio->magic != &stdio_file_magic) internal_error (__FILE__, __LINE__, - "stdio_file_read: bad magic number"); + _("stdio_file_read: bad magic number")); return read (fileno (stdio->file), buf, length_buf); } @@ -481,7 +481,7 @@ stdio_file_write (struct ui_file *file, const char *buf, long length_buf) struct stdio_file *stdio = ui_file_data (file); if (stdio->magic != &stdio_file_magic) internal_error (__FILE__, __LINE__, - "stdio_file_write: bad magic number"); + _("stdio_file_write: bad magic number")); fwrite (buf, length_buf, 1, stdio->file); } @@ -491,7 +491,7 @@ stdio_file_fputs (const char *linebuffer, struct ui_file *file) struct stdio_file *stdio = ui_file_data (file); if (stdio->magic != &stdio_file_magic) internal_error (__FILE__, __LINE__, - "stdio_file_fputs: bad magic number"); + _("stdio_file_fputs: bad magic number")); fputs (linebuffer, stdio->file); } @@ -501,7 +501,7 @@ stdio_file_isatty (struct ui_file *file) struct stdio_file *stdio = ui_file_data (file); if (stdio->magic != &stdio_file_magic) internal_error (__FILE__, __LINE__, - "stdio_file_isatty: bad magic number"); + _("stdio_file_isatty: bad magic number")); return (isatty (fileno (stdio->file))); } @@ -564,7 +564,7 @@ tee_file_delete (struct ui_file *file) struct tee_file *tee = ui_file_data (file); if (tee->magic != &tee_file_magic) internal_error (__FILE__, __LINE__, - "tee_file_delete: bad magic number"); + _("tee_file_delete: bad magic number")); if (tee->close_one) ui_file_delete (tee->one); if (tee->close_two) @@ -579,7 +579,7 @@ tee_file_flush (struct ui_file *file) struct tee_file *tee = ui_file_data (file); if (tee->magic != &tee_file_magic) internal_error (__FILE__, __LINE__, - "tee_file_flush: bad magic number"); + _("tee_file_flush: bad magic number")); tee->one->to_flush (tee->one); tee->two->to_flush (tee->two); } @@ -590,7 +590,7 @@ tee_file_write (struct ui_file *file, const char *buf, long length_buf) struct tee_file *tee = ui_file_data (file); if (tee->magic != &tee_file_magic) internal_error (__FILE__, __LINE__, - "tee_file_write: bad magic number"); + _("tee_file_write: bad magic number")); ui_file_write (tee->one, buf, length_buf); ui_file_write (tee->two, buf, length_buf); } @@ -601,7 +601,7 @@ tee_file_fputs (const char *linebuffer, struct ui_file *file) struct tee_file *tee = ui_file_data (file); if (tee->magic != &tee_file_magic) internal_error (__FILE__, __LINE__, - "tee_file_fputs: bad magic number"); + _("tee_file_fputs: bad magic number")); tee->one->to_fputs (linebuffer, tee->one); tee->two->to_fputs (linebuffer, tee->two); } @@ -612,6 +612,6 @@ tee_file_isatty (struct ui_file *file) struct tee_file *tee = ui_file_data (file); if (tee->magic != &tee_file_magic) internal_error (__FILE__, __LINE__, - "tee_file_isatty: bad magic number"); + _("tee_file_isatty: bad magic number")); return (0); } diff --git a/gdb/ui-out.c b/gdb/ui-out.c index 783c538..53abebf 100644 --- a/gdb/ui-out.c +++ b/gdb/ui-out.c @@ -280,8 +280,8 @@ ui_out_table_begin (struct ui_out *uiout, int nbrofcols, { if (uiout->table.flag) internal_error (__FILE__, __LINE__, - "tables cannot be nested; table_begin found before \ -previous table_end."); + _("tables cannot be nested; table_begin found before \ +previous table_end.")); uiout->table.flag = 1; uiout->table.body_flag = 0; @@ -301,16 +301,16 @@ ui_out_table_body (struct ui_out *uiout) { if (!uiout->table.flag) internal_error (__FILE__, __LINE__, - "table_body outside a table is not valid; it must be \ -after a table_begin and before a table_end."); + _("table_body outside a table is not valid; it must be \ +after a table_begin and before a table_end.")); if (uiout->table.body_flag) internal_error (__FILE__, __LINE__, - "extra table_body call not allowed; there must be \ -only one table_body after a table_begin and before a table_end."); + _("extra table_body call not allowed; there must be \ +only one table_body after a table_begin and before a table_end.")); if (uiout->table.header_next->colno != uiout->table.columns) internal_error (__FILE__, __LINE__, - "number of headers differ from number of table \ -columns."); + _("number of headers differ from number of table \ +columns.")); uiout->table.body_flag = 1; uiout->table.header_next = uiout->table.header_first; @@ -323,7 +323,7 @@ ui_out_table_end (struct ui_out *uiout) { if (!uiout->table.flag) internal_error (__FILE__, __LINE__, - "misplaced table_end or missing table_begin."); + _("misplaced table_end or missing table_begin.")); uiout->table.entry_level = 0; uiout->table.body_flag = 0; @@ -343,8 +343,8 @@ ui_out_table_header (struct ui_out *uiout, int width, enum ui_align alignment, { if (!uiout->table.flag || uiout->table.body_flag) internal_error (__FILE__, __LINE__, - "table header must be specified after table_begin \ -and before table_body."); + _("table header must be specified after table_begin \ +and before table_body.")); append_header_to_list (uiout, width, alignment, col_name, colhdr); @@ -375,8 +375,8 @@ ui_out_begin (struct ui_out *uiout, int new_level; if (uiout->table.flag && !uiout->table.body_flag) internal_error (__FILE__, __LINE__, - "table header or table_body expected; lists must be \ -specified after table_body."); + _("table header or table_body expected; lists must be \ +specified after table_body.")); /* Be careful to verify the ``field'' before the new tuple/list is pushed onto the stack. That way the containing list/table/row is @@ -1090,8 +1090,8 @@ verify_field (struct ui_out *uiout, int *fldno, int *width, int *align) { if (!uiout->table.body_flag) internal_error (__FILE__, __LINE__, - "table_body missing; table fields must be \ -specified after table_body and inside a list."); + _("table_body missing; table fields must be \ +specified after table_body and inside a list.")); /* NOTE: cagney/2001-12-08: There was a check here to ensure that this code was only executed when uiout->level was greater than zero. That no longer applies - this code is run @@ -1107,7 +1107,7 @@ specified after table_body and inside a list."); { if (*fldno != current->field_count) internal_error (__FILE__, __LINE__, - "ui-out internal error in handling headers."); + _("ui-out internal error in handling headers.")); } else { diff --git a/gdb/utils.c b/gdb/utils.c index b0d177a..b6a99ac 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -411,7 +411,7 @@ free_current_contents (void *ptr) void **location = ptr; if (location == NULL) internal_error (__FILE__, __LINE__, - "free_current_contents: NULL pointer"); + _("free_current_contents: NULL pointer")); if (*location != NULL) { xfree (*location); @@ -716,7 +716,7 @@ further debugging may prove unreliable.", file, line, problem->name, msg); /* Default (yes/batch case) is to quit GDB. When in batch mode this lessens the likelhood of GDB going into an infinate loop. */ - quit_p = query ("%s\nQuit this debugging session? ", reason); + quit_p = query (_("%s\nQuit this debugging session? "), reason); break; case AUTO_BOOLEAN_TRUE: quit_p = 1; @@ -725,7 +725,7 @@ further debugging may prove unreliable.", file, line, problem->name, msg); quit_p = 0; break; default: - internal_error (__FILE__, __LINE__, "bad switch"); + internal_error (__FILE__, __LINE__, _("bad switch")); } switch (problem->should_dump_core) @@ -734,7 +734,7 @@ further debugging may prove unreliable.", file, line, problem->name, msg); /* Default (yes/batch case) is to dump core. This leaves a GDB `dropping' so that it is easier to see that something went wrong in GDB. */ - dump_core_p = query ("%s\nCreate a core file of GDB? ", reason); + dump_core_p = query (_("%s\nCreate a core file of GDB? "), reason); break; break; case AUTO_BOOLEAN_TRUE: @@ -744,7 +744,7 @@ further debugging may prove unreliable.", file, line, problem->name, msg); dump_core_p = 0; break; default: - internal_error (__FILE__, __LINE__, "bad switch"); + internal_error (__FILE__, __LINE__, _("bad switch")); } if (quit_p) @@ -912,12 +912,12 @@ nomem (long size) if (size > 0) { internal_error (__FILE__, __LINE__, - "virtual memory exhausted: can't allocate %ld bytes.", + _("virtual memory exhausted: can't allocate %ld bytes."), size); } else { - internal_error (__FILE__, __LINE__, "virtual memory exhausted."); + internal_error (__FILE__, __LINE__, _("virtual memory exhausted.")); } } @@ -1042,7 +1042,7 @@ xstrvprintf (const char *format, va_list ap) should never happen, but just to be sure. */ if (status < 0) internal_error (__FILE__, __LINE__, - "vasprintf call failed (errno %d)", errno); + _("vasprintf call failed (errno %d)"), errno); return ret; } @@ -1747,7 +1747,7 @@ wrap_here (char *indent) { /* This should have been allocated, but be paranoid anyway. */ if (!wrap_buffer) - internal_error (__FILE__, __LINE__, "failed internal consistency check"); + internal_error (__FILE__, __LINE__, _("failed internal consistency check")); if (wrap_buffer[0]) { @@ -2560,7 +2560,7 @@ decimal2str (char *paddr_str, char *sign, ULONGEST addr, int width) break; default: internal_error (__FILE__, __LINE__, - "failed internal consistency check"); + _("failed internal consistency check")); } } @@ -2597,7 +2597,7 @@ octal2str (char *paddr_str, ULONGEST addr, int width) break; default: internal_error (__FILE__, __LINE__, - "failed internal consistency check"); + _("failed internal consistency check")); } } @@ -2707,7 +2707,7 @@ hex_string_custom (LONGEST num, int width) width = hex_len; if (width + 2 >= CELLSIZE) internal_error (__FILE__, __LINE__, - "hex_string_custom: insufficient space to store result"); + _("hex_string_custom: insufficient space to store result")); strcpy (result_end - width - 2, "0x"); memset (result_end - width, '0', width); @@ -2759,7 +2759,7 @@ int_string (LONGEST val, int radix, int is_signed, int width, } default: internal_error (__FILE__, __LINE__, - "failed internal consistency check"); + _("failed internal consistency check")); } } @@ -2798,7 +2798,7 @@ string_to_core_addr (const char *my_string) else if (isxdigit (my_string[i])) addr = (tolower (my_string[i]) - 'a' + 0xa) + (addr * 16); else - internal_error (__FILE__, __LINE__, "invalid hex"); + internal_error (__FILE__, __LINE__, _("invalid hex")); } } else @@ -2810,7 +2810,7 @@ string_to_core_addr (const char *my_string) if (isdigit (my_string[i])) addr = (my_string[i] - '0') + (addr * 10); else - internal_error (__FILE__, __LINE__, "invalid decimal"); + internal_error (__FILE__, __LINE__, _("invalid decimal")); } } return addr; diff --git a/gdb/valops.c b/gdb/valops.c index ddcd646..f6fb325 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -1121,7 +1121,7 @@ typecmp (int staticp, int varargs, int nargs, int i; if (t2 == 0) - internal_error (__FILE__, __LINE__, "typecmp: no argument list"); + internal_error (__FILE__, __LINE__, _("typecmp: no argument list")); /* Skip ``this'' argument if applicable. T2 will always include THIS. */ if (staticp) @@ -2358,7 +2358,7 @@ value_aggregate_elt (struct type *curtype, return value_namespace_elt (curtype, name, noside); default: internal_error (__FILE__, __LINE__, - "non-aggregate type in value_aggregate_elt"); + _("non-aggregate type in value_aggregate_elt")); } } diff --git a/gdb/valprint.c b/gdb/valprint.c index 62e26fd..9b51cc1 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -252,7 +252,7 @@ print_longest (struct ui_file *stream, int format, int use_c_format, case 'o': val = int_string (val_long, 8, 0, 0, use_c_format); break; default: - internal_error (__FILE__, __LINE__, "failed internal consistency check"); + internal_error (__FILE__, __LINE__, _("failed internal consistency check")); } fputs_filtered (val, stream); } diff --git a/gdb/vax-nat.c b/gdb/vax-nat.c index d01d948..c394f60 100644 --- a/gdb/vax-nat.c +++ b/gdb/vax-nat.c @@ -79,7 +79,7 @@ vax_register_u_offset (int regnum) pid = PIDGET (inferior_ptid); u_ar0 = ptrace (PT_READ_U, pid, u_ar0_offset, 0); if (errno) - perror_with_name ("Unable to determine location of registers"); + perror_with_name (_("Unable to determine location of registers")); return vax_register_u_addr (u_ar0, regnum) - vax_kernel_u_addr; } diff --git a/gdb/vaxbsd-nat.c b/gdb/vaxbsd-nat.c index bd505be..533e1fd 100644 --- a/gdb/vaxbsd-nat.c +++ b/gdb/vaxbsd-nat.c @@ -71,7 +71,7 @@ vaxbsd_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")); vaxbsd_supply_gregset (current_regcache, ®s); } @@ -86,13 +86,13 @@ vaxbsd_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")); vaxbsd_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")); } diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c index 1ec3b83..643135c 100644 --- a/gdb/win32-nat.c +++ b/gdb/win32-nat.c @@ -1578,7 +1578,7 @@ child_attach (char *args, int from_tty) DWORD pid; if (!args) - error_no_arg ("process-id to attach"); + error_no_arg (_("process-id to attach")); if (set_process_privilege (SE_DEBUG_NAME, TRUE) < 0) { @@ -2196,7 +2196,7 @@ cygwin_set_dr (int i, CORE_ADDR addr) { if (i < 0 || i > 3) internal_error (__FILE__, __LINE__, - "Invalid register %d in cygwin_set_dr.\n", i); + _("Invalid register %d in cygwin_set_dr.\n"), i); dr[i] = (unsigned) addr; debug_registers_changed = 1; debug_registers_used = 1; diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 1ec3b83..643135c 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -1578,7 +1578,7 @@ child_attach (char *args, int from_tty) DWORD pid; if (!args) - error_no_arg ("process-id to attach"); + error_no_arg (_("process-id to attach")); if (set_process_privilege (SE_DEBUG_NAME, TRUE) < 0) { @@ -2196,7 +2196,7 @@ cygwin_set_dr (int i, CORE_ADDR addr) { if (i < 0 || i > 3) internal_error (__FILE__, __LINE__, - "Invalid register %d in cygwin_set_dr.\n", i); + _("Invalid register %d in cygwin_set_dr.\n"), i); dr[i] = (unsigned) addr; debug_registers_changed = 1; debug_registers_used = 1; diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 0805f80..6bab91e 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -154,21 +154,21 @@ struct coff_symfile_info static void bf_notfound_complaint (void) { - complaint (&symfile_complaints, "line numbers off, `.bf' symbol not found"); + complaint (&symfile_complaints, _("line numbers off, `.bf' symbol not found")); } static void ef_complaint (int arg1) { complaint (&symfile_complaints, - "Mismatched .ef symbol ignored starting at symnum %d", arg1); + _("Mismatched .ef symbol ignored starting at symnum %d"), arg1); } static void eb_complaint (int arg1) { complaint (&symfile_complaints, - "Mismatched .eb symbol ignored starting at symnum %d", arg1); + _("Mismatched .eb symbol ignored starting at symnum %d"), arg1); } static void xcoff_initial_scan (struct objfile *, int); @@ -490,7 +490,7 @@ record_include_begin (struct coff_symbol *cs) /* This can happen with old versions of GCC. GCC 2.3.3-930426 does not exhibit this on a test case which a user said produced the message for him. */ - complaint (&symfile_complaints, "Nested C_BINCL symbols"); + complaint (&symfile_complaints, _("Nested C_BINCL symbols")); } ++inclDepth; @@ -507,7 +507,7 @@ record_include_end (struct coff_symbol *cs) if (inclDepth == 0) { - complaint (&symfile_complaints, "Mismatched C_BINCL/C_EINCL pair"); + complaint (&symfile_complaints, _("Mismatched C_BINCL/C_EINCL pair")); } allocate_include_entry (); @@ -770,7 +770,7 @@ enter_line_range (struct subfile *subfile, unsigned beginoffset, unsigned endoff if (endoffset >= limit_offset) { complaint (&symfile_complaints, - "Bad line table offset in C_EINCL directive"); + _("Bad line table offset in C_EINCL directive")); return; } limit_offset = endoffset; @@ -873,7 +873,7 @@ xcoff_next_symbol_text (struct objfile *objfile) bfd_coff_swap_sym_in (objfile->obfd, raw_symbol, &symbol); if (symbol.n_zeroes) { - complaint (&symfile_complaints, "Unexpected symbol continuation"); + complaint (&symfile_complaints, _("Unexpected symbol continuation")); /* Return something which points to '\0' and hope the symbol reading code does something reasonable. */ @@ -890,7 +890,7 @@ xcoff_next_symbol_text (struct objfile *objfile) } else { - complaint (&symfile_complaints, "Unexpected symbol continuation"); + complaint (&symfile_complaints, _("Unexpected symbol continuation")); /* Return something which points to '\0' and hope the symbol reading code does something reasonable. */ @@ -1332,7 +1332,7 @@ read_xcoff_symtab (struct partial_symtab *pst) case C_UNTAG: case C_ENTAG: { - complaint (&symfile_complaints, "Unrecognized storage class %d.", + complaint (&symfile_complaints, _("Unrecognized storage class %d."), cs->c_sclass); } break; @@ -1519,7 +1519,7 @@ process_xcoff_symbol (struct coff_symbol *cs, struct objfile *objfile) break; default: - complaint (&symfile_complaints, "Unexpected storage class: %d", + complaint (&symfile_complaints, _("Unexpected storage class: %d"), cs->c_sclass); /* FALLTHROUGH */ @@ -1601,7 +1601,7 @@ read_symbol (struct internal_syment *symbol, int symno) ((struct coff_symfile_info *) this_symtab_psymtab->objfile->deprecated_sym_private)->symtbl; if (symno < 0 || symno >= nsyms) { - complaint (&symfile_complaints, "Invalid symbol offset"); + complaint (&symfile_complaints, _("Invalid symbol offset")); symbol->n_value = 0; symbol->n_scnum = -1; return; @@ -2115,7 +2115,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); } @@ -2445,7 +2445,7 @@ scan_xcoff_symtab (struct objfile *objfile) default: { complaint (&symfile_complaints, - "Storage class %d not recognized during scan", sclass); + _("Storage class %d not recognized during scan"), sclass); } /* FALLTHROUGH */ @@ -2800,7 +2800,7 @@ scan_xcoff_symtab (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. */ @@ -2918,7 +2918,7 @@ xcoff_initial_scan (struct objfile *objfile, int mainline) val = bfd_bread (((struct coff_symfile_info *) objfile->deprecated_sym_private)->symtbl, size, abfd); if (val != size) - perror_with_name ("reading symbol table"); + perror_with_name (_("reading symbol table")); /* If we are reinitializing, or if we have never loaded syms yet, init */ if (mainline diff --git a/gdb/xstormy16-tdep.c b/gdb/xstormy16-tdep.c index 3aceb69..0056ec7 100644 --- a/gdb/xstormy16-tdep.c +++ b/gdb/xstormy16-tdep.c @@ -116,7 +116,7 @@ xstormy16_register_name (int regnum) if (regnum < 0 || regnum >= E_NUM_REGS) internal_error (__FILE__, __LINE__, - "xstormy16_register_name: illegal register number %d", + _("xstormy16_register_name: illegal register number %d"), regnum); else return register_names[regnum]; |