This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] mark up quit et.al.


FYI,
committed,
Andrew
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.
 
Index: breakpoint.c
===================================================================
RCS file: /cvs/src/src/gdb/breakpoint.c,v
retrieving revision 1.203
diff -p -u -r1.203 breakpoint.c
--- breakpoint.c	11 Feb 2005 04:05:43 -0000	1.203
+++ breakpoint.c	11 Feb 2005 18:10:42 -0000
@@ -525,7 +525,7 @@ condition_command (char *arg, int from_t
   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, vo
       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 *
 	}
       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 
   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 
       {
       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 
       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 *bp
 	     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
   int match;
 
   if (p == 0)
-    error_no_arg ("one or more breakpoint numbers");
+    error_no_arg (_("one or more breakpoint numbers"));
 
   while (*p)
     {
Index: cp-abi.c
===================================================================
RCS file: /cvs/src/src/gdb/cp-abi.c,v
retrieving revision 1.9
diff -p -u -r1.9 cp-abi.c
--- cp-abi.c	11 Feb 2005 04:05:45 -0000	1.9
+++ cp-abi.c	11 Feb 2005 18:10:42 -0000
@@ -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 *
 
   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)
Index: cp-namespace.c
===================================================================
RCS file: /cvs/src/src/gdb/cp-namespace.c,v
retrieving revision 1.13
diff -p -u -r1.13 cp-namespace.c
--- cp-namespace.c	5 Mar 2004 17:32:23 -0000	1.13
+++ cp-namespace.c	11 Feb 2005 18:10:42 -0000
@@ -552,7 +552,7 @@ cp_lookup_nested_type (struct type *pare
       }
     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."));
     }
 }
 
Index: cp-support.c
===================================================================
RCS file: /cvs/src/src/gdb/cp-support.c,v
retrieving revision 1.14
diff -p -u -r1.14 cp-support.c
--- cp-support.c	11 Feb 2005 04:05:45 -0000	1.14
+++ cp-support.c	11 Feb 2005 18:10:42 -0000
@@ -456,7 +456,7 @@ remove_params (const char *demangled_nam
     }
   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 --;
 
Index: cris-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/cris-tdep.c,v
retrieving revision 1.124
diff -p -u -r1.124 cris-tdep.c
--- cris-tdep.c	11 Feb 2005 04:05:45 -0000	1.124
+++ cris-tdep.c	11 Feb 2005 18:10:42 -0000
@@ -934,7 +934,7 @@ cris_push_dummy_call (struct gdbarch *gd
       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
   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, 
   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 i
       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 i
     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 i
 
     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
Index: dbxread.c
===================================================================
RCS file: /cvs/src/src/gdb/dbxread.c,v
retrieving revision 1.79
diff -p -u -r1.79 dbxread.c
--- dbxread.c	11 Feb 2005 04:05:45 -0000	1.79
+++ dbxread.c	11 Feb 2005 18:10:42 -0000
@@ -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,
   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, 
 		 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;
 		}
 
Index: dictionary.c
===================================================================
RCS file: /cvs/src/src/gdb/dictionary.c,v
retrieving revision 1.4
diff -p -u -r1.4 dictionary.c
--- dictionary.c	2 Jun 2004 21:01:55 -0000	1.4
+++ dictionary.c	11 Feb 2005 18:10:42 -0000
@@ -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.  */
Index: dsrec.c
===================================================================
RCS file: /cvs/src/src/gdb/dsrec.c,v
retrieving revision 1.16
diff -p -u -r1.16 dsrec.c
--- dsrec.c	11 Feb 2005 04:05:46 -0000	1.16
+++ dsrec.c	11 Feb 2005 18:10:42 -0000
@@ -254,7 +254,7 @@ make_srec (char *srec, CORE_ADDR targ_ad
     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
Index: dummy-frame.c
===================================================================
RCS file: /cvs/src/src/gdb/dummy-frame.c,v
retrieving revision 1.40
diff -p -u -r1.40 dummy-frame.c
--- dummy-frame.c	2 Aug 2004 18:52:03 -0000	1.40
+++ dummy-frame.c	11 Feb 2005 18:10:42 -0000
@@ -246,7 +246,7 @@ maintenance_print_dummy_frames (char *ar
     {
       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);
     }
Index: dve3900-rom.c
===================================================================
RCS file: /cvs/src/src/gdb/dve3900-rom.c,v
retrieving revision 1.17
diff -p -u -r1.17 dve3900-rom.c
--- dve3900-rom.c	11 Feb 2005 04:05:46 -0000	1.17
+++ dve3900-rom.c	11 Feb 2005 18:10:42 -0000
@@ -461,7 +461,7 @@ fetch_bitmapped_register (int regno, str
 
   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, str
 
   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];
 
Index: dwarf2-frame.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2-frame.c,v
retrieving revision 1.47
diff -p -u -r1.47 dwarf2-frame.c
--- dwarf2-frame.c	20 Nov 2004 10:10:17 -0000	1.47
+++ dwarf2-frame.c	11 Feb 2005 18:10:42 -0000
@@ -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
 
 		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_
 	      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 *n
       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 *n
 	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
       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 enc
     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 *un
      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 *un
 	}
       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 *un
       *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 *un
 
     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;
Index: dwarf2expr.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2expr.c,v
retrieving revision 1.14
diff -p -u -r1.14 dwarf2expr.c
--- dwarf2expr.c	11 Feb 2005 04:05:46 -0000	1.14
+++ dwarf2expr.c	11 Feb 2005 18:10:42 -0000
@@ -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_cont
 		break;
 	      default:
 		internal_error (__FILE__, __LINE__,
-				"Can't be reached.");
+				_("Can't be reached."));
 	      }
 	    result = value_as_long (value_binop (val1, val2, binop));
 	  }
Index: dwarf2read.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2read.c,v
retrieving revision 1.171
diff -p -u -r1.171 dwarf2read.c
--- dwarf2read.c	11 Feb 2005 04:05:46 -0000	1.171
+++ dwarf2read.c	11 Feb 2005 18:10:43 -0000
@@ -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_compl
 					      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_he
   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
 	 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_
   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 abb
 	  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 *d
 	  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 *d
 		  /* 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 fie
 	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 
 	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 *di
 		  /* 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 *
 	}
       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, st
 	  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
   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
 	  && 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_inf
 	  /* 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 
 
   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, stru
 	  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, stru
 	  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
       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 o
 
   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 o
   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, s
     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 *
 		  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
 	     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 *at
 
     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, str
       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 attrib
       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 a
     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,
           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, 
   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 
 
   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 
 
             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 
         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 
                   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 attr
       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;
Index: dwarfread.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarfread.c,v
retrieving revision 1.42
diff -p -u -r1.42 dwarfread.c
--- dwarfread.c	11 Feb 2005 04:05:46 -0000	1.42
+++ dwarfread.c	11 Feb 2005 18:10:43 -0000
@@ -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 typ
     {
       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 *
       /* 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, 
 	{
 	  /* 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, 
     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, 
       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 *d
     {
       /* 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, ch
      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, u
 	  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, u
 	  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, u
 #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 + 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, st
       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, 
       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;
Index: elfread.c
===================================================================
RCS file: /cvs/src/src/gdb/elfread.c,v
retrieving revision 1.48
diff -p -u -r1.48 elfread.c
--- elfread.c	11 Feb 2005 04:05:46 -0000	1.48
+++ elfread.c	11 Feb 2005 18:10:43 -0000
@@ -383,7 +383,7 @@ elf_symtab_read (struct objfile *objfile
 			      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
 			    }
 			  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 
   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 
   /* 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.  */
Index: event-loop.c
===================================================================
RCS file: /cvs/src/src/gdb/event-loop.c,v
retrieving revision 1.22
diff -p -u -r1.22 event-loop.c
--- event-loop.c	12 Jan 2005 18:31:30 -0000	1.22
+++ event-loop.c	11 Feb 2005 18:10:43 -0000
@@ -452,7 +452,7 @@ add_file_handler (int fd, handler_func *
 	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 *
       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, h
 	  (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
Index: exceptions.c
===================================================================
RCS file: /cvs/src/src/gdb/exceptions.c,v
retrieving revision 1.18
diff -p -u -r1.18 exceptions.c
--- exceptions.c	8 Feb 2005 23:44:05 -0000	1.18
+++ exceptions.c	11 Feb 2005 18:10:43 -0000
@@ -133,7 +133,7 @@ exceptions_state_mc (enum catcher_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
 	  /* 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
 	  /* 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
 	    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_rea
       exception.error = GENERIC_ERROR;
       break;
     default:
-      internal_error (__FILE__, __LINE__, "bad switch");
+      internal_error (__FILE__, __LINE__, _("bad switch"));
     }
   
   throw_exception (exception);
Index: exec.c
===================================================================
RCS file: /cvs/src/src/gdb/exec.c,v
retrieving revision 1.44
diff -p -u -r1.44 exec.c
--- exec.c	11 Feb 2005 04:05:47 -0000	1.44
+++ exec.c	11 Feb 2005 18:10:43 -0000
@@ -366,7 +366,7 @@ build_section_table (struct bfd *some_bf
   *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 *my
   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)
     {
Index: f-lang.c
===================================================================
RCS file: /cvs/src/src/gdb/f-lang.c,v
retrieving revision 1.29
diff -p -u -r1.29 f-lang.c
--- f-lang.c	11 Feb 2005 04:05:47 -0000	1.29
+++ f-lang.c	11 Feb 2005 18:10:43 -0000
@@ -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)
Index: findvar.c
===================================================================
RCS file: /cvs/src/src/gdb/findvar.c,v
retrieving revision 1.88
diff -p -u -r1.88 findvar.c
--- findvar.c	11 Feb 2005 04:05:47 -0000	1.88
+++ findvar.c	11 Feb 2005 18:10:43 -0000
@@ -169,8 +169,8 @@ extract_typed_address (const void *buf, 
   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 t
   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);
 }
Index: fork-child.c
===================================================================
RCS file: /cvs/src/src/gdb/fork-child.c,v
retrieving revision 1.24
diff -p -u -r1.24 fork-child.c
--- fork-child.c	29 Nov 2004 08:37:14 -0000	1.24
+++ fork-child.c	11 Feb 2005 18:10:43 -0000
@@ -291,7 +291,7 @@ fork_inferior (char *exec_file_arg, char
     pid = vfork ();
 
   if (pid < 0)
-    perror_with_name ("vfork");
+    perror_with_name (("vfork"));
 
   if (pid == 0)
     {
Index: frame-unwind.c
===================================================================
RCS file: /cvs/src/src/gdb/frame-unwind.c,v
retrieving revision 1.15
diff -p -u -r1.15 frame-unwind.c
--- frame-unwind.c	2 Aug 2004 16:07:31 -0000	1.15
+++ frame-unwind.c	11 Feb 2005 18:10:43 -0000
@@ -106,7 +106,7 @@ frame_unwind_find_by_frame (struct frame
 	    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 */
Index: frame.c
===================================================================
RCS file: /cvs/src/src/gdb/frame.c,v
retrieving revision 1.201
diff -p -u -r1.201 frame.c
--- frame.c	11 Feb 2005 04:05:48 -0000	1.201
+++ frame.c	11 Feb 2005 18:10:43 -0000
@@ -421,7 +421,7 @@ frame_pc_unwind (struct frame_info *this
 	  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_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 */
Index: frv-linux-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/frv-linux-tdep.c,v
retrieving revision 1.4
diff -p -u -r1.4 frv-linux-tdep.c
--- frv-linux-tdep.c	11 Feb 2005 04:05:49 -0000	1.4
+++ frv-linux-tdep.c	11 Feb 2005 18:10:43 -0000
@@ -195,7 +195,7 @@ frv_linux_sigcontext_reg_addr (struct fr
 	  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;
Index: frv-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/frv-tdep.c,v
retrieving revision 1.92
diff -p -u -r1.92 frv-tdep.c
--- frv-tdep.c	7 Feb 2005 00:09:53 -0000	1.92
+++ frv-tdep.c	11 Feb 2005 18:10:43 -0000
@@ -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 *t
       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 *typ
     }
   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);
 }
 
 
Index: gdb_assert.h
===================================================================
RCS file: /cvs/src/src/gdb/gdb_assert.h,v
retrieving revision 1.4
diff -p -u -r1.4 gdb_assert.h
--- gdb_assert.h	29 May 2003 21:22:45 -0000	1.4
+++ gdb_assert.h	11 Feb 2005 18:10:43 -0000
@@ -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
 
Index: gdbarch.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.c,v
retrieving revision 1.318
diff -p -u -r1.318 gdbarch.c
--- gdbarch.c	9 Feb 2005 21:56:11 -0000	1.318
+++ gdbarch.c	11 Feb 2005 18:10:43 -0000
@@ -613,7 +613,7 @@ verify_gdbarch (struct gdbarch *current_
   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);
Index: gdbtypes.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtypes.c,v
retrieving revision 1.94
diff -p -u -r1.94 gdbtypes.c
--- gdbtypes.c	11 Feb 2005 04:05:49 -0000	1.94
+++ gdbtypes.c	11 Feb 2005 18:10:43 -0000
@@ -1353,7 +1353,7 @@ get_destructor_fn_field (struct type *t,
 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.
Index: gnu-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/gnu-nat.c,v
retrieving revision 1.33
diff -p -u -r1.33 gnu-nat.c
--- gnu-nat.c	11 Feb 2005 04:05:50 -0000	1.33
+++ gnu-nat.c	11 Feb 2005 18:10:44 -0000
@@ -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);
 
Index: go32-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/go32-nat.c,v
retrieving revision 1.42
diff -p -u -r1.42 go32-nat.c
--- go32-nat.c	11 Feb 2005 04:05:50 -0000	1.42
+++ go32-nat.c	11 Feb 2005 18:10:44 -0000
@@ -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, c
   /* 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 fro
 	addr = parse_and_eval_address (arg);
     }
   if (!addr)
-    error_no_arg ("linear address");
+    error_no_arg (_("linear address"));
 
   pdbr = get_cr3 ();
   if (!pdbr)
Index: hppa-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/hppa-tdep.c,v
retrieving revision 1.202
diff -p -u -r1.202 hppa-tdep.c
--- hppa-tdep.c	11 Feb 2005 04:05:50 -0000	1.202
+++ hppa-tdep.c	11 Feb 2005 18:10:44 -0000
@@ -2762,7 +2762,7 @@ hppa_gdbarch_init (struct gdbarch_info i
 					   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 i
       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 i
       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);
Index: hppabsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/hppabsd-nat.c,v
retrieving revision 1.2
diff -p -u -r1.2 hppabsd-nat.c
--- hppabsd-nat.c	14 Aug 2004 23:37:04 -0000	1.2
+++ hppabsd-nat.c	11 Feb 2005 18:10:44 -0000
@@ -90,7 +90,7 @@ fetch_inferior_registers (int regnum)
 
       if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
 		  (PTRACE_TYPE_ARG3) &regs, 0) == -1)
-	perror_with_name ("Couldn't get registers");
+	perror_with_name (_("Couldn't get registers"));
 
       hppabsd_supply_gregset (regcache, &regs);
     }
@@ -108,12 +108,12 @@ store_inferior_registers (int regnum)
 
       if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
                   (PTRACE_TYPE_ARG3) &regs, 0) == -1)
-        perror_with_name ("Couldn't get registers");
+        perror_with_name (_("Couldn't get registers"));
 
       hppabsd_collect_gregset (current_regcache, &regs, regnum);
 
       if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
 	          (PTRACE_TYPE_ARG3) &regs, 0) == -1)
-        perror_with_name ("Couldn't write registers");
+        perror_with_name (_("Couldn't write registers"));
     }
 }
Index: hpread.c
===================================================================
RCS file: /cvs/src/src/gdb/hpread.c,v
retrieving revision 1.56
diff -p -u -r1.56 hpread.c
--- hpread.c	11 Feb 2005 04:05:50 -0000	1.56
+++ hpread.c	11 Feb 2005 18:10:44 -0000
@@ -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, ch
     *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,
 	  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 d
 	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 d
 
 	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 d
 	  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 d
     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 d
        * 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:
Index: i386-linux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/i386-linux-nat.c,v
retrieving revision 1.62
diff -p -u -r1.62 i386-linux-nat.c
--- i386-linux-nat.c	11 Feb 2005 04:05:51 -0000	1.62
+++ i386-linux-nat.c	11 Feb 2005 18:10:44 -0000
@@ -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 (&regs);
@@ -287,12 +287,12 @@ store_regs (int tid, int regno)
   elf_gregset_t regs;
 
   if (ptrace (PTRACE_GETREGS, tid, 0, (int) &regs) < 0)
-    perror_with_name ("Couldn't get registers");
+    perror_with_name (_("Couldn't get registers"));
 
   fill_gregset (&regs, regno);
   
   if (ptrace (PTRACE_SETREGS, tid, 0, (int) &regs) < 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 
   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, enu
     }
 
   if (ptrace (request, pid, 0, target_signal_to_host (signal)) == -1)
-    perror_with_name ("ptrace");
+    perror_with_name (("ptrace"));
 }
 
 void
Index: i386-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/i386-nat.c,v
retrieving revision 1.9
diff -p -u -r1.9 i386-nat.c
--- i386-nat.c	8 Oct 2004 17:30:47 -0000	1.9
+++ i386-nat.c	11 Feb 2005 18:10:44 -0000
@@ -310,8 +310,8 @@ i386_length_and_rw_bits (int len, enum t
 	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 i
         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_
 	  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
Index: i386-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i386-tdep.c,v
retrieving revision 1.206
diff -p -u -r1.206 i386-tdep.c
--- i386-tdep.c	11 Feb 2005 04:05:51 -0000	1.206
+++ i386-tdep.c	11 Feb 2005 18:10:44 -0000
@@ -1320,7 +1320,7 @@ i386_extract_return_value (struct gdbarc
 	}
       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 
 	}
       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
Index: i386bsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/i386bsd-nat.c,v
retrieving revision 1.34
diff -p -u -r1.34 i386bsd-nat.c
--- i386bsd-nat.c	11 Feb 2005 04:05:51 -0000	1.34
+++ i386bsd-nat.c	11 Feb 2005 18:10:44 -0000
@@ -140,7 +140,7 @@ i386bsd_fetch_inferior_registers (int re
 
       if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
 		  (PTRACE_TYPE_ARG3) &regs, 0) == -1)
-	perror_with_name ("Couldn't get registers");
+	perror_with_name (_("Couldn't get registers"));
 
       i386bsd_supply_gregset (current_regcache, &regs);
       if (regnum != -1)
@@ -164,14 +164,14 @@ i386bsd_fetch_inferior_registers (int re
 	{
           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 re
 
       if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
                   (PTRACE_TYPE_ARG3) &regs, 0) == -1)
-        perror_with_name ("Couldn't get registers");
+        perror_with_name (_("Couldn't get registers"));
 
       i386bsd_collect_gregset (current_regcache, &regs, regnum);
 
       if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
 	          (PTRACE_TYPE_ARG3) &regs, 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 re
 
 	  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 re
 #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
 
   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
 
   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
Index: i386fbsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/i386fbsd-nat.c,v
retrieving revision 1.9
diff -p -u -r1.9 i386fbsd-nat.c
--- i386fbsd-nat.c	19 Nov 2004 21:55:24 -0000	1.9
+++ i386fbsd-nat.c	11 Feb 2005 18:10:44 -0000
@@ -75,7 +75,7 @@ i386fbsd_resume (ptid_t ptid, int step, 
      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"));
 }
 
 
Index: inf-ptrace.c
===================================================================
RCS file: /cvs/src/src/gdb/inf-ptrace.c,v
retrieving revision 1.17
diff -p -u -r1.17 inf-ptrace.c
--- inf-ptrace.c	11 Feb 2005 04:05:54 -0000	1.17
+++ inf-ptrace.c	11 Feb 2005 18:10:44 -0000
@@ -95,7 +95,7 @@ inf_ptrace_resume (ptid_t ptid, int step
   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_
   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_
   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_
   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"));
Index: inf-ttrace.c
===================================================================
RCS file: /cvs/src/src/gdb/inf-ttrace.c,v
retrieving revision 1.6
diff -p -u -r1.6 inf-ttrace.c
--- inf-ttrace.c	11 Feb 2005 04:05:54 -0000	1.6
+++ inf-ttrace.c	11 Feb 2005 18:10:44 -0000
@@ -98,17 +98,17 @@ inf_ttrace_enable_syscall_events (pid_t 
 
   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
 
   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_ADD
 
       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_ADD
 	{
 	  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_
 	{
 	  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 
 	{
 	  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_
   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_
   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_
   /* ??? 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 threa
       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
     }
 
   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 tar
 
   /* 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.  */
Index: infcall.c
===================================================================
RCS file: /cvs/src/src/gdb/infcall.c,v
retrieving revision 1.67
diff -p -u -r1.67 infcall.c
--- infcall.c	11 Feb 2005 04:05:54 -0000	1.67
+++ infcall.c	11 Feb 2005 18:10:44 -0000
@@ -481,7 +481,7 @@ call_function_by_hand (struct value *fun
 	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. */
Index: infcmd.c
===================================================================
RCS file: /cvs/src/src/gdb/infcmd.c,v
retrieving revision 1.128
diff -p -u -r1.128 infcmd.c
--- infcmd.c	11 Feb 2005 04:05:55 -0000	1.128
+++ infcmd.c	11 Feb 2005 18:10:44 -0000
@@ -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 fr
   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, s
       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 cont
       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 
   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 
     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, in
     {
       /* 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 ();
Index: inflow.c
===================================================================
RCS file: /cvs/src/src/gdb/inflow.c,v
retrieving revision 1.26
diff -p -u -r1.26 inflow.c
--- inflow.c	11 Feb 2005 04:05:55 -0000	1.26
+++ inflow.c	11 Feb 2005 18:10:44 -0000
@@ -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.  */
 
Index: infptrace.c
===================================================================
RCS file: /cvs/src/src/gdb/infptrace.c,v
retrieving revision 1.51
diff -p -u -r1.51 infptrace.c
--- infptrace.c	11 Feb 2005 04:05:55 -0000	1.51
+++ infptrace.c	11 Feb 2005 18:10:45 -0000
@@ -144,7 +144,7 @@ child_resume (ptid_t ptid, int step, enu
   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"));
Index: infrun.c
===================================================================
RCS file: /cvs/src/src/gdb/infrun.c,v
retrieving revision 1.190
diff -p -u -r1.190 infrun.c
--- infrun.c	11 Feb 2005 04:05:55 -0000	1.190
+++ infrun.c	11 Feb 2005 18:10:45 -0000
@@ -1250,7 +1250,7 @@ handle_inferior_event (struct execution_
       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_re
       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. */
Index: inftarg.c
===================================================================
RCS file: /cvs/src/src/gdb/inftarg.c,v
retrieving revision 1.39
diff -p -u -r1.39 inftarg.c
--- inftarg.c	11 Feb 2005 04:05:55 -0000	1.39
+++ inftarg.c	11 Feb 2005 18:10:45 -0000
@@ -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);
Index: interps.c
===================================================================
RCS file: /cvs/src/src/gdb/interps.c,v
retrieving revision 1.12
diff -p -u -r1.12 interps.c
--- interps.c	11 Feb 2005 04:05:55 -0000	1.12
+++ interps.c	11 Feb 2005 18:10:45 -0000
@@ -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;
     }
Index: language.c
===================================================================
RCS file: /cvs/src/src/gdb/language.c,v
retrieving revision 1.55
diff -p -u -r1.55 language.c
--- language.c	11 Feb 2005 04:05:56 -0000	1.55
+++ language.c	11 Feb 2005 18:10:45 -0000
@@ -565,7 +565,7 @@ binop_result_type (struct value *v1, str
       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
     {
       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)
Index: linespec.c
===================================================================
RCS file: /cvs/src/src/gdb/linespec.c,v
retrieving revision 1.60
diff -p -u -r1.60 linespec.c
--- linespec.c	11 Feb 2005 04:05:56 -0000	1.60
+++ linespec.c	11 Feb 2005 18:10:45 -0000
@@ -534,7 +534,7 @@ decode_line_2 (struct symbol *sym_arr[],
   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)
Index: linux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/linux-nat.c,v
retrieving revision 1.20
diff -p -u -r1.20 linux-nat.c
--- linux-nat.c	11 Feb 2005 04:05:56 -0000	1.20
+++ linux-nat.c	11 Feb 2005 18:10:45 -0000
@@ -193,14 +193,14 @@ linux_test_for_tracefork (int original_p
 
   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
 			   (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
     }
 
   internal_error (__FILE__, __LINE__,
-		  "unknown ptrace event %d", event);
+		  _("unknown ptrace event %d"), event);
 }
 
 
Index: m32r-linux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/m32r-linux-nat.c,v
retrieving revision 1.1
diff -p -u -r1.1 m32r-linux-nat.c
--- m32r-linux-nat.c	1 Oct 2004 07:29:34 -0000	1.1
+++ m32r-linux-nat.c	11 Feb 2005 18:10:45 -0000
@@ -108,7 +108,7 @@ fetch_regs (int tid)
   elf_gregset_t regs;
 
   if (ptrace (PTRACE_GETREGS, tid, 0, (int) &regs) < 0)
-    perror_with_name ("Couldn't get registers");
+    perror_with_name (_("Couldn't get registers"));
 
   supply_gregset (&regs);
 }
@@ -156,12 +156,12 @@ store_regs (int tid, int regno)
   elf_gregset_t regs;
 
   if (ptrace (PTRACE_GETREGS, tid, 0, (int) &regs) < 0)
-    perror_with_name ("Couldn't get registers");
+    perror_with_name (_("Couldn't get registers"));
 
   fill_gregset (&regs, regno);
 
   if (ptrace (PTRACE_SETREGS, tid, 0, (int) &regs) < 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);
 }
Index: m68k-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/m68k-tdep.c,v
retrieving revision 1.99
diff -p -u -r1.99 m68k-tdep.c
--- m68k-tdep.c	11 Feb 2005 04:05:56 -0000	1.99
+++ m68k-tdep.c	11 Feb 2005 18:10:45 -0000
@@ -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 *
     }
   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 *ty
     }
   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;
     }
 
Index: m68kbsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/m68kbsd-nat.c,v
retrieving revision 1.6
diff -p -u -r1.6 m68kbsd-nat.c
--- m68kbsd-nat.c	8 Nov 2004 20:42:53 -0000	1.6
+++ m68kbsd-nat.c	11 Feb 2005 18:10:45 -0000
@@ -116,7 +116,7 @@ m68kbsd_fetch_inferior_registers (int re
 
       if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
 		  (PTRACE_TYPE_ARG3) &regs, 0) == -1)
-	perror_with_name ("Couldn't get registers");
+	perror_with_name (_("Couldn't get registers"));
 
       m68kbsd_supply_gregset (current_regcache, &regs);
     }
@@ -127,7 +127,7 @@ m68kbsd_fetch_inferior_registers (int re
 
       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 re
 
       if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
                   (PTRACE_TYPE_ARG3) &regs, 0) == -1)
-        perror_with_name ("Couldn't get registers");
+        perror_with_name (_("Couldn't get registers"));
 
       m68kbsd_collect_gregset (current_regcache, &regs, regnum);
 
       if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
 	          (PTRACE_TYPE_ARG3) &regs, 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 re
 
       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"));
     }
 }
 
Index: m68klinux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/m68klinux-nat.c,v
retrieving revision 1.27
diff -p -u -r1.27 m68klinux-nat.c
--- m68klinux-nat.c	11 Feb 2005 04:05:56 -0000	1.27
+++ m68klinux-nat.c	11 Feb 2005 18:10:45 -0000
@@ -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 (&regs);
@@ -332,12 +332,12 @@ store_regs (int tid, int regno)
   elf_gregset_t regs;
 
   if (ptrace (PTRACE_GETREGS, tid, 0, (int) &regs) < 0)
-    perror_with_name ("Couldn't get registers");
+    perror_with_name (_("Couldn't get registers"));
 
   fill_gregset (&regs, regno);
 
   if (ptrace (PTRACE_SETREGS, tid, 0, (int) &regs) < 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.  */
Index: m88kbsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/m88kbsd-nat.c,v
retrieving revision 1.3
diff -p -u -r1.3 m88kbsd-nat.c
--- m88kbsd-nat.c	30 Sep 2004 20:52:59 -0000	1.3
+++ m88kbsd-nat.c	11 Feb 2005 18:10:45 -0000
@@ -71,7 +71,7 @@ m88kbsd_fetch_inferior_registers (int re
 
   if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
 	      (PTRACE_TYPE_ARG3) &regs, 0) == -1)
-    perror_with_name ("Couldn't get registers");
+    perror_with_name (_("Couldn't get registers"));
 
   m88kbsd_supply_gregset (current_regcache, &regs);
 }
@@ -86,13 +86,13 @@ m88kbsd_store_inferior_registers (int re
 
   if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
 	      (PTRACE_TYPE_ARG3) &regs, 0) == -1)
-    perror_with_name ("Couldn't get registers");
+    perror_with_name (_("Couldn't get registers"));
 
   m88kbsd_collect_gregset (current_regcache, &regs, regnum);
 
   if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
 	      (PTRACE_TYPE_ARG3) &regs, 0) == -1)
-    perror_with_name ("Couldn't write registers");
+    perror_with_name (_("Couldn't write registers"));
 }
 
 
Index: macroexp.c
===================================================================
RCS file: /cvs/src/src/gdb/macroexp.c,v
retrieving revision 1.6
diff -p -u -r1.6 macroexp.c
--- macroexp.c	11 Feb 2005 04:05:56 -0000	1.6
+++ macroexp.c	11 Feb 2005 18:10:45 -0000
@@ -616,7 +616,7 @@ append_tokens_without_splicing (struct m
   /* 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"));
 }
 
 
Index: macroscope.c
===================================================================
RCS file: /cvs/src/src/gdb/macroscope.c,v
retrieving revision 1.7
diff -p -u -r1.7 macroscope.c
--- macroscope.c	9 Dec 2002 03:30:44 -0000	1.7
+++ macroscope.c	11 Feb 2005 18:10:45 -0000
@@ -70,8 +70,8 @@ sal_macro_scope (struct symtab_and_line 
       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);
     }
 
Index: macrotab.c
===================================================================
RCS file: /cvs/src/src/gdb/macrotab.c,v
retrieving revision 1.9
diff -p -u -r1.9 macrotab.c
--- macrotab.c	19 Sep 2003 21:51:32 -0000	1.9
+++ macrotab.c	11 Feb 2005 18:10:45 -0000
@@ -445,7 +445,7 @@ macro_include (struct macro_source_file 
 
          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_sou
       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 *s
       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 *s
          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
     }
Index: maint.c
===================================================================
RCS file: /cvs/src/src/gdb/maint.c,v
retrieving revision 1.47
diff -p -u -r1.47 maint.c
--- maint.c	11 Feb 2005 04:05:57 -0000	1.47
+++ maint.c	11 Feb 2005 18:10:45 -0000
@@ -412,7 +412,7 @@ maintenance_print_architecture (char *ar
     {
       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);
     }
Index: mdebugread.c
===================================================================
RCS file: /cvs/src/src/gdb/mdebugread.c,v
retrieving revision 1.74
diff -p -u -r1.74 mdebugread.c
--- mdebugread.c	11 Feb 2005 04:05:57 -0000	1.74
+++ mdebugread.c	11 Feb 2005 18:10:46 -0000
@@ -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 *a
                     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 *a
 
 	      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 *a
 	}
       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 *a
     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, u
 	  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, u
       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, u
       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, u
 
   /* 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,
       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,
       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 
 	  /* 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 
     }
   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 
       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 li
 	  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 *o
       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 *o
 			   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 *o
 		  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 *o
 		    {
 		      /* 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 *o
 		    {
 		      /* 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 *o
 		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 *o
 	      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 *o
 			  &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_symt
 	    /* 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, st
 				      &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, st
 
 	    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);
Index: memattr.c
===================================================================
RCS file: /cvs/src/src/gdb/memattr.c,v
retrieving revision 1.17
diff -p -u -r1.17 memattr.c
--- memattr.c	11 Feb 2005 04:05:58 -0000	1.17
+++ memattr.c	11 Feb 2005 18:10:46 -0000
@@ -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)
Index: mips-linux-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mips-linux-tdep.c,v
retrieving revision 1.37
diff -p -u -r1.37 mips-linux-tdep.c
--- mips-linux-tdep.c	11 Feb 2005 04:05:59 -0000	1.37
+++ mips-linux-tdep.c	11 Feb 2005 18:10:46 -0000
@@ -1188,7 +1188,7 @@ mips_linux_init_abi (struct gdbarch_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;
     }
 
Index: mips-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mips-tdep.c,v
retrieving revision 1.370
diff -p -u -r1.370 mips-tdep.c
--- mips-tdep.c	11 Feb 2005 04:05:59 -0000	1.370
+++ mips-tdep.c	11 Feb 2005 18:10:46 -0000
@@ -270,7 +270,7 @@ mips_abi_regsize (struct gdbarch *gdbarc
       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 *reg
       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 gdbarc
 	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 gdbar
 	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 *gdba
 	    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
     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_t
 	 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 *g
 			      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 fra
     {
       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 fr
       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, 
      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, 
      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, in
      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 i
                                       &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);
 
Index: mips64obsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/mips64obsd-nat.c,v
retrieving revision 1.2
diff -p -u -r1.2 mips64obsd-nat.c
--- mips64obsd-nat.c	7 Nov 2004 17:08:34 -0000	1.2
+++ mips64obsd-nat.c	11 Feb 2005 18:10:46 -0000
@@ -85,7 +85,7 @@ mips64obsd_fetch_inferior_registers (int
 
   if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
 	      (PTRACE_TYPE_ARG3) &regs, 0) == -1)
-    perror_with_name ("Couldn't get registers");
+    perror_with_name (_("Couldn't get registers"));
 
   mips64obsd_supply_gregset (current_regcache, &regs);
 }
@@ -100,13 +100,13 @@ mips64obsd_store_inferior_registers (int
 
   if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
 	      (PTRACE_TYPE_ARG3) &regs, 0) == -1)
-    perror_with_name ("Couldn't get registers");
+    perror_with_name (_("Couldn't get registers"));
 
   mips64obsd_collect_gregset (current_regcache, &regs, regnum);
 
   if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
 	      (PTRACE_TYPE_ARG3) &regs, 0) == -1)
-    perror_with_name ("Couldn't write registers");
+    perror_with_name (_("Couldn't write registers"));
 }
 
 
Index: mipsnbsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/mipsnbsd-nat.c,v
retrieving revision 1.4
diff -p -u -r1.4 mipsnbsd-nat.c
--- mipsnbsd-nat.c	31 Oct 2004 20:47:55 -0000	1.4
+++ mipsnbsd-nat.c	11 Feb 2005 18:10:46 -0000
@@ -48,7 +48,7 @@ mipsnbsd_fetch_inferior_registers (int r
 
       if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
 		  (PTRACE_TYPE_ARG3) &regs, 0) == -1)
-	perror_with_name ("Couldn't get registers");
+	perror_with_name (_("Couldn't get registers"));
       
       mipsnbsd_supply_reg ((char *) &regs, regno);
       if (regno != -1)
@@ -61,7 +61,7 @@ mipsnbsd_fetch_inferior_registers (int r
 
       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 r
 
       if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
 		  (PTRACE_TYPE_ARG3) &regs, 0) == -1)
-	perror_with_name ("Couldn't get registers");
+	perror_with_name (_("Couldn't get registers"));
 
       mipsnbsd_fill_reg ((char *) &regs, regno);
 
       if (ptrace (PT_SETREGS, PIDGET (inferior_ptid), 
 		  (PTRACE_TYPE_ARG3) &regs, 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 r
 
       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"));
     }
 }
 
Index: mn10300-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mn10300-tdep.c,v
retrieving revision 1.115
diff -p -u -r1.115 mn10300-tdep.c
--- mn10300-tdep.c	11 Dec 2004 02:02:01 -0000	1.115
+++ mn10300-tdep.c	11 Feb 2005 18:10:46 -0000
@@ -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 
     }
   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 typ
     }
   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_inf
       break;
     default:
       internal_error (__FILE__, __LINE__,
-		      "mn10300_gdbarch_init: Unknown mn10300 variant");
+		      _("mn10300_gdbarch_init: Unknown mn10300 variant"));
       break;
     }
 
Index: monitor.c
===================================================================
RCS file: /cvs/src/src/gdb/monitor.c,v
retrieving revision 1.56
diff -p -u -r1.56 monitor.c
--- monitor.c	11 Feb 2005 04:06:00 -0000	1.56
+++ monitor.c	11 Feb 2005 18:10:46 -0000
@@ -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
Index: nto-procfs.c
===================================================================
RCS file: /cvs/src/src/gdb/nto-procfs.c,v
retrieving revision 1.11
diff -p -u -r1.11 nto-procfs.c
--- nto-procfs.c	11 Feb 2005 04:06:00 -0000	1.11
+++ nto-procfs.c	11 Feb 2005 18:10:46 -0000
@@ -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);
 
Index: objc-lang.c
===================================================================
RCS file: /cvs/src/src/gdb/objc-lang.c,v
retrieving revision 1.44
diff -p -u -r1.44 objc-lang.c
--- objc-lang.c	11 Feb 2005 04:06:00 -0000	1.44
+++ objc-lang.c	11 Feb 2005 18:10:46 -0000
@@ -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;
     }
 
Index: objfiles.c
===================================================================
RCS file: /cvs/src/src/gdb/objfiles.c,v
retrieving revision 1.60
diff -p -u -r1.60 objfiles.c
--- objfiles.c	11 Feb 2005 04:06:00 -0000	1.60
+++ objfiles.c	11 Feb 2005 18:10:46 -0000
@@ -305,7 +305,7 @@ put_objfile_before (struct objfile *objf
     }
   
   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"));
 }
 
 
Index: objfiles.h
===================================================================
RCS file: /cvs/src/src/gdb/objfiles.h,v
retrieving revision 1.40
diff -p -u -r1.40 objfiles.h
--- objfiles.h	23 Oct 2004 16:18:09 -0000	1.40
+++ objfiles.h	11 Feb 2005 18:10:46 -0000
@@ -624,17 +624,17 @@ extern void *objfile_data (struct objfil
 
 #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
Index: ocd.c
===================================================================
RCS file: /cvs/src/src/gdb/ocd.c,v
retrieving revision 1.36
diff -p -u -r1.36 ocd.c
--- ocd.c	11 Feb 2005 04:06:00 -0000	1.36
+++ ocd.c	11 Feb 2005 18:10:46 -0000
@@ -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 
 
   *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
Index: osabi.c
===================================================================
RCS file: /cvs/src/src/gdb/osabi.c,v
retrieving revision 1.28
diff -p -u -r1.28 osabi.c
--- osabi.c	2 Jul 2004 21:27:17 -0000	1.28
+++ osabi.c	11 Feb 2005 18:10:46 -0000
@@ -117,9 +117,9 @@ gdbarch_register_osabi (enum bfd_archite
     {
       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_archite
 	{
 	  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
 	      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, str
 	  }
       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, str
      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,
Index: parse.c
===================================================================
RCS file: /cvs/src/src/gdb/parse.c,v
retrieving revision 1.45
diff -p -u -r1.45 parse.c
--- parse.c	11 Feb 2005 04:06:01 -0000	1.45
+++ parse.c	11 Feb 2005 18:10:46 -0000
@@ -1025,7 +1025,7 @@ parse_exp_in_context (char **stringptr, 
   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;
Index: ppc-bdm.c
===================================================================
RCS file: /cvs/src/src/gdb/ppc-bdm.c,v
retrieving revision 1.26
diff -p -u -r1.26 ppc-bdm.c
--- ppc-bdm.c	8 Oct 2004 20:29:47 -0000	1.26
+++ ppc-bdm.c	11 Feb 2005 18:10:46 -0000
@@ -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
Index: ppc-linux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/ppc-linux-nat.c,v
retrieving revision 1.53
diff -p -u -r1.53 ppc-linux-nat.c
--- ppc-linux-nat.c	8 Feb 2005 21:00:16 -0000	1.53
+++ ppc-linux-nat.c	11 Feb 2005 18:10:46 -0000
@@ -248,7 +248,7 @@ fetch_altivec_register (int tid, int reg
           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_e
             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 (&regs);
 }
@@ -528,7 +528,7 @@ store_altivec_register (int tid, int reg
           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 reg
 
   ret = ptrace (PTRACE_SETVRREGS, tid, 0, &regs);
   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_e
             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 (&regs);
   
   if (ptrace (PTRACE_SETVRREGS, tid, 0, &regs) < 0)
-    perror_with_name ("Couldn't write AltiVec registers");
+    perror_with_name (_("Couldn't write AltiVec registers"));
 }
 
 static void
Index: ppc-sysv-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/ppc-sysv-tdep.c,v
retrieving revision 1.27
diff -p -u -r1.27 ppc-sysv-tdep.c
--- ppc-sysv-tdep.c	9 Feb 2005 16:51:43 -0000	1.27
+++ ppc-sysv-tdep.c	11 Feb 2005 18:10:46 -0000
@@ -142,7 +142,7 @@ ppc_sysv_abi_push_dummy_call (struct gdb
 			  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);
Index: ppcnbsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/ppcnbsd-nat.c,v
retrieving revision 1.18
diff -p -u -r1.18 ppcnbsd-nat.c
--- ppcnbsd-nat.c	12 Sep 2004 13:04:40 -0000	1.18
+++ ppcnbsd-nat.c	11 Feb 2005 18:10:46 -0000
@@ -84,7 +84,7 @@ ppcnbsd_fetch_inferior_registers (int re
 
       if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
 		  (PTRACE_TYPE_ARG3) &regs, 0) == -1)
-        perror_with_name ("Couldn't get registers");
+        perror_with_name (_("Couldn't get registers"));
 
       ppcnbsd_supply_reg ((char *) &regs, regno);
       if (regno != -1)
@@ -97,7 +97,7 @@ ppcnbsd_fetch_inferior_registers (int re
 
       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 re
 
       if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
 		  (PTRACE_TYPE_ARG3) &regs, 0) == -1)
-	perror_with_name ("Couldn't get registers");
+	perror_with_name (_("Couldn't get registers"));
 
       ppcnbsd_fill_reg ((char *) &regs, regno);
 
       if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
 		  (PTRACE_TYPE_ARG3) &regs, 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 re
 
       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"));
     }
 }
 
Index: ppcobsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/ppcobsd-nat.c,v
retrieving revision 1.3
diff -p -u -r1.3 ppcobsd-nat.c
--- ppcobsd-nat.c	14 Aug 2004 23:37:04 -0000	1.3
+++ ppcobsd-nat.c	11 Feb 2005 18:10:46 -0000
@@ -44,7 +44,7 @@ fetch_inferior_registers (int regnum)
 
   if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
 	      (PTRACE_TYPE_ARG3) &regs, 0) == -1)
-    perror_with_name ("Couldn't get registers");
+    perror_with_name (_("Couldn't get registers"));
 
   ppcobsd_supply_gregset (&ppcobsd_gregset, current_regcache, -1,
 			  &regs, sizeof regs);
@@ -60,14 +60,14 @@ store_inferior_registers (int regnum)
 
   if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
 	      (PTRACE_TYPE_ARG3) &regs, 0) == -1)
-    perror_with_name ("Couldn't get registers");
+    perror_with_name (_("Couldn't get registers"));
 
   ppcobsd_collect_gregset (&ppcobsd_gregset, current_regcache,
 			   regnum, &regs, sizeof regs);
 
   if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
 	      (PTRACE_TYPE_ARG3) &regs, 0) == -1)
-    perror_with_name ("Couldn't write registers");
+    perror_with_name (_("Couldn't write registers"));
 }
 
 
Index: printcmd.c
===================================================================
RCS file: /cvs/src/src/gdb/printcmd.c,v
retrieving revision 1.86
diff -p -u -r1.86 printcmd.c
--- printcmd.c	11 Feb 2005 04:06:01 -0000	1.86
+++ printcmd.c	11 Feb 2005 18:10:46 -0000
@@ -242,7 +242,7 @@ decode_format (char **string_ptr, int of
 	  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 *vala
       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')
Index: procfs.c
===================================================================
RCS file: /cvs/src/src/gdb/procfs.c,v
retrieving revision 1.63
diff -p -u -r1.63 procfs.c
--- procfs.c	11 Feb 2005 04:06:01 -0000	1.63
+++ procfs.c	11 Feb 2005 18:10:47 -0000
@@ -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 fro
     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]))
Index: regcache.c
===================================================================
RCS file: /cvs/src/src/gdb/regcache.c,v
retrieving revision 1.129
diff -p -u -r1.129 regcache.c
--- regcache.c	14 Nov 2004 01:11:07 -0000	1.129
+++ regcache.c	11 Feb 2005 18:10:47 -0000
@@ -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, p
     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,
 	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 regcach
     {
       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);
     }
Index: reggroups.c
===================================================================
RCS file: /cvs/src/src/gdb/reggroups.c,v
retrieving revision 1.9
diff -p -u -r1.9 reggroups.c
--- reggroups.c	15 Mar 2004 20:38:08 -0000	1.9
+++ reggroups.c	11 Feb 2005 18:10:47 -0000
@@ -215,7 +215,7 @@ reggroups_dump (struct gdbarch *gdbarch,
 		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,
     {
       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);
     }
Index: remote-e7000.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-e7000.c,v
retrieving revision 1.49
diff -p -u -r1.49 remote-e7000.c
--- remote-e7000.c	11 Feb 2005 04:06:02 -0000	1.49
+++ remote-e7000.c	11 Feb 2005 18:10:47 -0000
@@ -788,7 +788,7 @@ fetch_regs_from_dump (int (*nextchar) ()
   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) ()
 		}
 
 	      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_w
       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;
Index: remote-mips.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-mips.c,v
retrieving revision 1.60
diff -p -u -r1.60 remote-mips.c
--- remote-mips.c	19 Jan 2005 21:15:44 -0000	1.60
+++ remote-mips.c	11 Feb 2005 18:10:47 -0000
@@ -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 ad
 	      flags = "f";
 	      break;
 	    default:
-	      internal_error (__FILE__, __LINE__, "failed internal consistency check");
+	      internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
 	    }
 
 	  cmd = 'B';
Index: remote-rdp.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-rdp.c,v
retrieving revision 1.43
diff -p -u -r1.43 remote-rdp.c
--- remote-rdp.c	11 Feb 2005 04:06:03 -0000	1.43
+++ remote-rdp.c	11 Feb 2005 18:10:47 -0000
@@ -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_tt
   int not_icebreaker;
 
   if (!args)
-    error_no_arg ("serial port device name");
+    error_no_arg (_("serial port device name"));
 
   baud_rate = 9600;
 
Index: remote-sds.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-sds.c,v
retrieving revision 1.37
diff -p -u -r1.37 remote-sds.c
--- remote-sds.c	19 Jan 2005 21:15:44 -0000	1.37
+++ remote-sds.c	11 Feb 2005 18:10:47 -0000
@@ -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)
     {
Index: remote-sim.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-sim.c,v
retrieving revision 1.44
diff -p -u -r1.44 remote-sim.c
--- remote-sim.c	11 Feb 2005 04:06:03 -0000	1.44
+++ remote-sim.c	11 Feb 2005 18:10:47 -0000
@@ -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.  */
Index: remote-st.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-st.c,v
retrieving revision 1.24
diff -p -u -r1.24 remote-st.c
--- remote-st.c	11 Feb 2005 04:06:03 -0000	1.24
+++ remote-st.c	11 Feb 2005 18:10:47 -0000
@@ -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)
Index: remote-utils.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-utils.c,v
retrieving revision 1.15
diff -p -u -r1.15 remote-utils.c
--- remote-utils.c	11 Feb 2005 04:06:03 -0000	1.15
+++ remote-utils.c	11 Feb 2005 18:10:47 -0000
@@ -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++)
Index: remote.c
===================================================================
RCS file: /cvs/src/src/gdb/remote.c,v
retrieving revision 1.165
diff -p -u -r1.165 remote.c
--- remote.c	11 Feb 2005 04:06:03 -0000	1.165
+++ remote.c	11 Feb 2005 18:10:47 -0000
@@ -477,8 +477,8 @@ set_memory_packet_size (char *args, stru
   /* 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 packe
 	  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
 
   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, c
       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, c
       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
       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
       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 a
       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 a
       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 inf
 {
   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)
     {
Index: rs6000-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/rs6000-nat.c,v
retrieving revision 1.57
diff -p -u -r1.57 rs6000-nat.c
--- rs6000-nat.c	11 Feb 2005 04:06:04 -0000	1.57
+++ rs6000-nat.c	11 Feb 2005 18:10:48 -0000
@@ -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
 	{
Index: rs6000-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/rs6000-tdep.c,v
retrieving revision 1.236
diff -p -u -r1.236 rs6000-tdep.c
--- rs6000-tdep.c	7 Feb 2005 00:09:55 -0000	1.236
+++ rs6000-tdep.c	11 Feb 2005 18:10:48 -0000
@@ -1857,7 +1857,7 @@ rs6000_register_type (struct gdbarch *gd
 	  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 gdbarc
     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 gdbar
                            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 *
         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
       }   
   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);
Index: s390-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/s390-nat.c,v
retrieving revision 1.12
diff -p -u -r1.12 s390-nat.c
--- s390-nat.c	18 Feb 2004 04:17:35 -0000	1.12
+++ s390-nat.c	11 Feb 2005 18:10:48 -0000
@@ -136,7 +136,7 @@ fetch_regs (int tid)
   parea.process_addr = (addr_t) &regs;
   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 (&regs);
 }
@@ -153,12 +153,12 @@ store_regs (int tid, int regnum)
   parea.process_addr = (addr_t) &regs;
   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 (&regs, 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
Index: s390-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/s390-tdep.c,v
retrieving revision 1.140
diff -p -u -r1.140 s390-tdep.c
--- s390-tdep.c	11 Feb 2005 04:06:04 -0000	1.140
+++ s390-tdep.c	11 Feb 2005 18:10:48 -0000
@@ -227,7 +227,7 @@ s390_pseudo_register_read (struct gdbarc
       break;
 
     default:
-      internal_error (__FILE__, __LINE__, "invalid regnum");
+      internal_error (__FILE__, __LINE__, _("invalid regnum"));
     }
 }
 
@@ -254,7 +254,7 @@ s390_pseudo_register_write (struct gdbar
       break;
 
     default:
-      internal_error (__FILE__, __LINE__, "invalid regnum");
+      internal_error (__FILE__, __LINE__, _("invalid regnum"));
     }
 }
 
@@ -276,7 +276,7 @@ s390x_pseudo_register_read (struct gdbar
       break;
 
     default:
-      internal_error (__FILE__, __LINE__, "invalid regnum");
+      internal_error (__FILE__, __LINE__, _("invalid regnum"));
     }
 }
 
@@ -300,7 +300,7 @@ s390x_pseudo_register_write (struct gdba
       break;
 
     default:
-      internal_error (__FILE__, __LINE__, "invalid regnum");
+      internal_error (__FILE__, __LINE__, _("invalid regnum"));
     }
 }
 
@@ -2628,7 +2628,7 @@ s390_push_dummy_call (struct gdbarch *gd
 	      }
 	  }
 	else
-	  internal_error (__FILE__, __LINE__, "unknown argument type");
+	  internal_error (__FILE__, __LINE__, _("unknown argument type"));
       }
   }
 
@@ -2729,7 +2729,7 @@ s390_return_value (struct gdbarch *gdbar
 				     (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 *gdbar
 				    (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:
Index: sentinel-frame.c
===================================================================
RCS file: /cvs/src/src/gdb/sentinel-frame.c,v
retrieving revision 1.10
diff -p -u -r1.10 sentinel-frame.c
--- sentinel-frame.c	9 Nov 2004 01:16:42 -0000	1.10
+++ sentinel-frame.c	11 Feb 2005 18:10:48 -0000
@@ -78,7 +78,7 @@ sentinel_frame_this_id (struct frame_inf
   /* 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
Index: serial.c
===================================================================
RCS file: /cvs/src/src/gdb/serial.c,v
retrieving revision 1.17
diff -p -u -r1.17 serial.c
--- serial.c	26 Jul 2004 14:53:04 -0000	1.17
+++ serial.c	11 Feb 2005 18:10:48 -0000
@@ -347,7 +347,7 @@ serial_readchar (struct serial *scb, int
      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;
 
Index: sh-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sh-tdep.c,v
retrieving revision 1.183
diff -p -u -r1.183 sh-tdep.c
--- sh-tdep.c	11 Feb 2005 04:06:04 -0000	1.183
+++ sh-tdep.c	11 Feb 2005 18:10:48 -0000
@@ -2013,7 +2013,7 @@ sh_print_pseudo_register (struct gdbarch
 {
   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 *gdbar
 {
   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)
     {
Index: sh3-rom.c
===================================================================
RCS file: /cvs/src/src/gdb/sh3-rom.c,v
retrieving revision 1.19
diff -p -u -r1.19 sh3-rom.c
--- sh3-rom.c	11 Feb 2005 04:06:05 -0000	1.19
+++ sh3-rom.c	11 Feb 2005 18:10:48 -0000
@@ -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;
     }
Index: sh64-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sh64-tdep.c,v
retrieving revision 1.35
diff -p -u -r1.35 sh64-tdep.c
--- sh64-tdep.c	7 Feb 2005 00:09:55 -0000	1.35
+++ sh64-tdep.c	11 Feb 2005 18:10:48 -0000
@@ -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 *gdbar
 {
   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)
     {
Index: shnbsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/shnbsd-nat.c,v
retrieving revision 1.5
diff -p -u -r1.5 shnbsd-nat.c
--- shnbsd-nat.c	14 Aug 2004 23:40:55 -0000	1.5
+++ shnbsd-nat.c	11 Feb 2005 18:10:48 -0000
@@ -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;
Index: solib-aix5.c
===================================================================
RCS file: /cvs/src/src/gdb/solib-aix5.c,v
retrieving revision 1.16
diff -p -u -r1.16 solib-aix5.c
--- solib-aix5.c	11 Feb 2005 04:06:05 -0000	1.16
+++ solib-aix5.c	11 Feb 2005 18:10:48 -0000
@@ -839,7 +839,7 @@ aix5_relocate_section_addresses (struct 
 
       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;
Index: solib-svr4.c
===================================================================
RCS file: /cvs/src/src/gdb/solib-svr4.c,v
retrieving revision 1.46
diff -p -u -r1.46 solib-svr4.c
--- solib-svr4.c	11 Feb 2005 04:06:05 -0000	1.46
+++ solib-svr4.c	11 Feb 2005 18:10:48 -0000
@@ -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
Index: solib.c
===================================================================
RCS file: /cvs/src/src/gdb/solib.c,v
retrieving revision 1.72
diff -p -u -r1.72 solib.c
--- solib.c	11 Feb 2005 04:06:05 -0000	1.72
+++ solib.c	11 Feb 2005 18:10:48 -0000
@@ -667,7 +667,7 @@ info_sharedlibrary_command (char *ignore
   else
     {
       internal_error (__FILE__, __LINE__,
-		      "TARGET_PTR_BIT returned unknown size %d",
+		      _("TARGET_PTR_BIT returned unknown size %d"),
 		      TARGET_PTR_BIT);
     }
 
Index: source.c
===================================================================
RCS file: /cvs/src/src/gdb/source.c,v
retrieving revision 1.61
diff -p -u -r1.61 source.c
--- source.c	11 Feb 2005 04:06:05 -0000	1.61
+++ source.c	11 Feb 2005 18:10:48 -0000
@@ -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 fr
   /* 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 ();
Index: sparc-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/sparc-nat.c,v
retrieving revision 1.29
diff -p -u -r1.29 sparc-nat.c
--- sparc-nat.c	29 Nov 2004 08:41:56 -0000	1.29
+++ sparc-nat.c	11 Feb 2005 18:10:48 -0000
@@ -168,7 +168,7 @@ fetch_inferior_registers (int regnum)
       gregset_t regs;
 
       if (ptrace (PTRACE_GETREGS, pid, (PTRACE_TYPE_ARG3) &regs, 0) == -1)
-	perror_with_name ("Couldn't get registers");
+	perror_with_name (_("Couldn't get registers"));
 
       sparc_supply_gregset (sparc_gregset, regcache, -1, &regs);
       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) &regs, 0) == -1)
-	perror_with_name ("Couldn't get registers");
+	perror_with_name (_("Couldn't get registers"));
 
       sparc_collect_gregset (sparc_gregset, regcache, regnum, &regs);
 
       if (ptrace (PTRACE_SETREGS, pid, (PTRACE_TYPE_ARG3) &regs, 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 *o
     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
Index: stabsread.c
===================================================================
RCS file: /cvs/src/src/gdb/stabsread.c,v
retrieving revision 1.79
diff -p -u -r1.79 stabsread.c
--- stabsread.c	11 Feb 2005 04:06:05 -0000	1.79
+++ stabsread.c	11 Feb 2005 18:10:49 -0000
@@ -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 *str
 #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 *str
 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 *
   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
 	      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
 	    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,
 	  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
          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
 	  /* 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
 	     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 *fi
 		}
 	      /* 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
 	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 ty
     }
 
   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 o
   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 *objfil
 
   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 *objfi
 	    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));
 	}
     }
Index: stack.c
===================================================================
RCS file: /cvs/src/src/gdb/stack.c,v
retrieving revision 1.124
diff -p -u -r1.124 stack.c
--- stack.c	11 Feb 2005 04:06:05 -0000	1.124
+++ stack.c	11 Feb 2005 18:10:49 -0000
@@ -1866,10 +1866,10 @@ If you continue, the return value that y
     {
       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"));
Index: symfile.c
===================================================================
RCS file: /cvs/src/src/gdb/symfile.c,v
retrieving revision 1.145
diff -p -u -r1.145 symfile.c
--- symfile.c	11 Feb 2005 04:06:05 -0000	1.145
+++ symfile.c	11 Feb 2005 18:10:49 -0000
@@ -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);
     }
Index: symtab.c
===================================================================
RCS file: /cvs/src/src/gdb/symtab.c,v
retrieving revision 1.142
diff -p -u -r1.142 symtab.c
--- symtab.c	11 Feb 2005 04:06:06 -0000	1.142
+++ symtab.c	11 Feb 2005 18:10:49 -0000
@@ -1562,7 +1562,7 @@ lookup_partial_symbol (struct partial_sy
 	{
 	  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_sy
 	    }
 	}
       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
Index: symtab.h
===================================================================
RCS file: /cvs/src/src/gdb/symtab.h,v
retrieving revision 1.93
diff -p -u -r1.93 symtab.h
--- symtab.h	21 Oct 2004 00:52:30 -0000	1.93
+++ symtab.h	11 Feb 2005 18:10:49 -0000
@@ -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.  */
Index: target.c
===================================================================
RCS file: /cvs/src/src/gdb/target.c,v
retrieving revision 1.94
diff -p -u -r1.94 target.c
--- target.c	11 Feb 2005 04:06:06 -0000	1.94
+++ target.c	11 Feb 2005 18:10:49 -0000
@@ -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."));
Index: tracepoint.c
===================================================================
RCS file: /cvs/src/src/gdb/tracepoint.c,v
retrieving revision 1.71
diff -p -u -r1.71 tracepoint.c
--- tracepoint.c	11 Feb 2005 04:06:07 -0000	1.71
+++ tracepoint.c	11 Feb 2005 18:10:49 -0000
@@ -616,7 +616,7 @@ get_tracepoint_by_number (char **arg, in
       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);
Index: ui-file.c
===================================================================
RCS file: /cvs/src/src/gdb/ui-file.c,v
retrieving revision 1.10
diff -p -u -r1.10 ui-file.c
--- ui-file.c	10 Jun 2003 14:37:04 -0000	1.10
+++ ui-file.c	11 Feb 2005 18:10:49 -0000
@@ -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, c
   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, 
   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 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, co
   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 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);
 }
Index: ui-out.c
===================================================================
RCS file: /cvs/src/src/gdb/ui-out.c,v
retrieving revision 1.30
diff -p -u -r1.30 ui-out.c
--- ui-out.c	11 Sep 2004 10:24:51 -0000	1.30
+++ ui-out.c	11 Feb 2005 18:10:49 -0000
@@ -280,8 +280,8 @@ ui_out_table_begin (struct ui_out *uiout
 {
   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 *uiou
 {
   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 
     {
       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 
     {
       if (*fldno != current->field_count)
 	internal_error (__FILE__, __LINE__,
-			"ui-out internal error in handling headers.");
+			_("ui-out internal error in handling headers."));
     }
   else
     {
Index: utils.c
===================================================================
RCS file: /cvs/src/src/gdb/utils.c,v
retrieving revision 1.150
diff -p -u -r1.150 utils.c
--- utils.c	11 Feb 2005 04:06:08 -0000	1.150
+++ utils.c	11 Feb 2005 18:10:50 -0000
@@ -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."
       /* 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."
       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."
       /* 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."
       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
      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
       break;
     default:
       internal_error (__FILE__, __LINE__,
-		      "failed internal consistency check");
+		      _("failed internal consistency check"));
     }
 }
 
@@ -2597,7 +2597,7 @@ octal2str (char *paddr_str, ULONGEST add
       break;
     default:
       internal_error (__FILE__, __LINE__,
-		      "failed internal consistency check");
+		      _("failed internal consistency check"));
     }
 }
 
@@ -2707,7 +2707,7 @@ hex_string_custom (LONGEST num, int widt
     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 
       }
     default:
       internal_error (__FILE__, __LINE__,
-		      "failed internal consistency check");
+		      _("failed internal consistency check"));
     }
 }	
 
@@ -2798,7 +2798,7 @@ string_to_core_addr (const char *my_stri
 	  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_stri
 	  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;
Index: valops.c
===================================================================
RCS file: /cvs/src/src/gdb/valops.c,v
retrieving revision 1.152
diff -p -u -r1.152 valops.c
--- valops.c	11 Feb 2005 04:06:08 -0000	1.152
+++ valops.c	11 Feb 2005 18:10:50 -0000
@@ -1121,7 +1121,7 @@ typecmp (int staticp, int varargs, int n
   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 *curtyp
       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"));
     }
 }
 
Index: valprint.c
===================================================================
RCS file: /cvs/src/src/gdb/valprint.c,v
retrieving revision 1.42
diff -p -u -r1.42 valprint.c
--- valprint.c	11 Feb 2005 04:06:09 -0000	1.42
+++ valprint.c	11 Feb 2005 18:10:50 -0000
@@ -252,7 +252,7 @@ print_longest (struct ui_file *stream, i
     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);
 }
Index: vax-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/vax-nat.c,v
retrieving revision 1.2
diff -p -u -r1.2 vax-nat.c
--- vax-nat.c	10 Jan 2005 20:56:17 -0000	1.2
+++ vax-nat.c	11 Feb 2005 18:10:50 -0000
@@ -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;
 }
Index: vaxbsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/vaxbsd-nat.c,v
retrieving revision 1.6
diff -p -u -r1.6 vaxbsd-nat.c
--- vaxbsd-nat.c	30 Sep 2004 21:04:35 -0000	1.6
+++ vaxbsd-nat.c	11 Feb 2005 18:10:50 -0000
@@ -71,7 +71,7 @@ vaxbsd_fetch_inferior_registers (int reg
 
   if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
 	      (PTRACE_TYPE_ARG3) &regs, 0) == -1)
-    perror_with_name ("Couldn't get registers");
+    perror_with_name (_("Couldn't get registers"));
 
   vaxbsd_supply_gregset (current_regcache, &regs);
 }
@@ -86,13 +86,13 @@ vaxbsd_store_inferior_registers (int reg
 
   if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
 	      (PTRACE_TYPE_ARG3) &regs, 0) == -1)
-    perror_with_name ("Couldn't get registers");
+    perror_with_name (_("Couldn't get registers"));
 
   vaxbsd_collect_gregset (current_regcache, &regs, regnum);
 
   if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
 	      (PTRACE_TYPE_ARG3) &regs, 0) == -1)
-    perror_with_name ("Couldn't write registers");
+    perror_with_name (_("Couldn't write registers"));
 }
 
 
Index: win32-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/win32-nat.c,v
retrieving revision 1.104
diff -p -u -r1.104 win32-nat.c
--- win32-nat.c	11 Feb 2005 04:06:09 -0000	1.104
+++ win32-nat.c	11 Feb 2005 18:10:50 -0000
@@ -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;
Index: xcoffread.c
===================================================================
RCS file: /cvs/src/src/gdb/xcoffread.c,v
retrieving revision 1.45
diff -p -u -r1.45 xcoffread.c
--- xcoffread.c	11 Feb 2005 04:06:09 -0000	1.45
+++ xcoffread.c	11 Feb 2005 18:10:50 -0000
@@ -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
       /* 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 *
 
   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 *subfil
       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 *
   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 *
     }
   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
 	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
 	  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 *sym
   ((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 *objfi
 	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 *objfi
 		   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 *objf
   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
Index: xstormy16-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/xstormy16-tdep.c,v
retrieving revision 1.87
diff -p -u -r1.87 xstormy16-tdep.c
--- xstormy16-tdep.c	7 Feb 2005 00:09:55 -0000	1.87
+++ xstormy16-tdep.c	11 Feb 2005 18:10:50 -0000
@@ -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];
Index: cli/cli-cmds.c
===================================================================
RCS file: /cvs/src/src/gdb/cli/cli-cmds.c,v
retrieving revision 1.48
diff -p -u -r1.48 cli-cmds.c
--- cli/cli-cmds.c	11 Feb 2005 04:06:10 -0000	1.48
+++ cli/cli-cmds.c	11 Feb 2005 18:10:50 -0000
@@ -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);
Index: cli/cli-logging.c
===================================================================
RCS file: /cvs/src/src/gdb/cli/cli-logging.c,v
retrieving revision 1.6
diff -p -u -r1.6 cli-logging.c
--- cli/cli-logging.c	11 Feb 2005 04:06:10 -0000	1.6
+++ cli/cli-logging.c	11 Feb 2005 18:10:50 -0000
@@ -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);
Index: cli/cli-script.c
===================================================================
RCS file: /cvs/src/src/gdb/cli/cli-script.c,v
retrieving revision 1.27
diff -p -u -r1.27 cli-script.c
--- cli/cli-script.c	11 Feb 2005 04:06:10 -0000	1.27
+++ cli/cli-script.c	11 Feb 2005 18:10:50 -0000
@@ -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_
     {
       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_
           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 *fi
   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 *fi
 	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"));
       }
   }
 
Index: cli/cli-setshow.c
===================================================================
RCS file: /cvs/src/src/gdb/cli/cli-setshow.c,v
retrieving revision 1.19
diff -p -u -r1.19 cli-setshow.c
--- cli/cli-setshow.c	11 Feb 2005 04:06:10 -0000	1.19
+++ cli/cli-setshow.c	11 Feb 2005 18:10:50 -0000
@@ -156,7 +156,7 @@ do_setshow_command (char *arg, int from_
 	  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_
 	  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_
 	  {
 	    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_
 	  }
 	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_
 	      break;
 	    default:
 	      internal_error (__FILE__, __LINE__,
-			      "do_setshow_command: invalid var_auto_boolean");
+			      _("do_setshow_command: invalid var_auto_boolean"));
 	      break;
 	    }
 	  break;
Index: mi/mi-cmd-break.c
===================================================================
RCS file: /cvs/src/src/gdb/mi/mi-cmd-break.c,v
retrieving revision 1.11
diff -p -u -r1.11 mi-cmd-break.c
--- mi/mi-cmd-break.c	11 Feb 2005 04:06:11 -0000	1.11
+++ mi/mi-cmd-break.c	11 Feb 2005 18:10:50 -0000
@@ -160,7 +160,7 @@ mi_cmd_break_insert (char *command, char
 #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);
 
Index: mi/mi-cmds.c
===================================================================
RCS file: /cvs/src/src/gdb/mi/mi-cmds.c,v
retrieving revision 1.15
diff -p -u -r1.15 mi-cmds.c
--- mi/mi-cmds.c	10 Jun 2004 20:05:45 -0000	1.15
+++ mi/mi-cmds.c	11 Feb 2005 18:10:50 -0000
@@ -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)
Index: mi/mi-console.c
===================================================================
RCS file: /cvs/src/src/gdb/mi/mi-console.c,v
retrieving revision 1.9
diff -p -u -r1.9 mi-console.c
--- mi/mi-console.c	6 Feb 2003 01:19:12 -0000	1.9
+++ mi/mi-console.c	11 Feb 2005 18:10:50 -0000
@@ -65,7 +65,7 @@ mi_console_file_delete (struct ui_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 *f
   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);
 }
Index: mi/mi-getopt.c
===================================================================
RCS file: /cvs/src/src/gdb/mi/mi-getopt.c,v
retrieving revision 1.8
diff -p -u -r1.8 mi-getopt.c
--- mi/mi-getopt.c	11 Feb 2005 04:06:11 -0000	1.8
+++ mi/mi-getopt.c	11 Feb 2005 18:10:50 -0000
@@ -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];
Index: mi/mi-out.c
===================================================================
RCS file: /cvs/src/src/gdb/mi/mi-out.c,v
retrieving revision 1.28
diff -p -u -r1.28 mi-out.c
--- mi/mi-out.c	19 Jan 2004 01:20:12 -0000	1.28
+++ mi/mi-out.c	11 Feb 2005 18:10:50 -0000
@@ -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;
 }
Index: tui/tui-file.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tui-file.c,v
retrieving revision 1.11
diff -p -u -r1.11 tui-file.c
--- tui/tui-file.c	8 Feb 2004 01:32:26 -0000	1.11
+++ tui/tui-file.c	11 Feb 2005 18:10:50 -0000
@@ -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 *fil
   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
   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)
     {
Index: tui/tui-interp.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tui-interp.c,v
retrieving revision 1.7
diff -p -u -r1.7 tui-interp.c
--- tui/tui-interp.c	13 Jan 2005 02:35:39 -0000	1.7
+++ tui/tui-interp.c	11 Feb 2005 18:10:50 -0000
@@ -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"));
 }
 
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]