]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2005-02-11 Andrew Cagney <cagney@gnu.org>
authorAndrew Cagney <cagney@redhat.com>
Fri, 11 Feb 2005 18:13:55 +0000 (18:13 +0000)
committerAndrew Cagney <cagney@redhat.com>
Fri, 11 Feb 2005 18:13:55 +0000 (18:13 +0000)
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.

136 files changed:
gdb/ChangeLog
gdb/breakpoint.c
gdb/cli/cli-cmds.c
gdb/cli/cli-logging.c
gdb/cli/cli-script.c
gdb/cli/cli-setshow.c
gdb/cp-abi.c
gdb/cp-namespace.c
gdb/cp-support.c
gdb/cris-tdep.c
gdb/dbxread.c
gdb/dictionary.c
gdb/dsrec.c
gdb/dummy-frame.c
gdb/dve3900-rom.c
gdb/dwarf2-frame.c
gdb/dwarf2expr.c
gdb/dwarf2read.c
gdb/dwarfread.c
gdb/elfread.c
gdb/event-loop.c
gdb/exceptions.c
gdb/exec.c
gdb/f-lang.c
gdb/findvar.c
gdb/fork-child.c
gdb/frame-unwind.c
gdb/frame.c
gdb/frv-linux-tdep.c
gdb/frv-tdep.c
gdb/gdb_assert.h
gdb/gdbarch.c
gdb/gdbtypes.c
gdb/gnu-nat.c
gdb/go32-nat.c
gdb/hppa-tdep.c
gdb/hppabsd-nat.c
gdb/hpread.c
gdb/i386-linux-nat.c
gdb/i386-nat.c
gdb/i386-tdep.c
gdb/i386bsd-nat.c
gdb/i386fbsd-nat.c
gdb/inf-ptrace.c
gdb/inf-ttrace.c
gdb/infcall.c
gdb/infcmd.c
gdb/inflow.c
gdb/infptrace.c
gdb/infrun.c
gdb/inftarg.c
gdb/interps.c
gdb/language.c
gdb/linespec.c
gdb/linux-nat.c
gdb/m32r-linux-nat.c
gdb/m68k-tdep.c
gdb/m68kbsd-nat.c
gdb/m68klinux-nat.c
gdb/m88kbsd-nat.c
gdb/macroexp.c
gdb/macroscope.c
gdb/macrotab.c
gdb/maint.c
gdb/mdebugread.c
gdb/memattr.c
gdb/mi/mi-cmd-break.c
gdb/mi/mi-cmds.c
gdb/mi/mi-console.c
gdb/mi/mi-getopt.c
gdb/mi/mi-out.c
gdb/mips-linux-tdep.c
gdb/mips-tdep.c
gdb/mips64obsd-nat.c
gdb/mipsnbsd-nat.c
gdb/mn10300-tdep.c
gdb/monitor.c
gdb/nto-procfs.c
gdb/objc-lang.c
gdb/objfiles.c
gdb/objfiles.h
gdb/ocd.c
gdb/osabi.c
gdb/parse.c
gdb/ppc-bdm.c
gdb/ppc-linux-nat.c
gdb/ppc-sysv-tdep.c
gdb/ppcnbsd-nat.c
gdb/ppcobsd-nat.c
gdb/printcmd.c
gdb/procfs.c
gdb/regcache.c
gdb/reggroups.c
gdb/remote-e7000.c
gdb/remote-mips.c
gdb/remote-rdp.c
gdb/remote-sds.c
gdb/remote-sim.c
gdb/remote-st.c
gdb/remote-utils.c
gdb/remote.c
gdb/rs6000-nat.c
gdb/rs6000-tdep.c
gdb/s390-nat.c
gdb/s390-tdep.c
gdb/sentinel-frame.c
gdb/serial.c
gdb/sh-tdep.c
gdb/sh3-rom.c
gdb/sh64-tdep.c
gdb/shnbsd-nat.c
gdb/solib-aix5.c
gdb/solib-svr4.c
gdb/solib.c
gdb/source.c
gdb/sparc-nat.c
gdb/stabsread.c
gdb/stack.c
gdb/symfile.c
gdb/symtab.c
gdb/symtab.h
gdb/target.c
gdb/tracepoint.c
gdb/tui/tui-file.c
gdb/tui/tui-interp.c
gdb/ui-file.c
gdb/ui-out.c
gdb/utils.c
gdb/valops.c
gdb/valprint.c
gdb/vax-nat.c
gdb/vaxbsd-nat.c
gdb/win32-nat.c
gdb/windows-nat.c
gdb/xcoffread.c
gdb/xstormy16-tdep.c

index ad02de1e4899167f8ce4cc9398f69fb59801faf4..2f8c1db1ca1d31247462ef5229fd4a7d59b0f603 100644 (file)
@@ -1,5 +1,44 @@
-2005-02-10  Andrew Cagney  <cagney@gnu.org>
+2005-02-11  Andrew Cagney  <cagney@gnu.org>
+
+       Mark up error_no_arg, query, perror_with_name, complaint, and
+       internal_error.
+       * breakpoint.c, cp-abi.c, cp-namespace.c, cp-support.c: Update.
+       * cris-tdep.c, dbxread.c, dictionary.c, dsrec.c: Update.
+       * dummy-frame.c, dve3900-rom.c, dwarf2-frame.c, dwarf2expr.c: Update.
+       * dwarf2read.c, dwarfread.c, elfread.c, event-loop.c: Update.
+       * exceptions.c, exec.c, f-lang.c, findvar.c, fork-child.c: Update.
+       * frame-unwind.c, frame.c, frv-linux-tdep.c, frv-tdep.c: Update.
+       * gdb_assert.h, gdbarch.c, gdbtypes.c, gnu-nat.c: Update.
+       * go32-nat.c, hppa-tdep.c, hppabsd-nat.c, hpread.c: Update.
+       * i386-linux-nat.c, i386-nat.c, i386-tdep.c, i386bsd-nat.c: Update.
+       * i386fbsd-nat.c, inf-ptrace.c, inf-ttrace.c, infcall.c: Update.
+       * infcmd.c, inflow.c, infptrace.c, infrun.c, inftarg.c: Update.
+       * interps.c, language.c, linespec.c, linux-nat.c: Update.
+       * m32r-linux-nat.c, m68k-tdep.c, m68kbsd-nat.c: Update.
+       * m68klinux-nat.c, m88kbsd-nat.c, macroexp.c, macroscope.c: Update.
+       * macrotab.c, maint.c, mdebugread.c, memattr.c: Update.
+       * mips-linux-tdep.c, mips-tdep.c, mips64obsd-nat.c: Update.
+       * mipsnbsd-nat.c, mn10300-tdep.c, monitor.c, nto-procfs.c: Update.
+       * objc-lang.c, objfiles.c, objfiles.h, ocd.c, osabi.c: Update.
+       * parse.c, ppc-bdm.c, ppc-linux-nat.c, ppc-sysv-tdep.c: Update.
+       * ppcnbsd-nat.c, ppcobsd-nat.c, printcmd.c, procfs.c: Update.
+       * regcache.c, reggroups.c, remote-e7000.c, remote-mips.c: Update.
+       * remote-rdp.c, remote-sds.c, remote-sim.c, remote-st.c: Update.
+       * remote-utils.c, remote.c, rs6000-nat.c, rs6000-tdep.c: Update.
+       * s390-nat.c, s390-tdep.c, sentinel-frame.c, serial.c: Update.
+       * sh-tdep.c, sh3-rom.c, sh64-tdep.c, shnbsd-nat.c: Update.
+       * solib-aix5.c, solib-svr4.c, solib.c, source.c: Update.
+       * sparc-nat.c, stabsread.c, stack.c, symfile.c, symtab.c: Update.
+       * symtab.h, target.c, tracepoint.c, ui-file.c, ui-out.c: Update.
+       * utils.c, valops.c, valprint.c, vax-nat.c, vaxbsd-nat.c: Update.
+       * win32-nat.c, xcoffread.c, xstormy16-tdep.c: Update.
+       * cli/cli-cmds.c, cli/cli-logging.c, cli/cli-script.c: Update.
+       * cli/cli-setshow.c, mi/mi-cmd-break.c, mi/mi-cmds.c: Update.
+       * mi/mi-console.c, mi/mi-getopt.c, mi/mi-out.c: Update.
+       * tui/tui-file.c, tui/tui-interp.c: Update.
 
+2005-02-10  Andrew Cagney  <cagney@gnu.org>
+       
        Mark up all error and warning messages.
        * ada-lang.c, amd64-tdep.c, arch-utils.c, breakpoint.c: Update.
        * bsd-kvm.c, bsd-uthread.c, coff-solib.h, coffread.c: Update.
index f9c1d1e5d6e629236fbc28a614d04c890b24aaa9..7e848534b21b937db866f0685d032498c42d3ee1 100644 (file)
@@ -525,7 +525,7 @@ condition_command (char *arg, int from_tty)
   int bnum;
 
   if (arg == 0)
-    error_no_arg ("breakpoint number");
+    error_no_arg (_("breakpoint number"));
 
   p = arg;
   bnum = get_number (&p);
@@ -727,7 +727,7 @@ insert_catchpoint (struct ui_out *uo, void *args)
       target_insert_exec_catchpoint (PIDGET (inferior_ptid));
       break;
     default:
-      internal_error (__FILE__, __LINE__, "unknown breakpoint type");
+      internal_error (__FILE__, __LINE__, _("unknown breakpoint type"));
       break;
     }
 }
@@ -995,7 +995,7 @@ insert_bp_location (struct bp_location *bpt,
        }
       else
        {
-         printf_filtered ("Hardware watchpoint %d deleted ", bpt->owner->number);
+         printf_filtered (_("Hardware watchpoint %d deleted "), bpt->owner->number);
          printf_filtered ("because the program has left the block \n");
          printf_filtered ("in which its expression is valid.\n");
          if (bpt->owner->related_breakpoint)
@@ -2353,7 +2353,7 @@ print_bp_stop_message (bpstat bs)
 
     default:
       internal_error (__FILE__, __LINE__,
-                     "print_bp_stop_message: unrecognized enum value");
+                     _("print_bp_stop_message: unrecognized enum value"));
       break;
     }
 }
@@ -3313,7 +3313,7 @@ print_one_breakpoint (struct breakpoint *b,
   if (((int) b->type > (sizeof (bptypes) / sizeof (bptypes[0])))
       || ((int) b->type != bptypes[(int) b->type].type))
     internal_error (__FILE__, __LINE__,
-                   "bptypes table does not describe type #%d.",
+                   _("bptypes table does not describe type #%d."),
                    (int) b->type);
   ui_out_field_string (uiout, "type", bptypes[(int) b->type].description);
 
@@ -3343,7 +3343,7 @@ print_one_breakpoint (struct breakpoint *b,
       {
       case bp_none:
        internal_error (__FILE__, __LINE__,
-                       "print_one_breakpoint: bp_none encountered\n");
+                       _("print_one_breakpoint: bp_none encountered\n"));
        break;
 
       case bp_watchpoint:
@@ -3873,8 +3873,8 @@ check_duplicates (struct breakpoint *bpt)
       /* Permanent breakpoint should always be inserted.  */
       if (! perm_bp->inserted)
        internal_error (__FILE__, __LINE__,
-                       "allegedly permanent breakpoint is not "
-                       "actually inserted");
+                       _("allegedly permanent breakpoint is not "
+                       "actually inserted"));
 
       ALL_BP_LOCATIONS (b)
        if (b != perm_bp)
@@ -3889,8 +3889,8 @@ check_duplicates (struct breakpoint *bpt)
              {
                if (b->inserted)
                  internal_error (__FILE__, __LINE__,
-                                 "another breakpoint was inserted on top of "
-                                 "a permanent breakpoint");
+                                 _("another breakpoint was inserted on top of "
+                                 "a permanent breakpoint"));
 
                b->duplicate = 1;
              }
@@ -4005,7 +4005,7 @@ allocate_bp_location (struct breakpoint *bpt, enum bptype bp_type)
       loc->loc_type = bp_loc_other;
       break;
     default:
-      internal_error (__FILE__, __LINE__, "unknown breakpoint type");
+      internal_error (__FILE__, __LINE__, _("unknown breakpoint type"));
     }
 
   /* Add this breakpoint to the end of the chain.  */
@@ -6793,8 +6793,8 @@ delete_breakpoint (struct breakpoint *bpt)
             always be the only one inserted.  */
          if (b->enable_state == bp_permanent)
            internal_error (__FILE__, __LINE__,
-                           "another breakpoint was inserted on top of "
-                           "a permanent breakpoint");
+                           _("another breakpoint was inserted on top of "
+                           "a permanent breakpoint"));
 
          if (b->type == bp_hardware_breakpoint)
            val = target_insert_hw_breakpoint (b->loc->address, b->loc->shadow_contents);
@@ -6917,7 +6917,7 @@ delete_command (char *arg, int from_tty)
 
       /* Ask user only if there are some breakpoints to delete.  */
       if (!from_tty
-         || (breaks_to_delete && query ("Delete all breakpoints? ")))
+         || (breaks_to_delete && query (_("Delete all breakpoints? "))))
        {
          ALL_BREAKPOINTS_SAFE (b, temp)
          {
@@ -7279,7 +7279,7 @@ ignore_command (char *args, int from_tty)
   int num;
 
   if (p == 0)
-    error_no_arg ("a breakpoint number");
+    error_no_arg (_("a breakpoint number"));
 
   num = get_number (&p);
   if (num == 0)
@@ -7307,7 +7307,7 @@ map_breakpoint_numbers (char *args, void (*function) (struct breakpoint *))
   int match;
 
   if (p == 0)
-    error_no_arg ("one or more breakpoint numbers");
+    error_no_arg (_("one or more breakpoint numbers"));
 
   while (*p)
     {
index 23ea710ed7fcd20cc4cc88e4a9c7d5b4050e084a..ed3cd8b0560125174cffabca54c89cf65b1da835 100644 (file)
@@ -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 c42892dc6e1ee2de908f74dd071b0e06b202cc7e..8df6b85d4bfad15dd809fd3494ef1882faf455c0 100644 (file)
@@ -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 51d55f1798e422c649762b3da0b454b9eaab54ed..6d3122bb9e0a5f47796a35c8ce4c5b836bd08461 100644 (file)
@@ -476,7 +476,7 @@ arg_cleanup (void *ignore)
   struct user_args *oargs = user_args;
   if (!user_args)
     internal_error (__FILE__, __LINE__,
-                   "arg_cleanup called with no user args.\n");
+                   _("arg_cleanup called with no user args.\n"));
 
   user_args = user_args->next;
   xfree (oargs);
@@ -1046,7 +1046,7 @@ validate_comname (char *comname)
   char *p;
 
   if (comname == 0)
-    error_no_arg ("name of command to define");
+    error_no_arg (_("name of command to define"));
 
   p = comname;
   while (*p)
@@ -1097,9 +1097,9 @@ define_command (char *comname, int from_tty)
     {
       int q;
       if (c->class == class_user || c->class == class_alias)
-       q = query ("Redefine command \"%s\"? ", c->name);
+       q = query (_("Redefine command \"%s\"? "), c->name);
       else
-       q = query ("Really redefine built-in command \"%s\"? ", c->name);
+       q = query (_("Really redefine built-in command \"%s\"? "), c->name);
       if (!q)
        error (_("Command \"%s\" not redefined."), c->name);
     }
@@ -1170,7 +1170,7 @@ define_command (char *comname, int from_tty)
           break;
         default:
           /* Should never come here as hookc would be 0. */
-         internal_error (__FILE__, __LINE__, "bad switch");
+         internal_error (__FILE__, __LINE__, _("bad switch"));
         }
     }
 }
@@ -1260,9 +1260,7 @@ script_from_file (FILE *stream, char *file)
   int needed_length;
 
   if (stream == NULL)
-    {
-      internal_error (__FILE__, __LINE__, "called with NULL file pointer!");
-    }
+    internal_error (__FILE__, __LINE__, _("called with NULL file pointer!"));
 
   old_cleanups = make_cleanup (do_fclose_cleanup, stream);
 
@@ -1291,7 +1289,7 @@ script_from_file (FILE *stream, char *file)
        throw_error (e.error, "%s:%d: Error in sourced command file:\n%s",
                     source_file_name, source_line_number, e.message);
       default:
-       internal_error (__FILE__, __LINE__, "bad reason");
+       internal_error (__FILE__, __LINE__, _("bad reason"));
       }
   }
 
index d87791ee0f99ab1ea7d09a76ec8ffb0985eec837..b0c0acdea4dfa6be35241faa4e94739ffa84bbfe 100644 (file)
@@ -156,7 +156,7 @@ do_setshow_command (char *arg, int from_tty, struct cmd_list_element *c)
          break;
        case var_filename:
          if (arg == NULL)
-           error_no_arg ("filename to set it to.");
+           error_no_arg (_("filename to set it to."));
          if (*(char **) c->var != NULL)
            xfree (*(char **) c->var);
          *(char **) c->var = tilde_expand (arg);
@@ -169,7 +169,7 @@ do_setshow_command (char *arg, int from_tty, struct cmd_list_element *c)
          break;
        case var_uinteger:
          if (arg == NULL)
-           error_no_arg ("integer to set it to.");
+           error_no_arg (_("integer to set it to."));
          *(unsigned int *) c->var = parse_and_eval_long (arg);
          if (*(unsigned int *) c->var == 0)
            *(unsigned int *) c->var = UINT_MAX;
@@ -178,7 +178,7 @@ do_setshow_command (char *arg, int from_tty, struct cmd_list_element *c)
          {
            unsigned int val;
            if (arg == NULL)
-             error_no_arg ("integer to set it to.");
+             error_no_arg (_("integer to set it to."));
            val = parse_and_eval_long (arg);
            if (val == 0)
              *(int *) c->var = INT_MAX;
@@ -190,7 +190,7 @@ do_setshow_command (char *arg, int from_tty, struct cmd_list_element *c)
          }
        case var_zinteger:
          if (arg == NULL)
-           error_no_arg ("integer to set it to.");
+           error_no_arg (_("integer to set it to."));
          *(int *) c->var = parse_and_eval_long (arg);
          break;
        case var_enum:
@@ -302,7 +302,7 @@ do_setshow_command (char *arg, int from_tty, struct cmd_list_element *c)
              break;
            default:
              internal_error (__FILE__, __LINE__,
-                             "do_setshow_command: invalid var_auto_boolean");
+                             _("do_setshow_command: invalid var_auto_boolean"));
              break;
            }
          break;
index b75136348dd4a31348435fb5bf8f5648e652233b..2ab4f9dbf48b03f4bc54fb39c150dd83483a69fd 100644 (file)
@@ -117,7 +117,7 @@ register_cp_abi (struct cp_abi_ops *abi)
 {
   if (num_cp_abis == CP_ABI_MAX)
     internal_error (__FILE__, __LINE__,
-                   "Too many C++ ABIs, please increase CP_ABI_MAX in cp-abi.c");
+                   _("Too many C++ ABIs, please increase CP_ABI_MAX in cp-abi.c"));
 
   cp_abis[num_cp_abis++] = abi;
 
@@ -134,7 +134,7 @@ set_cp_abi_as_auto_default (const char *short_name)
 
   if (abi == NULL)
     internal_error (__FILE__, __LINE__,
-                   "Cannot find C++ ABI \"%s\" to set it as auto default.",
+                   _("Cannot find C++ ABI \"%s\" to set it as auto default."),
                    short_name);
 
   if (auto_cp_abi.longname != NULL)
index 910289ff3ce579a76242c862c1196745df5474ec..3b4a5ff657691f129f0f38620158145f7a3efcdf 100644 (file)
@@ -552,7 +552,7 @@ cp_lookup_nested_type (struct type *parent_type,
       }
     default:
       internal_error (__FILE__, __LINE__,
-                     "cp_lookup_nested_type called on a non-aggregate type.");
+                     _("cp_lookup_nested_type called on a non-aggregate type."));
     }
 }
 
index ad5e169fe7eae3f7ed3c28634623165a89fdea1e..41c648010be87748e5fbbc92b9e7341ab5265033 100644 (file)
@@ -456,7 +456,7 @@ remove_params (const char *demangled_name)
     }
   if (depth != 0)
     internal_error (__FILE__, __LINE__,
-                   "bad demangled name %s\n", demangled_name);
+                   _("bad demangled name %s\n"), demangled_name);
   while (argp[-1] == ' ' && argp > demangled_name)
     argp --;
 
index ef315a685b8ce6758d16582fb52143925b2adf14..b5335e3f7341ddc9526a7bf4c511575c8d3a843f 100644 (file)
@@ -934,7 +934,7 @@ cris_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
       else if (len > (2 * 4))
         {
          /* FIXME */
-         internal_error (__FILE__, __LINE__, "We don't do this");
+         internal_error (__FILE__, __LINE__, _("We don't do this"));
         }
       else
         {
@@ -3962,7 +3962,7 @@ set_cris_version (char *ignore_args, int from_tty,
   gdbarch_info_init (&info);
   if (!gdbarch_update_p (info))
     internal_error (__FILE__, __LINE__, 
-                   "cris_gdbarch_update: failed to update architecture.");
+                   _("cris_gdbarch_update: failed to update architecture."));
 }
 
 static void
@@ -3975,7 +3975,7 @@ set_cris_dwarf2_cfi (char *ignore_args, int from_tty,
   gdbarch_info_init (&info);
   if (!gdbarch_update_p (info))
     internal_error (__FILE__, __LINE__, 
-                   "cris_gdbarch_update: failed to update architecture.");
+                   _("cris_gdbarch_update: failed to update architecture."));
 }
 
 static struct gdbarch *
@@ -4031,11 +4031,11 @@ cris_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
       break;
 
     case BFD_ENDIAN_BIG:
-      internal_error (__FILE__, __LINE__, "cris_gdbarch_init: big endian byte order in info");
+      internal_error (__FILE__, __LINE__, _("cris_gdbarch_init: big endian byte order in info"));
       break;
     
     default:
-      internal_error (__FILE__, __LINE__, "cris_gdbarch_init: unknown byte order in info");
+      internal_error (__FILE__, __LINE__, _("cris_gdbarch_init: unknown byte order in info"));
     }
 
   set_gdbarch_return_value (gdbarch, cris_return_value);
@@ -4068,7 +4068,7 @@ cris_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
     case 9:
       /* Old versions; not supported.  */
       internal_error (__FILE__, __LINE__, 
-                     "cris_gdbarch_init: unsupported CRIS version");
+                     _("cris_gdbarch_init: unsupported CRIS version"));
       break;
 
     case 10:
@@ -4110,7 +4110,7 @@ cris_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
 
     default:
       internal_error (__FILE__, __LINE__, 
-                     "cris_gdbarch_init: unknown CRIS version");
+                     _("cris_gdbarch_init: unknown CRIS version"));
     }
 
   /* Dummy frame functions (shared between CRISv10 and CRISv32 since they
index f4dd4073fe75a49665fb467363eee38885b09566..5b2c80a02c5343be5178adc0e3285a07928ad3cd 100644 (file)
@@ -163,21 +163,21 @@ static int has_line_numbers;
 static void
 unknown_symtype_complaint (const char *arg1)
 {
-  complaint (&symfile_complaints, "unknown symbol type %s", arg1);
+  complaint (&symfile_complaints, _("unknown symbol type %s"), arg1);
 }
 
 static void
 lbrac_mismatch_complaint (int arg1)
 {
   complaint (&symfile_complaints,
-            "N_LBRAC/N_RBRAC symbol mismatch at symtab pos %d", arg1);
+            _("N_LBRAC/N_RBRAC symbol mismatch at symtab pos %d"), arg1);
 }
 
 static void
 repeated_header_complaint (const char *arg1, int arg2)
 {
   complaint (&symfile_complaints,
-            "\"repeated\" header file %s not previously seen, at symtab pos %d",
+            _("\"repeated\" header file %s not previously seen, at symtab pos %d"),
             arg1, arg2);
 }
 
@@ -966,7 +966,7 @@ set_namestring (struct objfile *objfile, struct internal_nlist nlist)
   if (((unsigned) nlist.n_strx + file_string_table_offset) >=
       DBX_STRINGTAB_SIZE (objfile))
     {
-      complaint (&symfile_complaints, "bad string table offset in symbol %d",
+      complaint (&symfile_complaints, _("bad string table offset in symbol %d"),
                 symnum);
       namestring = "<bad string table offset>";
     } 
@@ -1168,7 +1168,7 @@ static void
 function_outside_compilation_unit_complaint (const char *arg1)
 {
   complaint (&symfile_complaints,
-            "function `%s' appears to be defined outside of all compilation units",
+            _("function `%s' appears to be defined outside of all compilation units"),
             arg1);
 }
 
@@ -1564,7 +1564,7 @@ read_dbx_symtab (struct objfile *objfile)
              /* FIXME: we should not get here without a PST to work on.
                 Attempt to recover.  */
              complaint (&symfile_complaints,
-                        "N_BINCL %s not in entries for any file, at symtab pos %d",
+                        _("N_BINCL %s not in entries for any file, at symtab pos %d"),
                         namestring, symnum);
              continue;
            }
@@ -1982,7 +1982,7 @@ read_dbx_symtab (struct objfile *objfile)
               time searching to the end of every string looking for
               a backslash.  */
 
-           complaint (&symfile_complaints, "unknown symbol descriptor `%c'",
+           complaint (&symfile_complaints, _("unknown symbol descriptor `%c'"),
                       p[1]);
 
            /* Ignore it; perhaps it is an extension that we don't
@@ -2811,9 +2811,9 @@ process_one_symbol (int type, int desc, CORE_ADDR valu, char *name,
                 symbols within an LBRAC/RBRAC block; this complaint
                 might also help sort out problems in which
                 VARIABLES_INSIDE_BLOCK is incorrectly defined.  */
-             complaint (&symfile_complaints, "\
+             complaint (&symfile_complaints, _("\
 misplaced N_LBRAC entry; discarding local symbols which have \
-no enclosing block");
+no enclosing block"));
            }
          local_symbols = new->locals;
        }
@@ -2835,7 +2835,7 @@ no enclosing block");
              if (new->start_addr > valu)
                {
                  complaint (&symfile_complaints,
-                            "block start larger than block end");
+                            _("block start larger than block end"));
                  new->start_addr = valu;
                }
              /* Make a block for the local symbols within.  */
@@ -3025,7 +3025,7 @@ no enclosing block");
            goto case_N_ROSYM;
          default:
            internal_error (__FILE__, __LINE__,
-                           "failed internal consistency check");
+                           _("failed internal consistency check"));
          }
       }
 
@@ -3130,7 +3130,7 @@ no enclosing block");
              if (context_stack_depth > 1)
                {
                  complaint (&symfile_complaints,
-                            "unmatched N_LBRAC before symtab pos %d", symnum);
+                            _("unmatched N_LBRAC before symtab pos %d"), symnum);
                  break;
                }
 
index 09851ef69f182be75b1c39a7d10276509f39c849..a45ef3c00990989b76c2b82eb8413dabe01c6ebf 100644 (file)
@@ -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 367b1a7baf629cd211e70cb8c732221d53fdeedb..8addfcc8e944261562889169417bd1c8a5fc130c 100644 (file)
@@ -254,7 +254,7 @@ make_srec (char *srec, CORE_ADDR targ_addr, bfd *abfd, asection *sect,
     addr_size = 4;
   else
     internal_error (__FILE__, __LINE__,
-                   "make_srec:  Bad address (0x%s), or bad flags (0x%x).",
+                   _("make_srec:  Bad address (0x%s), or bad flags (0x%x)."),
                    paddr (targ_addr), flags);
 
   /* Now that we know the address size, we can figure out how much
index 95d0adf1466f632a8bbf2621629ea7cda529793a..10596b9bc624647b61d046d219fd02a0fb210c74 100644 (file)
@@ -246,7 +246,7 @@ maintenance_print_dummy_frames (char *args, int from_tty)
     {
       struct ui_file *file = gdb_fopen (args, "w");
       if (file == NULL)
-       perror_with_name ("maintenance print dummy-frames");
+       perror_with_name (_("maintenance print dummy-frames"));
       fprint_dummy_frames (file);    
       ui_file_delete (file);
     }
index 91590f55125f3afa049c3d070872a9d1d2337ab4..f1b38f1fc95591a43af2a2caa9d8f98719270364 100644 (file)
@@ -461,7 +461,7 @@ fetch_bitmapped_register (int regno, struct bit_field *bf)
 
   if (regno >= sizeof (r3900_regnames) / sizeof (r3900_regnames[0]))
     internal_error (__FILE__, __LINE__,
-                    "fetch_bitmapped_register: regno out of bounds");
+                    _("fetch_bitmapped_register: regno out of bounds"));
   else
     regname = r3900_regnames[regno];
 
@@ -508,7 +508,7 @@ store_bitmapped_register (int regno, struct bit_field *bf)
 
   if (regno >= sizeof (r3900_regnames) / sizeof (r3900_regnames[0]))
     internal_error (__FILE__, __LINE__,
-                    "fetch_bitmapped_register: regno out of bounds");
+                    _("fetch_bitmapped_register: regno out of bounds"));
   else
     regname = r3900_regnames[regno];
 
index fc0ac8b709eb996f759a7efcb096d668b47824af..cedeaa1f547f42cb3e90106299a763b3321c8714 100644 (file)
@@ -227,14 +227,14 @@ static void
 no_get_frame_base (void *baton, unsigned char **start, size_t *length)
 {
   internal_error (__FILE__, __LINE__,
-                 "Support for DW_OP_fbreg is unimplemented");
+                 _("Support for DW_OP_fbreg is unimplemented"));
 }
 
 static CORE_ADDR
 no_get_tls_address (void *baton, CORE_ADDR offset)
 {
   internal_error (__FILE__, __LINE__,
-                 "Support for DW_OP_GNU_push_tls_address is unimplemented");
+                 _("Support for DW_OP_GNU_push_tls_address is unimplemented"));
 }
 
 static CORE_ADDR
@@ -374,8 +374,8 @@ execute_cfa_program (unsigned char *insn_ptr, unsigned char *insn_end,
 
                if (old_rs == NULL)
                  {
-                   complaint (&symfile_complaints, "\
-bad CFI data; mismatched DW_CFA_restore_state at 0x%s", paddr (fs->pc));
+                   complaint (&symfile_complaints, _("\
+bad CFI data; mismatched DW_CFA_restore_state at 0x%s"), paddr (fs->pc));
                  }
                else
                  {
@@ -451,7 +451,7 @@ bad CFI data; mismatched DW_CFA_restore_state at 0x%s", paddr (fs->pc));
              break;
 
            default:
-             internal_error (__FILE__, __LINE__, "Unknown CFI encountered.");
+             internal_error (__FILE__, __LINE__, _("Unknown CFI encountered."));
            }
        }
     }
@@ -663,7 +663,7 @@ dwarf2_frame_cache (struct frame_info *next_frame, void **this_cache)
       break;
 
     default:
-      internal_error (__FILE__, __LINE__, "Unknown CFA rule.");
+      internal_error (__FILE__, __LINE__, _("Unknown CFA rule."));
     }
 
   /* Initialize the register state.  */
@@ -707,8 +707,8 @@ dwarf2_frame_cache (struct frame_info *next_frame, void **this_cache)
        if (fs->regs.reg[column].how == DWARF2_FRAME_REG_UNSPECIFIED)
          {
            if (cache->reg[regnum].how == DWARF2_FRAME_REG_UNSPECIFIED)
-             complaint (&symfile_complaints, "\
-incomplete CFI data; unspecified registers (e.g., %s) at 0x%s",
+             complaint (&symfile_complaints, _("\
+incomplete CFI data; unspecified registers (e.g., %s) at 0x%s"),
                         gdbarch_register_name (gdbarch, regnum),
                         paddr_nz (fs->pc));
          }
@@ -865,7 +865,7 @@ dwarf2_frame_prev_register (struct frame_info *next_frame, void **this_cache,
       break;
 
     default:
-      internal_error (__FILE__, __LINE__, "Unknown register rule.");
+      internal_error (__FILE__, __LINE__, _("Unknown register rule."));
     }
 }
 
@@ -1090,7 +1090,7 @@ encoding_for_size (unsigned int size)
     case 8:
       return DW_EH_PE_udata8;
     default:
-      internal_error (__FILE__, __LINE__, "Unsupported address size");
+      internal_error (__FILE__, __LINE__, _("Unsupported address size"));
     }
 }
 
@@ -1111,7 +1111,7 @@ size_of_encoded_value (unsigned char encoding)
     case DW_EH_PE_udata8:
       return 8;
     default:
-      internal_error (__FILE__, __LINE__, "Invalid or unsupported encoding");
+      internal_error (__FILE__, __LINE__, _("Invalid or unsupported encoding"));
     }
 }
 
@@ -1127,7 +1127,7 @@ read_encoded_value (struct comp_unit *unit, unsigned char encoding,
      FDE's.  */
   if (encoding & DW_EH_PE_indirect)
     internal_error (__FILE__, __LINE__, 
-                   "Unsupported encoding: DW_EH_PE_indirect");
+                   _("Unsupported encoding: DW_EH_PE_indirect"));
 
   *bytes_read_ptr = 0;
 
@@ -1164,7 +1164,7 @@ read_encoded_value (struct comp_unit *unit, unsigned char encoding,
        }
       break;
     default:
-      internal_error (__FILE__, __LINE__, "Invalid or unsupported encoding");
+      internal_error (__FILE__, __LINE__, _("Invalid or unsupported encoding"));
     }
 
   if ((encoding & 0x07) == 0x00)
@@ -1205,7 +1205,7 @@ read_encoded_value (struct comp_unit *unit, unsigned char encoding,
       *bytes_read_ptr += 8;
       return (base + bfd_get_signed_64 (unit->abfd, (bfd_byte *) buf));
     default:
-      internal_error (__FILE__, __LINE__, "Invalid or unsupported encoding");
+      internal_error (__FILE__, __LINE__, _("Invalid or unsupported encoding"));
     }
 }
 \f
@@ -1587,21 +1587,21 @@ decode_frame_entry (struct comp_unit *unit, char *start, int eh_frame_p)
 
     case ALIGN4:
       complaint (&symfile_complaints,
-                "Corrupt data in %s:%s; align 4 workaround apparently succeeded",
+                _("Corrupt data in %s:%s; align 4 workaround apparently succeeded"),
                 unit->dwarf_frame_section->owner->filename,
                 unit->dwarf_frame_section->name);
       break;
 
     case ALIGN8:
       complaint (&symfile_complaints,
-                "Corrupt data in %s:%s; align 8 workaround apparently succeeded",
+                _("Corrupt data in %s:%s; align 8 workaround apparently succeeded"),
                 unit->dwarf_frame_section->owner->filename,
                 unit->dwarf_frame_section->name);
       break;
 
     default:
       complaint (&symfile_complaints,
-                "Corrupt data in %s:%s",
+                _("Corrupt data in %s:%s"),
                 unit->dwarf_frame_section->owner->filename,
                 unit->dwarf_frame_section->name);
       break;
index 7b9374a7feb93d2542873b6705f255838ea0cef7..0d318e4a7e9c3f58cba5336165a8ac8f2681e999 100644 (file)
@@ -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"));
     }
 }
 \f
@@ -650,7 +650,7 @@ execute_stack_op (struct dwarf_expr_context *ctx, unsigned char *op_ptr,
                break;
              default:
                internal_error (__FILE__, __LINE__,
-                               "Can't be reached.");
+                               _("Can't be reached."));
              }
            result = value_as_long (value_binop (val1, val2, binop));
          }
index 564d3ac7cd33838136b48f1c486ca79539f7c07c..85c5500ad09f562caad556b2b98832fa94b4d6a2 100644 (file)
@@ -666,13 +666,13 @@ static void
 dwarf2_statement_list_fits_in_line_number_section_complaint (void)
 {
   complaint (&symfile_complaints,
-            "statement list doesn't fit in .debug_line section");
+            _("statement list doesn't fit in .debug_line section"));
 }
 
 static void
 dwarf2_complex_location_expr_complaint (void)
 {
-  complaint (&symfile_complaints, "location expression too complex");
+  complaint (&symfile_complaints, _("location expression too complex"));
 }
 
 static void
@@ -680,7 +680,7 @@ dwarf2_const_value_length_mismatch_complaint (const char *arg1, int arg2,
                                              int arg3)
 {
   complaint (&symfile_complaints,
-            "const value length mismatch for '%s', got %d, expected %d", arg1,
+            _("const value length mismatch for '%s', got %d, expected %d"), arg1,
             arg2, arg3);
 }
 
@@ -688,14 +688,14 @@ static void
 dwarf2_macros_too_long_complaint (void)
 {
   complaint (&symfile_complaints,
-            "macro info runs off end of `.debug_macinfo' section");
+            _("macro info runs off end of `.debug_macinfo' section"));
 }
 
 static void
 dwarf2_macro_malformed_definition_complaint (const char *arg1)
 {
   complaint (&symfile_complaints,
-            "macro debug info contains a malformed macro definition:\n`%s'",
+            _("macro debug info contains a malformed macro definition:\n`%s'"),
             arg1);
 }
 
@@ -703,7 +703,7 @@ static void
 dwarf2_invalid_attrib_class_complaint (const char *arg1, const char *arg2)
 {
   complaint (&symfile_complaints,
-            "invalid attribute class or form for '%s' in '%s'", arg1, arg2);
+            _("invalid attribute class or form for '%s' in '%s'"), arg1, arg2);
 }
 
 /* local function prototypes */
@@ -1282,7 +1282,7 @@ read_comp_unit_head (struct comp_unit_head *cu_header,
   signed_addr = bfd_get_sign_extend_vma (abfd);
   if (signed_addr < 0)
     internal_error (__FILE__, __LINE__,
-                   "read_comp_unit_head: dwarf from non elf file");
+                   _("read_comp_unit_head: dwarf from non elf file"));
   cu_header->signed_addr_p = signed_addr;
   return info_ptr;
 }
@@ -1819,7 +1819,7 @@ partial_die_parent_scope (struct partial_die_info *pdi,
         function-local names?  For partial symbols, we should probably be
         ignoring them.  */
       complaint (&symfile_complaints,
-                "unhandled containing DIE tag %d for DIE at %d",
+                _("unhandled containing DIE tag %d for DIE at %d"),
                 parent->tag, pdi->offset);
       parent->scope = grandparent_scope;
     }
@@ -2123,7 +2123,7 @@ add_partial_enumeration (struct partial_die_info *enum_pdi,
   while (pdi)
     {
       if (pdi->tag != DW_TAG_enumerator || pdi->name == NULL)
-       complaint (&symfile_complaints, "malformed enumerator DIE ignored");
+       complaint (&symfile_complaints, _("malformed enumerator DIE ignored"));
       else
        add_partial_symbol (pdi, cu);
       pdi = pdi->die_sibling;
@@ -2200,7 +2200,7 @@ skip_one_die (char *info_ptr, struct abbrev_info *abbrev,
          read_attribute (&attr, &abbrev->attrs[i],
                          abfd, info_ptr, cu);
          if (attr.form == DW_FORM_ref_addr)
-           complaint (&symfile_complaints, "ignoring absolute DW_AT_sibling");
+           complaint (&symfile_complaints, _("ignoring absolute DW_AT_sibling"));
          else
            return dwarf2_per_objfile->info_buffer
              + dwarf2_get_ref_die_offset (&attr, cu);
@@ -3064,7 +3064,7 @@ dwarf2_get_pc_bounds (struct die_info *die, CORE_ADDR *lowpc,
          if (offset >= dwarf2_per_objfile->ranges_size)
            {
              complaint (&symfile_complaints,
-                        "Offset %d out of bounds for DW_AT_ranges attribute",
+                        _("Offset %d out of bounds for DW_AT_ranges attribute"),
                         offset);
              return 0;
            }
@@ -3116,7 +3116,7 @@ dwarf2_get_pc_bounds (struct die_info *die, CORE_ADDR *lowpc,
                  /* We have no valid base address for the ranges
                     data.  */
                  complaint (&symfile_complaints,
-                            "Invalid .debug_ranges data (no base address)");
+                            _("Invalid .debug_ranges data (no base address)"));
                  return 0;
                }
 
@@ -3472,7 +3472,7 @@ dwarf2_attach_fields_to_type (struct field_info *fip, struct type *type,
        default:
          /* Unknown accessibility.  Complain and treat it as public.  */
          {
-           complaint (&symfile_complaints, "unsupported accessibility %d",
+           complaint (&symfile_complaints, _("unsupported accessibility %d"),
                       fip->fields->accessibility);
          }
          break;
@@ -3581,7 +3581,7 @@ dwarf2_add_member_fn (struct field_info *fip, struct die_info *die,
        fnp->voffset = VOFFSET_STATIC;
     }
   else
-    complaint (&symfile_complaints, "member function type missing for '%s'",
+    complaint (&symfile_complaints, _("member function type missing for '%s'"),
               physname);
 
   /* Get fcontext from DW_AT_containing_type if present.  */
@@ -3844,7 +3844,7 @@ read_structure_type (struct die_info *die, struct dwarf2_cu *cu)
                  /* Complain if virtual function table field not found.  */
                  if (i < TYPE_N_BASECLASSES (t))
                    complaint (&symfile_complaints,
-                              "virtual function table pointer not found when defining class '%s'",
+                              _("virtual function table pointer not found when defining class '%s'"),
                               TYPE_TAG_NAME (type) ? TYPE_TAG_NAME (type) :
                               "");
                }
@@ -4398,7 +4398,7 @@ read_tag_pointer_type (struct die_info *die, struct dwarf2_cu *cu)
        }
       else if (TYPE_LENGTH (type) != byte_size)
        {
-         complaint (&symfile_complaints, "invalid pointer size %d", byte_size);
+         complaint (&symfile_complaints, _("invalid pointer size %d"), byte_size);
        }
       else {
        /* Should we also complain about unhandled address classes?  */
@@ -4704,7 +4704,7 @@ read_base_type (struct die_info *die, struct dwarf2_cu *cu)
          type_flags |= TYPE_FLAG_UNSIGNED;
          break;
        default:
-         complaint (&symfile_complaints, "unsupported DW_AT_encoding: '%s'",
+         complaint (&symfile_complaints, _("unsupported DW_AT_encoding: '%s'"),
                     dwarf_type_encoding_name (encoding));
          break;
        }
@@ -4751,7 +4751,7 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu)
   if (base_type == NULL)
     {
       complaint (&symfile_complaints,
-                "DW_AT_type missing from DW_TAG_subrange_type");
+                _("DW_AT_type missing from DW_TAG_subrange_type"));
       return;
     }
 
@@ -5219,7 +5219,7 @@ load_partial_dies (bfd *abfd, char *info_ptr, int building_psymtab,
          && parent_die->has_specification == 0)
        {
          if (part_die->name == NULL)
-           complaint (&symfile_complaints, "malformed enumerator DIE ignored");
+           complaint (&symfile_complaints, _("malformed enumerator DIE ignored"));
          else if (building_psymtab)
            add_psymbol_to_list (part_die->name, strlen (part_die->name),
                                 VAR_DOMAIN, LOC_CONST,
@@ -5399,7 +5399,7 @@ read_partial_die (struct partial_die_info *part_die,
          /* Ignore absolute siblings, they might point outside of
             the current compile unit.  */
          if (attr.form == DW_FORM_ref_addr)
-           complaint (&symfile_complaints, "ignoring absolute DW_AT_sibling");
+           complaint (&symfile_complaints, _("ignoring absolute DW_AT_sibling"));
          else
            part_die->sibling = dwarf2_per_objfile->info_buffer
              + dwarf2_get_ref_die_offset (&attr, cu);
@@ -5442,7 +5442,7 @@ find_partial_die_in_comp_unit (unsigned long offset, struct dwarf2_cu *cu)
 
   if (lookup_die == NULL)
     internal_error (__FILE__, __LINE__,
-                   "could not find partial DIE in cache\n");
+                   _("could not find partial DIE in cache\n"));
 
   return lookup_die;
 }
@@ -5797,7 +5797,7 @@ read_address (bfd *abfd, char *buf, struct dwarf2_cu *cu, int *bytes_read)
          break;
        default:
          internal_error (__FILE__, __LINE__,
-                         "read_address: bad switch, signed [in module %s]",
+                         _("read_address: bad switch, signed [in module %s]"),
                          bfd_get_filename (abfd));
        }
     }
@@ -5816,7 +5816,7 @@ read_address (bfd *abfd, char *buf, struct dwarf2_cu *cu, int *bytes_read)
          break;
        default:
          internal_error (__FILE__, __LINE__,
-                         "read_address: bad switch, unsigned [in module %s]",
+                         _("read_address: bad switch, unsigned [in module %s]"),
                          bfd_get_filename (abfd));
        }
     }
@@ -5932,7 +5932,7 @@ read_offset (bfd *abfd, char *buf, const struct comp_unit_head *cu_header,
       break;
     default:
       internal_error (__FILE__, __LINE__,
-                     "read_offset: bad switch [in module %s]",
+                     _("read_offset: bad switch [in module %s]"),
                      bfd_get_filename (abfd));
     }
 
@@ -6266,7 +6266,7 @@ dwarf_decode_line_header (unsigned int offset, bfd *abfd,
 
   if (dwarf2_per_objfile->line_buffer == NULL)
     {
-      complaint (&symfile_complaints, "missing .debug_line section");
+      complaint (&symfile_complaints, _("missing .debug_line section"));
       return 0;
     }
 
@@ -6348,7 +6348,7 @@ dwarf_decode_line_header (unsigned int offset, bfd *abfd,
   if (line_ptr > (dwarf2_per_objfile->line_buffer
                  + dwarf2_per_objfile->line_size))
     complaint (&symfile_complaints,
-              "line number info header doesn't fit in `.debug_line' section");
+              _("line number info header doesn't fit in `.debug_line' section"));
 
   discard_cleanups (back_to);
   return lh;
@@ -6394,7 +6394,7 @@ check_cu_functions (CORE_ADDR address, struct dwarf2_cu *cu)
     return address;
   if (address != fn->lowpc)
     complaint (&symfile_complaints,
-              "misplaced first line number at 0x%lx for '%s'",
+              _("misplaced first line number at 0x%lx for '%s'"),
               (unsigned long) address, fn->name);
   fn->seen_line = 1;
   return fn->lowpc;
@@ -6526,7 +6526,7 @@ dwarf_decode_lines (struct line_header *lh, char *comp_dir, bfd *abfd,
                  break;
                default:
                  complaint (&symfile_complaints,
-                            "mangled .debug_line section");
+                            _("mangled .debug_line section"));
                  return;
                }
              break;
@@ -6982,7 +6982,7 @@ new_symbol (struct die_info *die, struct type *type, struct dwarf2_cu *cu)
             trash data, but since we must specifically ignore things
             we don't recognize, there is nothing else we should do at
             this point. */
-         complaint (&symfile_complaints, "unsupported tag: '%s'",
+         complaint (&symfile_complaints, _("unsupported tag: '%s'"),
                     dwarf_tag_name (die->tag));
          break;
        }
@@ -7062,7 +7062,7 @@ dwarf2_const_value (struct attribute *attr, struct symbol *sym,
 
     default:
       complaint (&symfile_complaints,
-                "unsupported const value attribute form: '%s'",
+                _("unsupported const value attribute form: '%s'"),
                 dwarf_form_name (attr->form));
       SYMBOL_VALUE (sym) = 0;
       SYMBOL_CLASS (sym) = LOC_CONST;
@@ -7220,7 +7220,7 @@ read_type_die (struct die_info *die, struct dwarf2_cu *cu)
       read_base_type (die, cu);
       break;
     default:
-      complaint (&symfile_complaints, "unexepected tag in read_type_die: '%s'",
+      complaint (&symfile_complaints, _("unexepected tag in read_type_die: '%s'"),
                 dwarf_tag_name (die->tag));
       break;
     }
@@ -8424,7 +8424,7 @@ dwarf2_get_ref_die_offset (struct attribute *attr, struct dwarf2_cu *cu)
       break;
     default:
       complaint (&symfile_complaints,
-                "unsupported die ref attribute form: '%s'",
+                _("unsupported die ref attribute form: '%s'"),
                 dwarf_form_name (attr->form));
     }
   return result;
@@ -8446,7 +8446,7 @@ dwarf2_get_attr_constant_value (struct attribute *attr, int default_value)
     return DW_UNSND (attr);
   else
     {
-      complaint (&symfile_complaints, "Attribute value is not a constant (%s)",
+      complaint (&symfile_complaints, _("Attribute value is not a constant (%s)"),
                  dwarf_form_name (attr->form));
       return default_value;
     }
@@ -8731,7 +8731,7 @@ decode_locdesc (struct dwarf_block *blk, struct dwarf2_cu *cu)
           break;
 
        default:
-         complaint (&symfile_complaints, "unsupported stack op: '%s'",
+         complaint (&symfile_complaints, _("unsupported stack op: '%s'"),
                     dwarf_stack_op_name (op));
          return (stack[stacki]);
        }
@@ -8860,7 +8860,7 @@ consume_improper_spaces (const char *p, const char *body)
   if (*p == ' ')
     {
       complaint (&symfile_complaints,
-                "macro definition contains spaces in formal argument list:\n`%s'",
+                _("macro definition contains spaces in formal argument list:\n`%s'"),
                 body);
 
       while (*p == ' ')
@@ -9022,7 +9022,7 @@ dwarf_decode_macros (struct line_header *lh, unsigned int offset,
 
   if (dwarf2_per_objfile->macinfo_buffer == NULL)
     {
-      complaint (&symfile_complaints, "missing .debug_macinfo section");
+      complaint (&symfile_complaints, _("missing .debug_macinfo section"));
       return;
     }
 
@@ -9065,7 +9065,7 @@ dwarf_decode_macros (struct line_header *lh, unsigned int offset,
 
             if (! current_file)
              complaint (&symfile_complaints,
-                        "debug info gives macro %s outside of any file: %s",
+                        _("debug info gives macro %s outside of any file: %s"),
                         macinfo_type ==
                         DW_MACINFO_define ? "definition" : macinfo_type ==
                         DW_MACINFO_undef ? "undefinition" :
@@ -9099,7 +9099,7 @@ dwarf_decode_macros (struct line_header *lh, unsigned int offset,
         case DW_MACINFO_end_file:
           if (! current_file)
            complaint (&symfile_complaints,
-                      "macro debug info has an unmatched `close_file' directive");
+                      _("macro debug info has an unmatched `close_file' directive"));
           else
             {
               current_file = current_file->included_by;
@@ -9124,7 +9124,7 @@ dwarf_decode_macros (struct line_header *lh, unsigned int offset,
                   next_type = read_1_byte (abfd, mac_ptr);
                   if (next_type != 0)
                    complaint (&symfile_complaints,
-                              "no terminating 0-type entry for macros in `.debug_macinfo' section");
+                              _("no terminating 0-type entry for macros in `.debug_macinfo' section"));
 
                   return;
                 }
@@ -9180,7 +9180,7 @@ dwarf2_symbol_mark_computed (struct attribute *attr, struct symbol *sym,
       baton->base_address = cu->header.base_address;
       if (cu->header.base_known == 0)
        complaint (&symfile_complaints,
-                  "Location list used without specifying the CU base address.");
+                  _("Location list used without specifying the CU base address."));
 
       SYMBOL_OPS (sym) = &dwarf2_loclist_funcs;
       SYMBOL_LOCATION_BATON (sym) = baton;
index f36fb1fbe31c06a34b9931de7986e31fc9322dbd..72718fe02d44950a91a40a71e9042fcda516fc7f 100644 (file)
@@ -135,7 +135,7 @@ static void
 bad_die_ref_complaint (int arg1, const char *arg2, int arg3)
 {
   complaint (&symfile_complaints,
-            "DIE @ 0x%x \"%s\", reference to DIE (0x%x) outside compilation unit",
+            _("DIE @ 0x%x \"%s\", reference to DIE (0x%x) outside compilation unit"),
             arg1, arg2, arg3);
 }
 
@@ -143,7 +143,7 @@ static void
 unknown_attribute_form_complaint (int arg1, const char *arg2, int arg3)
 {
   complaint (&symfile_complaints,
-            "DIE @ 0x%x \"%s\", unknown attribute form (0x%x)", arg1, arg2,
+            _("DIE @ 0x%x \"%s\", unknown attribute form (0x%x)"), arg1, arg2,
             arg3);
 }
 
@@ -151,7 +151,7 @@ static void
 dup_user_type_definition_complaint (int arg1, const char *arg2)
 {
   complaint (&symfile_complaints,
-            "DIE @ 0x%x \"%s\", internal error: duplicate user type definition",
+            _("DIE @ 0x%x \"%s\", internal error: duplicate user type definition"),
             arg1, arg2);
 }
 
@@ -159,7 +159,7 @@ static void
 bad_array_element_type_complaint (int arg1, const char *arg2, int arg3)
 {
   complaint (&symfile_complaints,
-            "DIE @ 0x%x \"%s\", bad array element type attribute 0x%x", arg1,
+            _("DIE @ 0x%x \"%s\", bad array element type attribute 0x%x"), arg1,
             arg2, arg3);
 }
 
@@ -818,7 +818,7 @@ alloc_utype (DIE_REF die_ref, struct type *utypep)
     {
       utypep = *typep;
       complaint (&symfile_complaints,
-                "DIE @ 0x%x \"%s\", internal error: duplicate user type allocation",
+                _("DIE @ 0x%x \"%s\", internal error: duplicate user type allocation"),
                 DIE_ID, DIE_NAME);
     }
   else
@@ -967,7 +967,7 @@ struct_type (struct dieinfo *dip, char *thisdie, char *enddie,
       /* Should never happen */
       TYPE_CODE (type) = TYPE_CODE_UNDEF;
       complaint (&symfile_complaints,
-                "DIE @ 0x%x \"%s\", missing class, structure, or union tag",
+                _("DIE @ 0x%x \"%s\", missing class, structure, or union tag"),
                 DIE_ID, DIE_NAME);
       break;
     }
@@ -1306,7 +1306,7 @@ decode_subscript_data_item (char *scan, char *end)
        {
          /* Munged subscript data or other problem, fake it. */
          complaint (&symfile_complaints,
-                    "DIE @ 0x%x \"%s\", can't decode subscript data items",
+                    _("DIE @ 0x%x \"%s\", can't decode subscript data items"),
                     DIE_ID, DIE_NAME);
          nexttype = dwarf_fundamental_type (current_objfile, FT_INTEGER);
        }
@@ -1322,7 +1322,7 @@ decode_subscript_data_item (char *scan, char *end)
     case FMT_UT_X_C:
     case FMT_UT_X_X:
       complaint (&symfile_complaints,
-                "DIE @ 0x%x \"%s\", array subscript format 0x%x not handled yet",
+                _("DIE @ 0x%x \"%s\", array subscript format 0x%x not handled yet"),
                 DIE_ID, DIE_NAME, format);
       nexttype = dwarf_fundamental_type (current_objfile, FT_INTEGER);
       rangetype = create_range_type ((struct type *) NULL, nexttype, 0, 0);
@@ -1330,7 +1330,7 @@ decode_subscript_data_item (char *scan, char *end)
       break;
     default:
       complaint (&symfile_complaints,
-                "DIE @ 0x%x \"%s\", unknown array subscript format %x", DIE_ID,
+                _("DIE @ 0x%x \"%s\", unknown array subscript format %x"), DIE_ID,
                 DIE_NAME, format);
       nexttype = dwarf_fundamental_type (current_objfile, FT_INTEGER);
       rangetype = create_range_type ((struct type *) NULL, nexttype, 0, 0);
@@ -1370,7 +1370,7 @@ dwarf_read_array_type (struct dieinfo *dip)
     {
       /* FIXME:  Can gdb even handle column major arrays? */
       complaint (&symfile_complaints,
-                "DIE @ 0x%x \"%s\", array not row major; not handled correctly",
+                _("DIE @ 0x%x \"%s\", array not row major; not handled correctly"),
                 DIE_ID, DIE_NAME);
     }
   sub = dip->at_subscr_data;
@@ -1787,7 +1787,7 @@ read_func_scope (struct dieinfo *dip, char *thisdie, char *enddie,
      FIXME: Add code to handle AT_abstract_origin tags properly.  */
   if (dip->at_name == NULL)
     {
-      complaint (&symfile_complaints, "DIE @ 0x%x, AT_name tag missing",
+      complaint (&symfile_complaints, _("DIE @ 0x%x, AT_name tag missing"),
                 DIE_ID);
       return;
     }
@@ -2210,12 +2210,12 @@ locval (struct dieinfo *dip)
        case OP_DEREF2:
          /* pop, deref and push 2 bytes (as a long) */
          complaint (&symfile_complaints,
-                    "DIE @ 0x%x \"%s\", OP_DEREF2 address 0x%lx not handled",
+                    _("DIE @ 0x%x \"%s\", OP_DEREF2 address 0x%lx not handled"),
                     DIE_ID, DIE_NAME, stack[stacki]);
          break;
        case OP_DEREF4: /* pop, deref and push 4 bytes (as a long) */
          complaint (&symfile_complaints,
-                    "DIE @ 0x%x \"%s\", OP_DEREF4 address 0x%lx not handled",
+                    _("DIE @ 0x%x \"%s\", OP_DEREF4 address 0x%lx not handled"),
                     DIE_ID, DIE_NAME, stack[stacki]);
          break;
        case OP_ADD:            /* pop top 2 items, add, push result */
@@ -3185,7 +3185,7 @@ decode_modified_type (char *modifiers, unsigned int modcount, int mtype)
          break;
        default:
          complaint (&symfile_complaints,
-                    "DIE @ 0x%x \"%s\", botched modified type decoding (mtype 0x%x)",
+                    _("DIE @ 0x%x \"%s\", botched modified type decoding (mtype 0x%x)"),
                     DIE_ID, DIE_NAME, mtype);
          typep = dwarf_fundamental_type (current_objfile, FT_INTEGER);
          break;
@@ -3205,12 +3205,12 @@ decode_modified_type (char *modifiers, unsigned int modcount, int mtype)
          break;
        case MOD_const:
          complaint (&symfile_complaints,
-                    "DIE @ 0x%x \"%s\", type modifier 'const' ignored", DIE_ID,
+                    _("DIE @ 0x%x \"%s\", type modifier 'const' ignored"), DIE_ID,
                     DIE_NAME); /* FIXME */
          break;
        case MOD_volatile:
          complaint (&symfile_complaints,
-                    "DIE @ 0x%x \"%s\", type modifier 'volatile' ignored",
+                    _("DIE @ 0x%x \"%s\", type modifier 'volatile' ignored"),
                     DIE_ID, DIE_NAME); /* FIXME */
          break;
        default:
@@ -3222,7 +3222,7 @@ decode_modified_type (char *modifiers, unsigned int modcount, int mtype)
 #endif
            {
              complaint (&symfile_complaints,
-                        "DIE @ 0x%x \"%s\", unknown type modifier %u", DIE_ID,
+                        _("DIE @ 0x%x \"%s\", unknown type modifier %u"), DIE_ID,
                         DIE_NAME, modifier);
            }
          break;
@@ -3366,7 +3366,7 @@ decode_fund_type (unsigned int fundtype)
       if (!(FT_lo_user <= fundtype && fundtype <= FT_hi_user))
        {
          complaint (&symfile_complaints,
-                    "DIE @ 0x%x \"%s\", unexpected fundamental type 0x%x",
+                    _("DIE @ 0x%x \"%s\", unexpected fundamental type 0x%x"),
                     DIE_ID, DIE_NAME, fundtype);
        }
     }
@@ -3466,7 +3466,7 @@ basicdieinfo (struct dieinfo *dip, char *diep, struct objfile *objfile)
       ((diep + dip->die_length) > (dbbase + dbsize)))
     {
       complaint (&symfile_complaints,
-                "DIE @ 0x%x \"%s\", malformed DIE, bad length (%ld bytes)",
+                _("DIE @ 0x%x \"%s\", malformed DIE, bad length (%ld bytes)"),
                 DIE_ID, DIE_NAME, dip->die_length);
       dip->die_length = 0;
     }
@@ -3535,7 +3535,7 @@ completedieinfo (struct dieinfo *dip, struct objfile *objfile)
       if (nbytes == -1)
        {
          complaint (&symfile_complaints,
-                    "DIE @ 0x%x \"%s\", unknown attribute length, skipped remaining attributes",
+                    _("DIE @ 0x%x \"%s\", unknown attribute length, skipped remaining attributes"),
                     DIE_ID, DIE_NAME);
          diep = end;
          continue;
@@ -3751,7 +3751,7 @@ target_to_host (char *from, int nbytes, int signextend,   /* FIXME:  Unused */
       break;
     default:
       complaint (&symfile_complaints,
-                "DIE @ 0x%x \"%s\", no bfd support for %d byte data object",
+                _("DIE @ 0x%x \"%s\", no bfd support for %d byte data object"),
                 DIE_ID, DIE_NAME, nbytes);
       rtnval = 0;
       break;
index 99ae93c837a17bd96a2343cc7ed47166c5622959..568d9f442b12671918cce6831c3735a0aee1d1e2 100644 (file)
@@ -383,7 +383,7 @@ elf_symtab_read (struct objfile *objfile, int dynamic)
                              if (filesym == NULL)
                                {
                                  complaint (&symfile_complaints,
-                                            "elf/stab section information %s without a preceding file symbol",
+                                            _("elf/stab section information %s without a preceding file symbol"),
                                             sym->name);
                                }
                              else
@@ -394,7 +394,7 @@ elf_symtab_read (struct objfile *objfile, int dynamic)
                            }
                          if (sectinfo->sections[special_local_sect] != 0)
                            complaint (&symfile_complaints,
-                                      "duplicated elf/stab section information for %s",
+                                      _("duplicated elf/stab section information for %s"),
                                       sectinfo->filename);
                          /* BFD symbols are section relative.  */
                          symaddr = sym->value + sym->section->vma;
@@ -704,7 +704,7 @@ elfstab_offset_sections (struct objfile *objfile, struct partial_symtab *pst)
   if (maybe == 0 && questionable != 0)
     {
       complaint (&symfile_complaints,
-                "elf/stab section information questionable for %s", filename);
+                _("elf/stab section information questionable for %s"), filename);
       maybe = questionable;
     }
 
@@ -723,7 +723,7 @@ elfstab_offset_sections (struct objfile *objfile, struct partial_symtab *pst)
   /* We were unable to find any offsets for this file.  Complain.  */
   if (dbx->stab_section_info)  /* If there *is* any info, */
     complaint (&symfile_complaints,
-              "elf/stab section information missing for %s", filename);
+              _("elf/stab section information missing for %s"), filename);
 }
 \f
 /* Register that we are able to handle ELF object file formats.  */
index 5f3d30e87ec7415c4fd874c71fa910ceb7867468..71e8d4d9096e55af0c60671e3a3d38c4d95e6174 100644 (file)
@@ -452,7 +452,7 @@ add_file_handler (int fd, handler_func * proc, gdb_client_data client_data)
        use_poll = 0;
 #else
       internal_error (__FILE__, __LINE__,
-                     "use_poll without HAVE_POLL");
+                     _("use_poll without HAVE_POLL"));
 #endif /* HAVE_POLL */
     }
   if (use_poll)
@@ -461,7 +461,7 @@ add_file_handler (int fd, handler_func * proc, gdb_client_data client_data)
       create_file_handler (fd, POLLIN, proc, client_data);
 #else
       internal_error (__FILE__, __LINE__,
-                     "use_poll without HAVE_POLL");
+                     _("use_poll without HAVE_POLL"));
 #endif
     }
   else
@@ -519,7 +519,7 @@ create_file_handler (int fd, int mask, handler_func * proc, gdb_client_data clie
          (gdb_notifier.poll_fds + gdb_notifier.num_fds - 1)->revents = 0;
 #else
          internal_error (__FILE__, __LINE__,
-                         "use_poll without HAVE_POLL");
+                         _("use_poll without HAVE_POLL"));
 #endif /* HAVE_POLL */
        }
       else
@@ -597,7 +597,7 @@ delete_file_handler (int fd)
       gdb_notifier.num_fds--;
 #else
       internal_error (__FILE__, __LINE__,
-                     "use_poll without HAVE_POLL");
+                     _("use_poll without HAVE_POLL"));
 #endif /* HAVE_POLL */
     }
   else
@@ -699,7 +699,7 @@ handle_file_event (int event_file_desc)
                file_ptr->error = 0;
 #else
              internal_error (__FILE__, __LINE__,
-                             "use_poll without HAVE_POLL");
+                             _("use_poll without HAVE_POLL"));
 #endif /* HAVE_POLL */
            }
          else
@@ -758,10 +758,10 @@ gdb_wait_for_event (void)
       /* Don't print anything if we get out of poll because of a
          signal. */
       if (num_found == -1 && errno != EINTR)
-       perror_with_name ("Poll");
+       perror_with_name (("poll"));
 #else
       internal_error (__FILE__, __LINE__,
-                     "use_poll without HAVE_POLL");
+                     _("use_poll without HAVE_POLL"));
 #endif /* HAVE_POLL */
     }
   else
@@ -784,7 +784,7 @@ gdb_wait_for_event (void)
          FD_ZERO (&gdb_notifier.ready_masks[2]);
          /* Dont print anything is we got a signal, let gdb handle it. */
          if (errno != EINTR)
-           perror_with_name ("Select");
+           perror_with_name (("select"));
        }
     }
 
@@ -823,7 +823,7 @@ gdb_wait_for_event (void)
        }
 #else
       internal_error (__FILE__, __LINE__,
-                     "use_poll without HAVE_POLL");
+                     _("use_poll without HAVE_POLL"));
 #endif /* HAVE_POLL */
     }
   else
@@ -1144,7 +1144,7 @@ poll_timers (void)
          gdb_notifier.poll_timeout = delta.tv_sec * 1000;
 #else
          internal_error (__FILE__, __LINE__,
-                         "use_poll without HAVE_POLL");
+                         _("use_poll without HAVE_POLL"));
 #endif /* HAVE_POLL */
        }
       else
index 610f1682d6b0f4c9c52379ebb21fe600eb712106..98e6f25829a7c5cac53d35af36d983b7693aa02e 100644 (file)
@@ -133,7 +133,7 @@ exceptions_state_mc (enum catcher_action action)
          current_catcher->state = CATCHER_RUNNING;
          return 1;
        default:
-         internal_error (__FILE__, __LINE__, "bad state");
+         internal_error (__FILE__, __LINE__, _("bad state"));
        }
     case CATCHER_RUNNING:
       switch (action)
@@ -150,7 +150,7 @@ exceptions_state_mc (enum catcher_action action)
          /* See also throw_exception.  */
          return 1;
        default:
-         internal_error (__FILE__, __LINE__, "bad switch");
+         internal_error (__FILE__, __LINE__, _("bad switch"));
        }
     case CATCHER_RUNNING_1:
       switch (action)
@@ -167,7 +167,7 @@ exceptions_state_mc (enum catcher_action action)
          /* See also throw_exception.  */
          return 1;
        default:
-         internal_error (__FILE__, __LINE__, "bad switch");
+         internal_error (__FILE__, __LINE__, _("bad switch"));
        }
     case CATCHER_ABORTING:
       switch (action)
@@ -190,10 +190,10 @@ exceptions_state_mc (enum catcher_action action)
            throw_exception (exception);
          }
        default:
-         internal_error (__FILE__, __LINE__, "bad state");
+         internal_error (__FILE__, __LINE__, _("bad state"));
        }
     default:
-      internal_error (__FILE__, __LINE__, "bad switch");
+      internal_error (__FILE__, __LINE__, _("bad switch"));
     }
 }
 
@@ -253,7 +253,7 @@ deprecated_throw_reason (enum return_reason reason)
       exception.error = GENERIC_ERROR;
       break;
     default:
-      internal_error (__FILE__, __LINE__, "bad switch");
+      internal_error (__FILE__, __LINE__, _("bad switch"));
     }
   
   throw_exception (exception);
index d993d7a28ce7cccf85c7c37df90ef97053da2be4..2b6b0941e7f894d951278b65251b171d21ef4cf6 100644 (file)
@@ -366,7 +366,7 @@ build_section_table (struct bfd *some_bfd, struct section_table **start,
   *end = *start;
   bfd_map_over_sections (some_bfd, add_to_section_table, (char *) end);
   if (*end > *start + count)
-    internal_error (__FILE__, __LINE__, "failed internal consistency check");
+    internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
   /* We could realloc the table, but it probably loses for most files.  */
   return 0;
 }
@@ -455,7 +455,7 @@ xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
   asection *section = NULL;
 
   if (len <= 0)
-    internal_error (__FILE__, __LINE__, "failed internal consistency check");
+    internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
 
   if (overlay_debugging)
     {
index 2d779d763d9fb47822c1e87abac499ed034da778..d5b40cdbb4309c828df8a13d424fe2ce2f8c70d0 100644 (file)
@@ -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 fb9217d583bcaa110bd19a908c659f6eae460730..84964f31a22b95c327f328a75c756649b66ed621 100644 (file)
@@ -169,8 +169,8 @@ extract_typed_address (const void *buf, struct type *type)
   if (TYPE_CODE (type) != TYPE_CODE_PTR
       && TYPE_CODE (type) != TYPE_CODE_REF)
     internal_error (__FILE__, __LINE__,
-                   "extract_typed_address: "
-                   "type is not a pointer or reference");
+                   _("extract_typed_address: "
+                   "type is not a pointer or reference"));
 
   return POINTER_TO_ADDRESS (type, buf);
 }
@@ -238,8 +238,8 @@ store_typed_address (void *buf, struct type *type, CORE_ADDR addr)
   if (TYPE_CODE (type) != TYPE_CODE_PTR
       && TYPE_CODE (type) != TYPE_CODE_REF)
     internal_error (__FILE__, __LINE__,
-                   "store_typed_address: "
-                   "type is not a pointer or reference");
+                   _("store_typed_address: "
+                   "type is not a pointer or reference"));
 
   ADDRESS_TO_POINTER (type, buf, addr);
 }
index 718a3d2de2129e84b596ed292c4608efb7ba4284..4d8a857dc8c5ac0ae6e4cc4886cf1f182da7bfd1 100644 (file)
@@ -291,7 +291,7 @@ fork_inferior (char *exec_file_arg, char *allargs, char **env,
     pid = vfork ();
 
   if (pid < 0)
-    perror_with_name ("vfork");
+    perror_with_name (("vfork"));
 
   if (pid == 0)
     {
index 9e30c7802fe22f91c630958b8ffaf69db14f02f4..28192fbd6ea1af3428129c006528e7de94d54872 100644 (file)
@@ -106,7 +106,7 @@ frame_unwind_find_by_frame (struct frame_info *next_frame, void **this_cache)
            return entry->unwinder;
        }
     }
-  internal_error (__FILE__, __LINE__, "frame_unwind_find_by_frame failed");
+  internal_error (__FILE__, __LINE__, _("frame_unwind_find_by_frame failed"));
 }
 
 extern initialize_file_ftype _initialize_frame_unwind; /* -Wmissing-prototypes */
index bfa9380b4dec9db227297ca2f89c88c0fb5bd17a..c1988b80c0946c0f71a5960db7b824f048d7f737 100644 (file)
@@ -421,7 +421,7 @@ frame_pc_unwind (struct frame_info *this_frame)
          pc = gdbarch_unwind_pc (current_gdbarch, this_frame);
        }
       else
-       internal_error (__FILE__, __LINE__, "No unwind_pc method");
+       internal_error (__FILE__, __LINE__, _("No unwind_pc method"));
       this_frame->prev_pc.value = pc;
       this_frame->prev_pc.p = 1;
       if (frame_debug)
@@ -1511,7 +1511,7 @@ frame_sp_unwind (struct frame_info *next_frame)
       frame_unwind_unsigned_register (next_frame, SP_REGNUM, &sp);
       return sp;
     }
-  internal_error (__FILE__, __LINE__, "Missing unwind SP method");
+  internal_error (__FILE__, __LINE__, _("Missing unwind SP method"));
 }
 
 extern initialize_file_ftype _initialize_frame; /* -Wmissing-prototypes */
index 850c143e5dc51719d6060fe8597345b04a8a0b85..e78fe39e9259051fe41d4dc683f7eb52b61b0e20 100644 (file)
@@ -195,7 +195,7 @@ frv_linux_sigcontext_reg_addr (struct frame_info *next_frame, int regno,
          sc_addr += 12;
        }
       else
-       internal_error (__FILE__, __LINE__, "not a signal trampoline");
+       internal_error (__FILE__, __LINE__, _("not a signal trampoline"));
 
       if (sc_addr_cache_ptr)
        *sc_addr_cache_ptr = sc_addr;
index 844cccb98536e968741cdfb9347c3d45880077c1..32eb92e4018de133d94546b944d3a1b1f2f7978f 100644 (file)
@@ -421,7 +421,7 @@ frv_register_sim_regno (int reg)
        return SIM_FRV_SPR0_REGNUM + spr_reg_offset;
     }
 
-  internal_error (__FILE__, __LINE__, "Bad register number %d", reg);
+  internal_error (__FILE__, __LINE__, _("Bad register number %d"), reg);
 }
 
 static const unsigned char *
@@ -1050,7 +1050,7 @@ frv_extract_return_value (struct type *type, struct regcache *regcache,
       store_unsigned_integer ((bfd_byte *) valbuf + 4, 4, regval);
     }
   else
-    internal_error (__FILE__, __LINE__, "Illegal return value length: %d", len);
+    internal_error (__FILE__, __LINE__, _("Illegal return value length: %d"), len);
 }
 
 static CORE_ADDR
@@ -1258,7 +1258,7 @@ frv_store_return_value (struct type *type, struct regcache *regcache,
     }
   else
     internal_error (__FILE__, __LINE__,
-                    "Don't know how to return a %d-byte value.", len);
+                    _("Don't know how to return a %d-byte value."), len);
 }
 
 
index 9cad74c9cbc81ff7736792d59fffe93fc6f5c04f..0c3612e7523e7118cb644434e1ced032e1064d01 100644 (file)
    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 172a3506b18c0867fffcb97da666a236357476df..5b2f9a2bea99a1551eb5b335c4e0f2b507de011e 100644 (file)
@@ -613,7 +613,7 @@ verify_gdbarch (struct gdbarch *current_gdbarch)
   make_cleanup (xfree, buf);
   if (strlen (buf) > 0)
     internal_error (__FILE__, __LINE__,
-                    "verify_gdbarch: the following are invalid ...%s",
+                    _("verify_gdbarch: the following are invalid ...%s"),
                     buf);
   do_cleanups (cleanups);
 }
@@ -3940,7 +3940,7 @@ gdbarch_printable_names (void)
       ap = bfd_lookup_arch (rego->bfd_architecture, 0);
       if (ap == NULL)
         internal_error (__FILE__, __LINE__,
-                        "gdbarch_architecture_names: multi-arch unknown");
+                        _("gdbarch_architecture_names: multi-arch unknown"));
       do
         {
           append_name (&arches, &nr_arches, ap->printable_name);
index 06be9b59f9ba8558221dde86fd94a3ed94fe7971..d3a20e42e1c0ee8ecc9eeaeb5a7b5fc565cd2f1a 100644 (file)
@@ -1353,7 +1353,7 @@ get_destructor_fn_field (struct type *t, int *method_indexp, int *field_indexp)
 static void
 stub_noname_complaint (void)
 {
-  complaint (&symfile_complaints, "stub type has NULL name");
+  complaint (&symfile_complaints, _("stub type has NULL name"));
 }
 
 /* Added by Bryan Boreham, Kewill, Sun Sep 17 18:07:17 1989.
index 4527ba9e8e9d3de7767db9bd5390ef8742c1fb9b..404ffe46645db29e04f99e2ab1acc9e4c934a408 100644 (file)
@@ -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 e0223f4c9b882ef3e4ec7de92beee2aec0e21c3b..16e42a52f0ed6711d5689beb1a3cc996215ae171 100644 (file)
@@ -472,7 +472,7 @@ fetch_register (int regno)
     i387_supply_fsave (current_regcache, regno, &npx);
   else
     internal_error (__FILE__, __LINE__,
-                   "Invalid register no. %d in fetch_register.", regno);
+                   _("Invalid register no. %d in fetch_register."), regno);
 }
 
 static void
@@ -498,7 +498,7 @@ store_register (int regno)
     i387_fill_fsave ((char *) &npx, regno);
   else
     internal_error (__FILE__, __LINE__,
-                   "Invalid register no. %d in store_register.", regno);
+                   _("Invalid register no. %d in store_register."), regno);
 }
 
 static void
@@ -604,7 +604,7 @@ go32_create_inferior (char *exec_file, char *args, char **env, int from_tty)
   /* Init command line storage.  */
   if (redir_debug_init (&child_cmd) == -1)
     internal_error (__FILE__, __LINE__,
-                   "Cannot allocate redirection storage: not enough memory.\n");
+                   _("Cannot allocate redirection storage: not enough memory.\n"));
 
   /* Parse the command line and create redirections.  */
   if (strpbrk (args, "<>"))
@@ -695,7 +695,7 @@ go32_set_dr (int i, CORE_ADDR addr)
 {
   if (i < 0 || i > 3)
     internal_error (__FILE__, __LINE__, 
-                   "Invalid register %d in go32_set_dr.\n", i);
+                   _("Invalid register %d in go32_set_dr.\n"), i);
   D_REGS[i] = addr;
 }
 
@@ -890,7 +890,7 @@ init_go32_ops (void)
   /* Initialize child's command line storage.  */
   if (redir_debug_init (&child_cmd) == -1)
     internal_error (__FILE__, __LINE__,
-                   "Cannot allocate redirection storage: not enough memory.\n");
+                   _("Cannot allocate redirection storage: not enough memory.\n"));
 
   /* We are always processing GCC-compiled programs.  */
   processing_gcc_compilation = 2;
@@ -1875,7 +1875,7 @@ go32_pte_for_address (char *arg, int from_tty)
        addr = parse_and_eval_address (arg);
     }
   if (!addr)
-    error_no_arg ("linear address");
+    error_no_arg (_("linear address"));
 
   pdbr = get_cr3 ();
   if (!pdbr)
index 66ea2e3cbd208c51b72f0fe31684331685b7ddc1..f2d3ff69884f8fb4cced0a8b9389fbbe3fdd5e97 100644 (file)
@@ -2762,7 +2762,7 @@ hppa_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
                                           hppa64_cannot_store_register);
         break;
       default:
-        internal_error (__FILE__, __LINE__, "Unsupported address size: %d",
+        internal_error (__FILE__, __LINE__, _("Unsupported address size: %d"),
                         tdep->bytes_per_address);
     }
 
@@ -2814,7 +2814,7 @@ hppa_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
       set_gdbarch_frame_align (gdbarch, hppa64_frame_align);
       break;
     default:
-      internal_error (__FILE__, __LINE__, "bad switch");
+      internal_error (__FILE__, __LINE__, _("bad switch"));
     }
       
   /* Struct return methods.  */
@@ -2827,7 +2827,7 @@ hppa_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
       set_gdbarch_return_value (gdbarch, hppa64_return_value);
       break;
     default:
-      internal_error (__FILE__, __LINE__, "bad switch");
+      internal_error (__FILE__, __LINE__, _("bad switch"));
     }
       
   set_gdbarch_breakpoint_from_pc (gdbarch, hppa_breakpoint_from_pc);
index fb53c9675589f894f781122c7bd00579f694811b..a7a85e5747e6e1773be320db5df1b19adccffb50 100644 (file)
@@ -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 77a10dbc341f99d4e9ec3c25293d290f5ca1f622..6f27b458bd30b1d8ec25cac6e29224b4f1b3e728 100644 (file)
@@ -118,7 +118,7 @@ struct symloc
 static void
 lbrac_unmatched_complaint (int arg1)
 {
-  complaint (&symfile_complaints, "unmatched N_LBRAC before symtab pos %d",
+  complaint (&symfile_complaints, _("unmatched N_LBRAC before symtab pos %d"),
             arg1);
 }
 
@@ -126,7 +126,7 @@ static void
 lbrac_mismatch_complaint (int arg1)
 {
   complaint (&symfile_complaints,
-            "N_LBRAC/N_RBRAC symbol mismatch at symtab pos %d", arg1);
+            _("N_LBRAC/N_RBRAC symbol mismatch at symtab pos %d"), arg1);
 }
 
 /* To generate dumping code, uncomment this define.  The dumping
@@ -303,7 +303,7 @@ set_namestring (union dnttentry *sym, char **namep, struct objfile *objfile)
     *namep = "";
   else if ((unsigned) sym->dsfile.name >= VT_SIZE (objfile))
     {
-      complaint (&symfile_complaints, "bad string table offset in symbol %d",
+      complaint (&symfile_complaints, _("bad string table offset in symbol %d"),
                 symnum);
       *namep = "";
     }
@@ -4769,7 +4769,7 @@ hpread_type_lookup (dnttpointer hp_type, struct objfile *objfile)
          dn_bufp = hpread_get_lntt (dn_bufp->dtype.type.dnttp.index, objfile);
        else
          {
-           complaint (&symfile_complaints, "error in hpread_type_lookup().");
+           complaint (&symfile_complaints, _("error in hpread_type_lookup()."));
            return NULL;
          }
 
@@ -5633,7 +5633,7 @@ hpread_process_one_debug_symbol (union dnttentry *dn_bufp, char *name,
        case DNTT_TYPE_COMMON:
          /* End a FORTRAN common block. We don't currently handle these */
          complaint (&symfile_complaints,
-                    "unhandled symbol in hp-symtab-read.c: DNTT_TYPE_COMMON/DNTT_TYPE_END.\n");
+                    _("unhandled symbol in hp-symtab-read.c: DNTT_TYPE_COMMON/DNTT_TYPE_END.\n"));
          break;
 
        case DNTT_TYPE_CLASS_SCOPE:
@@ -5661,7 +5661,7 @@ hpread_process_one_debug_symbol (union dnttentry *dn_bufp, char *name,
 
        default:
          complaint (&symfile_complaints,
-                    "internal error in hp-symtab-read.c: Unexpected DNTT_TYPE_END kind.");
+                    _("internal error in hp-symtab-read.c: Unexpected DNTT_TYPE_END kind."));
          break;
        }
       break;
@@ -5882,7 +5882,7 @@ hpread_process_one_debug_symbol (union dnttentry *dn_bufp, char *name,
          dn_bufp = hpread_get_lntt (dn_bufp->dtag.type.dnttp.index, objfile);
        else
          {
-           complaint (&symfile_complaints, "error processing class tagdef");
+           complaint (&symfile_complaints, _("error processing class tagdef"));
            return;
          }
        if (dn_bufp->dblock.kind == DNTT_TYPE_CLASS ||
@@ -5991,7 +5991,7 @@ hpread_process_one_debug_symbol (union dnttentry *dn_bufp, char *name,
     case DNTT_TYPE_COMMON:
       /* FORTRAN common. Not yet handled. */
       complaint (&symfile_complaints,
-                "unhandled symbol in hp-symtab-read.c: DNTT_TYPE_COMMON.");
+                _("unhandled symbol in hp-symtab-read.c: DNTT_TYPE_COMMON."));
       break;
 
       /* DNTT_TYPE_COBSTRUCT is not handled by GDB.  */
@@ -6004,7 +6004,7 @@ hpread_process_one_debug_symbol (union dnttentry *dn_bufp, char *name,
        * Anyway, not yet handled.
        */
       complaint (&symfile_complaints,
-                "unhandled symbol in hp-symtab-read.c: DNTT_TYPE_BLOCKDATA.");
+                _("unhandled symbol in hp-symtab-read.c: DNTT_TYPE_BLOCKDATA."));
       break;
 
     case DNTT_TYPE_CLASS_SCOPE:
index 78394d0146216f7ae610f6d92b735f57de924d37..f04b091e5670fe6e7aa0a6bc9fdefc638260edc4 100644 (file)
@@ -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);
 }
 \f
 
@@ -632,7 +632,7 @@ i386_linux_dr_get (int regnum)
                  offsetof (struct user, u_debugreg[regnum]), 0);
   if (errno != 0)
 #if 0
-    perror_with_name ("Couldn't read debug register");
+    perror_with_name (_("Couldn't read debug register"));
 #else
     return 0;
 #endif
@@ -654,7 +654,7 @@ i386_linux_dr_set (int regnum, unsigned long value)
   ptrace (PTRACE_POKEUSER, tid,
          offsetof (struct user, u_debugreg[regnum]), value);
   if (errno != 0)
-    perror_with_name ("Couldn't write debug register");
+    perror_with_name (_("Couldn't write debug register"));
 }
 
 void
@@ -810,7 +810,7 @@ child_resume (ptid_t ptid, int step, enum target_signal signal)
     }
 
   if (ptrace (request, pid, 0, target_signal_to_host (signal)) == -1)
-    perror_with_name ("ptrace");
+    perror_with_name (("ptrace"));
 }
 
 void
index 6b5f49b2a386212aca99ba8a352655510eb07cfb..5388ef99937eae13a0e6702573bde0784662b74b 100644 (file)
@@ -310,8 +310,8 @@ i386_length_and_rw_bits (int len, enum target_hw_bp_type type)
        break;
 #endif
       default:
-       internal_error (__FILE__, __LINE__, "\
-Invalid hardware breakpoint type %d in i386_length_and_rw_bits.\n",
+       internal_error (__FILE__, __LINE__, _("\
+Invalid hardware breakpoint type %d in i386_length_and_rw_bits.\n"),
                        (int) type);
     }
 
@@ -327,8 +327,8 @@ Invalid hardware breakpoint type %d in i386_length_and_rw_bits.\n",
         if (TARGET_HAS_DR_LEN_8)
          return (DR_LEN_8 | rw);
       default:
-       internal_error (__FILE__, __LINE__, "\
-Invalid hardware breakpoint length %d in i386_length_and_rw_bits.\n", len);
+       internal_error (__FILE__, __LINE__, _("\
+Invalid hardware breakpoint length %d in i386_length_and_rw_bits.\n"), len);
     }
 }
 
@@ -478,8 +478,8 @@ i386_handle_nonaligned_watchpoint (i386_wp_op_t what, CORE_ADDR addr, int len,
          else if (what == WP_REMOVE)
            status = i386_remove_aligned_watchpoint (addr, len_rw);
          else
-           internal_error (__FILE__, __LINE__, "\
-Invalid value %d of operation in i386_handle_nonaligned_watchpoint.\n",
+           internal_error (__FILE__, __LINE__, _("\
+Invalid value %d of operation in i386_handle_nonaligned_watchpoint.\n"),
                            (int)what);
          /* We keep the loop going even after a failure, because some
             of the other aligned watchpoints might still succeed
index 6fca2b21bda8948268f45361ee062625d924787b..fd0f5cfa554598d9555b1ca0d6a8e4276b611d24 100644 (file)
@@ -1320,7 +1320,7 @@ i386_extract_return_value (struct gdbarch *gdbarch, struct type *type,
        }
       else
        internal_error (__FILE__, __LINE__,
-                       "Cannot extract return value of %d bytes long.", len);
+                       _("Cannot extract return value of %d bytes long."), len);
     }
 }
 
@@ -1388,7 +1388,7 @@ i386_store_return_value (struct gdbarch *gdbarch, struct type *type,
        }
       else
        internal_error (__FILE__, __LINE__,
-                       "Cannot store return value of %d bytes long.", len);
+                       _("Cannot store return value of %d bytes long."), len);
     }
 
 #undef I387_ST0_REGNUM
index 4456715814173ad92bc1e5966a48891d841ce07e..a19b26559d960a6800a87e2e91c991202c83d171 100644 (file)
@@ -140,7 +140,7 @@ i386bsd_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"));
 
       i386bsd_supply_gregset (current_regcache, &regs);
       if (regnum != -1)
@@ -164,14 +164,14 @@ i386bsd_fetch_inferior_registers (int regnum)
        {
           if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
                      (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
-           perror_with_name ("Couldn't get floating point status");
+           perror_with_name (_("Couldn't get floating point status"));
 
          i387_supply_fsave (current_regcache, -1, &fpregs);
        }
 #else
       if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
                  (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
-       perror_with_name ("Couldn't get floating point status");
+       perror_with_name (_("Couldn't get floating point status"));
 
       i387_supply_fsave (current_regcache, -1, &fpregs);
 #endif
@@ -190,13 +190,13 @@ i386bsd_store_inferior_registers (int regnum)
 
       if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
                   (PTRACE_TYPE_ARG3) &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 regnum)
 
          if (ptrace (PT_SETXMMREGS, PIDGET (inferior_ptid),
                      (PTRACE_TYPE_ARG3) xmmregs, 0) == -1)
-            perror_with_name ("Couldn't write XMM registers");
+            perror_with_name (_("Couldn't write XMM registers"));
        }
       else
        {
@@ -226,13 +226,13 @@ i386bsd_store_inferior_registers (int regnum)
 #endif
           if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
                      (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
-           perror_with_name ("Couldn't get floating point status");
+           perror_with_name (_("Couldn't get floating point status"));
 
           i387_collect_fsave (current_regcache, regnum, &fpregs);
 
           if (ptrace (PT_SETFPREGS, PIDGET (inferior_ptid),
                      (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
-           perror_with_name ("Couldn't write floating point status");
+           perror_with_name (_("Couldn't write floating point status"));
 #ifdef HAVE_PT_GETXMMREGS
         }
 #endif
@@ -271,7 +271,7 @@ i386bsd_dr_set (int regnum, unsigned int value)
 
   if (ptrace (PT_GETDBREGS, PIDGET (inferior_ptid),
               (PTRACE_TYPE_ARG3) &dbregs, 0) == -1)
-    perror_with_name ("Couldn't get debug registers");
+    perror_with_name (_("Couldn't get debug registers"));
 
   /* For some mysterious reason, some of the reserved bits in the
      debug control register get set.  Mask these off, otherwise the
@@ -282,7 +282,7 @@ i386bsd_dr_set (int regnum, unsigned int value)
 
   if (ptrace (PT_SETDBREGS, PIDGET (inferior_ptid),
               (PTRACE_TYPE_ARG3) &dbregs, 0) == -1)
-    perror_with_name ("Couldn't write debug registers");
+    perror_with_name (_("Couldn't write debug registers"));
 }
 
 void
@@ -320,7 +320,7 @@ i386bsd_dr_get_status (void)
   if (ptrace (PT_GETDBREGS, PIDGET (inferior_ptid),
              (PTRACE_TYPE_ARG3) &dbregs, 0) == -1)
 #if 0
-    perror_with_name ("Couldn't read debug registers");
+    perror_with_name (_("Couldn't read debug registers"));
 #else
     return 0;
 #endif
index 29a02f043a64aff5ee81654c08adb82240366f52..bb516fedfea3688adeabbb42addcca706f0ce629 100644 (file)
@@ -75,7 +75,7 @@ i386fbsd_resume (ptid_t ptid, int step, enum target_signal signal)
      written a new PC value to the child.)  */
   if (ptrace (request, pid, (caddr_t) 1,
              target_signal_to_host (signal)) == -1)
-    perror_with_name ("ptrace");
+    perror_with_name (("ptrace"));
 }
 \f
 
index 7733eec261820593b4734b3ae623dca2918f1e4c..9d711c087184aa4783bc08407bc428ad395bca75 100644 (file)
@@ -95,7 +95,7 @@ inf_ptrace_resume (ptid_t ptid, int step, enum target_signal signal)
   errno = 0;
   ptrace (request, pid, (PTRACE_TYPE_ARG3) 1, target_signal_to_host (signal));
   if (errno != 0)
-    perror_with_name ("ptrace");
+    perror_with_name (("ptrace"));
 }
 
 /* Wait for child to do something.  Return pid of child, or -1 in case
@@ -186,7 +186,7 @@ inf_ptrace_attach (char *args, int from_tty)
   char *dummy;
 
   if (!args)
-    error_no_arg ("process-id to attach");
+    error_no_arg (_("process-id to attach"));
 
   dummy = args;
   pid = strtol (args, &dummy, 0);
@@ -215,7 +215,7 @@ inf_ptrace_attach (char *args, int from_tty)
   errno = 0;
   ptrace (PT_ATTACH, pid, (PTRACE_TYPE_ARG3) 0, 0);
   if (errno != 0)
-    perror_with_name ("ptrace");
+    perror_with_name (("ptrace"));
   attach_flag = 1;
 #else
   error (_("This system does not support attaching to a process"));
@@ -265,7 +265,7 @@ inf_ptrace_detach (char *args, int from_tty)
   errno = 0;
   ptrace (PT_DETACH, pid, (PTRACE_TYPE_ARG3) 1, sig);
   if (errno != 0)
-    perror_with_name ("ptrace");
+    perror_with_name (("ptrace"));
   attach_flag = 0;
 #else
   error (_("This system does not support detaching from a process"));
index 5f8371271a4296c2f031e58dd527936595cbd41c..1685af8d8ccffdaa90766d36c22372452918ed8f 100644 (file)
@@ -98,17 +98,17 @@ inf_ttrace_enable_syscall_events (pid_t pid)
 
   if (ttrace (TT_PROC_GET_EVENT_MASK, pid, 0,
              (uintptr_t)&tte, sizeof tte, 0) == -1)
-    perror_with_name ("ttrace");
+    perror_with_name (("ttrace"));
 
   tte.tte_events |= (TTEVT_SYSCALL_ENTRY | TTEVT_SYSCALL_RETURN);
 
   if (ttrace (TT_PROC_SET_EVENT_MASK, pid, 0,
              (uintptr_t)&tte, sizeof tte, 0) == -1)
-    perror_with_name ("ttrace");
+    perror_with_name (("ttrace"));
 
   if (ttrace (TT_PROC_GET_FIRST_LWP_STATE, pid, 0,
              (uintptr_t)&tts, sizeof tts, 0) == -1)
-    perror_with_name ("ttrace");
+    perror_with_name (("ttrace"));
 
   if (tts.tts_flags & TTS_INSYSCALL)
     inf_ttrace_num_lwps_in_syscall++;
@@ -127,13 +127,13 @@ inf_ttrace_disable_syscall_events (pid_t pid)
 
   if (ttrace (TT_PROC_GET_EVENT_MASK, pid, 0,
              (uintptr_t)&tte, sizeof tte, 0) == -1)
-    perror_with_name ("ttrace");
+    perror_with_name (("ttrace"));
 
   tte.tte_events &= ~(TTEVT_SYSCALL_ENTRY | TTEVT_SYSCALL_RETURN);
 
   if (ttrace (TT_PROC_SET_EVENT_MASK, pid, 0,
              (uintptr_t)&tte, sizeof tte, 0) == -1)
-    perror_with_name ("ttrace");
+    perror_with_name (("ttrace"));
 
   inf_ttrace_num_lwps_in_syscall = 0;
 }
@@ -190,7 +190,7 @@ inf_ttrace_add_page (pid_t pid, CORE_ADDR addr)
 
       if (ttrace (TT_PROC_GET_MPROTECT, pid, 0,
                  addr, 0, (uintptr_t)&prot) == -1)
-       perror_with_name ("ttrace");
+       perror_with_name (("ttrace"));
       
       page = XMALLOC (struct inf_ttrace_page);
       page->addr = addr;
@@ -209,7 +209,7 @@ inf_ttrace_add_page (pid_t pid, CORE_ADDR addr)
        {
          if (ttrace (TT_PROC_SET_MPROTECT, pid, 0,
                      addr, pagesize, prot & ~PROT_WRITE) == -1)
-           perror_with_name ("ttrace");
+           perror_with_name (("ttrace"));
        }
     }
 
@@ -249,7 +249,7 @@ inf_ttrace_remove_page (pid_t pid, CORE_ADDR addr)
        {
          if (ttrace (TT_PROC_SET_MPROTECT, pid, 0,
                      addr, pagesize, page->prot) == -1)
-           perror_with_name ("ttrace");
+           perror_with_name (("ttrace"));
        }
 
       inf_ttrace_page_dict.count--;
@@ -283,7 +283,7 @@ inf_ttrace_mask_page_protections (pid_t pid, int prot)
        {
          if (ttrace (TT_PROC_SET_MPROTECT, pid, 0,
                      page->addr, pagesize, page->prot & ~prot) == -1)
-           perror_with_name ("ttrace");
+           perror_with_name (("ttrace"));
 
          page = page->next;
        }
@@ -379,7 +379,7 @@ inf_ttrace_stopped_by_watchpoint (void)
     {
       if (ttrace (TT_LWP_GET_STATE, pid, lwpid,
                  (uintptr_t)&tts, sizeof tts, 0) == -1)
-       perror_with_name ("ttrace");
+       perror_with_name (("ttrace"));
 
       if (tts.tts_event == TTEVT_SIGNAL
          && tts.tts_u.tts_signal.tts_signo == SIGBUS)
@@ -435,15 +435,15 @@ inf_ttrace_me (void)
 
   /* "Trace me, Dr. Memory!"  */
   if (ttrace (TT_PROC_SETTRC, 0, 0, 0, TT_VERSION, 0) == -1)
-    perror_with_name ("ttrace");
+    perror_with_name (("ttrace"));
 
   /* Tell our parent that we are ready to be traced.  */
   if (write (inf_ttrace_pfd1[1], &c, sizeof c) != sizeof c)
-    perror_with_name ("write");
+    perror_with_name (("write"));
 
   /* Wait until our parent has set the initial event mask.  */
   if (read (inf_ttrace_pfd2[0], &c, sizeof c) != sizeof c)
-    perror_with_name ("read");
+    perror_with_name (("read"));
 
   do_cleanups (old_chain);
 }
@@ -459,7 +459,7 @@ inf_ttrace_him (int pid)
 
   /* Wait until our child is ready to be traced.  */
   if (read (inf_ttrace_pfd1[0], &c, sizeof c) != sizeof c)
-    perror_with_name ("read");
+    perror_with_name (("read"));
 
   /* Set the initial event mask.  */
   memset (&tte, 0, sizeof (tte));
@@ -471,11 +471,11 @@ inf_ttrace_him (int pid)
   tte.tte_opts = TTEO_NOSTRCCHLD;
   if (ttrace (TT_PROC_SET_EVENT_MASK, pid, 0,
              (uintptr_t)&tte, sizeof tte, 0) == -1)
-    perror_with_name ("ttrace");
+    perror_with_name (("ttrace"));
 
   /* Tell our child that we have set the initial event mask.  */
   if (write (inf_ttrace_pfd2[1], &c, sizeof c) != sizeof c)
-    perror_with_name ("write");
+    perror_with_name (("write"));
 
   do_cleanups (old_chain);
 
@@ -526,7 +526,7 @@ inf_ttrace_kill_inferior (void)
     return;
 
   if (ttrace (TT_PROC_EXIT, pid, 0, 0, 0, 0) == -1)
-    perror_with_name ("ttrace");
+    perror_with_name (("ttrace"));
   /* ??? Is it necessary to call ttrace_wait() here?  */
   target_mourn_inferior ();
 }
@@ -596,7 +596,7 @@ inf_ttrace_attach (char *args, int from_tty)
   gdb_assert (inf_ttrace_num_lwps_in_syscall == 0);
 
   if (ttrace (TT_PROC_ATTACH, pid, 0, TT_KILL_ON_EXIT, TT_VERSION, 0) == -1)
-    perror_with_name ("ttrace");
+    perror_with_name (("ttrace"));
   attach_flag = 1;
 
   /* Set the initial event mask.  */
@@ -609,7 +609,7 @@ inf_ttrace_attach (char *args, int from_tty)
   tte.tte_opts = TTEO_NOSTRCCHLD;
   if (ttrace (TT_PROC_SET_EVENT_MASK, pid, 0,
              (uintptr_t)&tte, sizeof tte, 0) == -1)
-    perror_with_name ("ttrace");
+    perror_with_name (("ttrace"));
 
   inferior_ptid = pid_to_ptid (pid);
   push_target (ttrace_ops_hack);
@@ -640,7 +640,7 @@ inf_ttrace_detach (char *args, int from_tty)
   /* ??? The HP-UX 11.0 ttrace(2) manual page doesn't mention that we
      can pass a signal number here.  Does this really work?  */
   if (ttrace (TT_PROC_DETACH, pid, 0, 0, sig, 0) == -1)
-    perror_with_name ("ttrace");
+    perror_with_name (("ttrace"));
 
   inf_ttrace_num_lwps = 0;
   inf_ttrace_num_lwps_in_syscall = 0;
@@ -658,7 +658,7 @@ inf_ttrace_resume_callback (struct thread_info *info, void *arg)
       lwpid_t lwpid = ptid_get_lwp (info->ptid);
 
       if (ttrace (TT_LWP_CONTINUE, pid, lwpid, TT_NOPC, 0, 0) == -1)
-       perror_with_name ("ttrace");
+       perror_with_name (("ttrace"));
     }
 
   return 0;
@@ -679,7 +679,7 @@ inf_ttrace_resume (ptid_t ptid, int step, enum target_signal signal)
     }
 
   if (ttrace (request, pid, lwpid, TT_NOPC, sig, 0) == -1)
-    perror_with_name ("ttrace");
+    perror_with_name (("ttrace"));
 
   if (ptid_equal (ptid, minus_one_ptid) && inf_ttrace_num_lwps > 0)
     {
@@ -821,7 +821,7 @@ inf_ttrace_wait (ptid_t ptid, struct target_waitstatus *ourstatus)
 
   /* Make sure all threads within the process are stopped.  */
   if (ttrace (TT_PROC_STOP, tts.tts_pid, 0, 0, 0, 0) == -1)
-    perror_with_name ("ttrace");
+    perror_with_name (("ttrace"));
 
   /* HACK: Twiddle INFERIOR_PTID such that the initial thread of a
      process isn't recognized as a new thread.  */
index 67bcb5b153ac050369a90500bc0c9c60fe50f853..9246cc092282113f2b27f377a0d9cc58686dbbe8 100644 (file)
@@ -481,7 +481,7 @@ call_function_by_hand (struct value *function, int nargs, struct value **args)
        break;
       }
     default:
-      internal_error (__FILE__, __LINE__, "bad switch");
+      internal_error (__FILE__, __LINE__, _("bad switch"));
     }
 
   if (nargs < TYPE_NFIELDS (ftype))
@@ -825,7 +825,7 @@ the function call)."), name);
        }
 
       /* The above code errors out, so ...  */
-      internal_error (__FILE__, __LINE__, "... should not be here");
+      internal_error (__FILE__, __LINE__, _("... should not be here"));
     }
 
   /* If we get here the called FUNCTION run to completion. */
index 8e66475703990f2cc8f4c147b94e5349d770d907..704e3215cb232fabbb8736306b8cd6e2023adf48 100644 (file)
@@ -371,7 +371,7 @@ void
 tty_command (char *file, int from_tty)
 {
   if (file == 0)
-    error_no_arg ("terminal name for running target process");
+    error_no_arg (_("terminal name for running target process"));
 
   inferior_io_terminal = savestring (file, strlen (file));
 }
@@ -841,7 +841,7 @@ jump_command (char *arg, int from_tty)
     }
 
   if (!arg)
-    error_no_arg ("starting address");
+    error_no_arg (_("starting address"));
 
   sals = decode_line_spec_1 (arg, 1);
   if (sals.nelts != 1)
@@ -923,7 +923,7 @@ signal_command (char *signum_exp, int from_tty)
   ERROR_NO_INFERIOR;
 
   if (!signum_exp)
-    error_no_arg ("signal number");
+    error_no_arg (_("signal number"));
 
   /* It would be even slicker to make signal names be valid expressions,
      (the type could be "enum $signal" or some such), then the user could
@@ -1051,7 +1051,7 @@ advance_command (char *arg, int from_tty)
     error (_("The program is not running."));
 
   if (arg == NULL)
-    error_no_arg ("a location");
+    error_no_arg (_("a location"));
 
   /* Find out whether we must run in the background.  */
   if (arg != NULL)
@@ -1105,7 +1105,7 @@ print_return_value (int struct_return, struct type *value_type)
       value = NULL;
       break;
     default:
-      internal_error (__FILE__, __LINE__, "bad switch");
+      internal_error (__FILE__, __LINE__, _("bad switch"));
     }
 
   if (value)
@@ -1161,7 +1161,7 @@ finish_command_continuation (struct continuation_arg *arg)
       value_type = TYPE_TARGET_TYPE (SYMBOL_TYPE (function));
       if (!value_type)
        internal_error (__FILE__, __LINE__,
-                       "finish_command: function has no target type");
+                       _("finish_command: function has no target type"));
 
       if (TYPE_CODE (value_type) == TYPE_CODE_VOID)
        {
@@ -1286,7 +1286,7 @@ finish_command (char *arg, int from_tty)
          value_type = TYPE_TARGET_TYPE (SYMBOL_TYPE (function));
          if (!value_type)
            internal_error (__FILE__, __LINE__,
-                           "finish_command: function has no target type");
+                           _("finish_command: function has no target type"));
 
          /* FIXME: Shouldn't we do the cleanups before returning?  */
          if (TYPE_CODE (value_type) == TYPE_CODE_VOID)
@@ -1389,7 +1389,7 @@ set_environment_command (char *arg, int from_tty)
   int nullset = 0;
 
   if (arg == 0)
-    error_no_arg ("environment variable and value");
+    error_no_arg (_("environment variable and value"));
 
   /* Find seperation between variable name and value */
   p = (char *) strchr (arg, '=');
@@ -1413,7 +1413,7 @@ set_environment_command (char *arg, int from_tty)
     p = val;
 
   if (p == arg)
-    error_no_arg ("environment variable to set");
+    error_no_arg (_("environment variable to set"));
 
   if (p == 0 || p[1] == 0)
     {
@@ -1451,7 +1451,7 @@ unset_environment_command (char *var, int from_tty)
     {
       /* If there is no argument, delete all environment variables.
          Ask for confirmation if reading from the terminal.  */
-      if (!from_tty || query ("Delete all environment variables? "))
+      if (!from_tty || query (_("Delete all environment variables? ")))
        {
          free_environ (inferior_environ);
          inferior_environ = make_environ ();
index 7ea00e0d36d2ba56bd32aead8329741da8830682..c2537350a5186d8e3ed3f0b6be7765ca012aaa08 100644 (file)
@@ -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.  */
 \f
index e69c5693b07f47092a36987290e9f3c95b18d29a..5d2e811f2d820052d36dae0ed58f61640ce3a39c 100644 (file)
@@ -144,7 +144,7 @@ child_resume (ptid_t ptid, int step, enum target_signal signal)
   errno = 0;
   ptrace (request, pid, (PTRACE_TYPE_ARG3)1, target_signal_to_host (signal));
   if (errno != 0)
-    perror_with_name ("ptrace");
+    perror_with_name (("ptrace"));
 }
 #endif /* DEPRECATED_CHILD_RESUME */
 \f
@@ -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 09be71032171d4ec5060be4c1525acd25f86a576..7ab427cc12d35fb191ab54da4a7b6c87e6ee8e3a 100644 (file)
@@ -1250,7 +1250,7 @@ handle_inferior_event (struct execution_control_state *ecs)
       break;
 
     default:
-      internal_error (__FILE__, __LINE__, "bad switch");
+      internal_error (__FILE__, __LINE__, _("bad switch"));
     }
   ecs->infwait_state = infwait_normal_state;
 
@@ -2904,7 +2904,7 @@ print_stop_reason (enum inferior_stop_reason stop_reason, int stop_info)
       break;
     default:
       internal_error (__FILE__, __LINE__,
-                     "print_stop_reason: unrecognized enum value");
+                     _("print_stop_reason: unrecognized enum value"));
       break;
     }
 }
@@ -3045,7 +3045,7 @@ normal_stop (void)
              do_frame_printing = 0;
              break;
            default:
-             internal_error (__FILE__, __LINE__, "Unknown value.");
+             internal_error (__FILE__, __LINE__, _("Unknown value."));
            }
          /* For mi, have the same behavior every time we stop:
             print everything but the source line. */
@@ -3182,7 +3182,7 @@ handle_command (char *args, int from_tty)
 
   if (args == NULL)
     {
-      error_no_arg ("signal to handle");
+      error_no_arg (_("signal to handle"));
     }
 
   /* Allocate and zero an array of flags for which signals to handle. */
index 1d0b2861d029a18ac2b53eda8f4a3ab97efdda67..f7e919248f3e0fd55a8623528fd4614c30c20184 100644 (file)
@@ -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 669b041b0dad3e91007989d0b247ea6c099c5fc4..dc6574519b932af2d2f4692aae3a6be6151f2852 100644 (file)
@@ -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 e10ac6065b21cb4c94e8851c797f1e9386b15e79..648282390d439c1cc99ab2ac414534bdb1794ca3 100644 (file)
@@ -565,7 +565,7 @@ binop_result_type (struct value *v1, struct value *v2)
       return l1 > l2 ? VALUE_TYPE (v1) : VALUE_TYPE (v2);
       break;
     }
-  internal_error (__FILE__, __LINE__, "failed internal consistency check");
+  internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
   return (struct type *) 0;    /* For lint */
 }
 
@@ -884,7 +884,7 @@ type_error (const char *string,...)
       fprintf_filtered (gdb_stderr, "\n");
       break;
     default:
-      internal_error (__FILE__, __LINE__, "bad switch");
+      internal_error (__FILE__, __LINE__, _("bad switch"));
     }
   va_end (args);
 }
@@ -910,7 +910,7 @@ range_error (const char *string,...)
       fprintf_filtered (gdb_stderr, "\n");
       break;
     default:
-      internal_error (__FILE__, __LINE__, "bad switch");
+      internal_error (__FILE__, __LINE__, _("bad switch"));
     }
   va_end (args);
 }
@@ -988,7 +988,7 @@ add_language (const struct language_defn *lang)
     {
       fprintf_unfiltered (gdb_stderr, "Magic number of %s language struct wrong\n",
                          lang->la_name);
-      internal_error (__FILE__, __LINE__, "failed internal consistency check");
+      internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
     }
 
   if (!languages)
index 808f061b7b53465f0e2adfb4f6e4da3849dbf237..cae90677fd8bfa22c6d47c771fb130ac2e78d70b 100644 (file)
@@ -534,7 +534,7 @@ decode_line_2 (struct symbol *sym_arr[], int nelts, int funfirstline,
   args = command_line_input (prompt, 0, "overload-choice");
 
   if (args == 0 || *args == 0)
-    error_no_arg ("one or more choice numbers");
+    error_no_arg (_("one or more choice numbers"));
 
   i = 0;
   while (*args)
index 8500493247a573ff689cdd99309eedcedd50eded..70df9eab1595abf6c3b6b4216e23e5ae8fd45ffb 100644 (file)
@@ -193,14 +193,14 @@ linux_test_for_tracefork (int original_pid)
 
   child_pid = fork ();
   if (child_pid == -1)
-    perror_with_name ("linux_test_for_tracefork: fork");
+    perror_with_name (("fork"));
 
   if (child_pid == 0)
     linux_tracefork_child ();
 
   ret = my_waitpid (child_pid, &status, 0);
   if (ret == -1)
-    perror_with_name ("linux_test_for_tracefork: waitpid");
+    perror_with_name (("waitpid"));
   else if (ret != child_pid)
     error (_("linux_test_for_tracefork: waitpid: unexpected result %d."), ret);
   if (! WIFSTOPPED (status))
@@ -479,13 +479,13 @@ linux_handle_extended_wait (int pid, int status,
                           (event == PTRACE_EVENT_CLONE) ? __WCLONE : 0);
          } while (ret == -1 && errno == EINTR);
          if (ret == -1)
-           perror_with_name ("waiting for new child");
+           perror_with_name (_("waiting for new child"));
          else if (ret != new_pid)
            internal_error (__FILE__, __LINE__,
-                           "wait returned unexpected PID %d", ret);
+                           _("wait returned unexpected PID %d"), ret);
          else if (!WIFSTOPPED (status) || WSTOPSIG (status) != SIGSTOP)
            internal_error (__FILE__, __LINE__,
-                           "wait returned unexpected status 0x%x", status);
+                           _("wait returned unexpected status 0x%x"), status);
        }
 
       if (event == PTRACE_EVENT_FORK)
@@ -517,7 +517,7 @@ linux_handle_extended_wait (int pid, int status,
     }
 
   internal_error (__FILE__, __LINE__,
-                 "unknown ptrace event %d", event);
+                 _("unknown ptrace event %d"), event);
 }
 
 \f
index 7b35087319ee30585a8747205047beb1bbbd0be3..a8c5031cf844ac724b1ccde029531f6d4343da80 100644 (file)
@@ -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"));
 }
 \f
 
@@ -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 ed62a45befef768a9303f705d871397d5ea44f1c..be1845ee548f1bf2f9109b0a790ba762fc461d32 100644 (file)
@@ -125,7 +125,7 @@ m68k_register_name (int regnum)
   if (regnum < 0 ||
       regnum >= sizeof (register_names) / sizeof (register_names[0]))
     internal_error (__FILE__, __LINE__,
-                   "m68k_register_name: illegal register number %d", regnum);
+                   _("m68k_register_name: illegal register number %d"), regnum);
   else
     return register_names[regnum];
 }
@@ -239,7 +239,7 @@ m68k_extract_return_value (struct type *type, struct regcache *regcache,
     }
   else
     internal_error (__FILE__, __LINE__,
-                   "Cannot extract return value of %d bytes long.", len);
+                   _("Cannot extract return value of %d bytes long."), len);
 }
 
 static void
@@ -279,7 +279,7 @@ m68k_store_return_value (struct type *type, struct regcache *regcache,
     }
   else
     internal_error (__FILE__, __LINE__,
-                   "Cannot store return value of %d bytes long.", len);
+                   _("Cannot store return value of %d bytes long."), len);
 }
 
 static void
@@ -1061,7 +1061,7 @@ m68k_get_longjmp_target (CORE_ADDR *pc)
   if (tdep->jb_pc < 0)
     {
       internal_error (__FILE__, __LINE__,
-                     "m68k_get_longjmp_target: not implemented");
+                     _("m68k_get_longjmp_target: not implemented"));
       return 0;
     }
 
index d84d85cae09546a6df5cdc4ada547a661b145b34..9e1366ddbbd493c6ccf5036d821db9eb505112aa 100644 (file)
@@ -116,7 +116,7 @@ m68kbsd_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"));
 
       m68kbsd_supply_gregset (current_regcache, &regs);
     }
@@ -127,7 +127,7 @@ m68kbsd_fetch_inferior_registers (int regnum)
 
       if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
                  (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
-       perror_with_name ("Couldn't get floating point status");
+       perror_with_name (_("Couldn't get floating point status"));
 
       m68kbsd_supply_fpregset (current_regcache, &fpregs);
     }
@@ -145,13 +145,13 @@ m68kbsd_store_inferior_registers (int regnum)
 
       if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
                   (PTRACE_TYPE_ARG3) &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 regnum)
 
       if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
                  (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
-       perror_with_name ("Couldn't get floating point status");
+       perror_with_name (_("Couldn't get floating point status"));
 
       m68kbsd_collect_fpregset (current_regcache, &fpregs, regnum);
 
       if (ptrace (PT_SETFPREGS, PIDGET (inferior_ptid),
                  (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
-       perror_with_name ("Couldn't write floating point status");
+       perror_with_name (_("Couldn't write floating point status"));
     }
 }
 \f
index 9729d89b809d53b353bd7c0d2c8b1cd6f5b3c64f..c135accce47405f63782f6fd4512a48e912ac9e2 100644 (file)
@@ -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);
 }
 \f
 /* Interpreting register set info found in core files.  */
index 472eb76d5b8a90d5ba67f87b630525588979bbbd..2a2b28e6da153b43a640129092a1554cd9dfffb2 100644 (file)
@@ -71,7 +71,7 @@ m88kbsd_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"));
 
   m88kbsd_supply_gregset (current_regcache, &regs);
 }
@@ -86,13 +86,13 @@ m88kbsd_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"));
 
   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"));
 }
 \f
 
index 2c7b6823661aec6c33e9b783532b5666c3d9bc8b..2ca341a2803c129f12f558c0a51c349aac887428 100644 (file)
@@ -616,7 +616,7 @@ append_tokens_without_splicing (struct macro_buffer *dest,
   /* As far as I know, there's no case where inserting a space isn't
      enough to prevent a splice.  */
   internal_error (__FILE__, __LINE__,
-                  "unable to avoid splicing tokens during macro expansion");
+                  _("unable to avoid splicing tokens during macro expansion"));
 }
 
 
@@ -991,7 +991,7 @@ expand (const char *id,
       return 1;
     }
   else
-    internal_error (__FILE__, __LINE__, "bad macro definition kind");
+    internal_error (__FILE__, __LINE__, _("bad macro definition kind"));
 }
 
 
index 19557d7dc082296c243f510b32e02080706af636..ed3ea8362f9d8b22358a25c66c38dfa614fe15b6 100644 (file)
@@ -70,8 +70,8 @@ sal_macro_scope (struct symtab_and_line sal)
       ms->line = -1;
 
       complaint (&symfile_complaints,
-                 "symtab found for `%s', but that file\n"
-                 "is not covered in the compilation unit's macro information",
+                 _("symtab found for `%s', but that file\n"
+                 "is not covered in the compilation unit's macro information"),
                  sal.symtab->filename);
     }
 
index 56ee2a4c2844d3f8940848b1878d208fa208dbc1..08d931a2f4fe4d584a235959fd3282de710a32af 100644 (file)
@@ -445,7 +445,7 @@ macro_include (struct macro_source_file *source,
 
          First, squawk.  */
       complaint (&symfile_complaints,
-                "both `%s' and `%s' allegedly #included at %s:%d", included,
+                _("both `%s' and `%s' allegedly #included at %s:%d"), included,
                 (*link)->filename, source->filename, line);
 
       /* Now, choose a new, unoccupied line number for this
@@ -704,7 +704,7 @@ check_for_redefinition (struct macro_source_file *source, int line,
       if (! same)
         {
          complaint (&symfile_complaints,
-                    "macro `%s' redefined at %s:%d; original definition at %s:%d",
+                    _("macro `%s' redefined at %s:%d; original definition at %s:%d"),
                     name, source->filename, line,
                     found_key->start_file->filename, found_key->start_line);
         }
@@ -793,7 +793,7 @@ macro_undef (struct macro_source_file *source, int line,
       if (key->end_file)
         {
          complaint (&symfile_complaints,
-                    "macro '%s' is #undefined twice, at %s:%d and %s:%d", name,
+                    _("macro '%s' is #undefined twice, at %s:%d and %s:%d"), name,
                     source->filename, line, key->end_file->filename,
                     key->end_line);
         }
@@ -810,7 +810,7 @@ macro_undef (struct macro_source_file *source, int line,
          ignore it too.  */
 #if 0
       complaint (&symfile_complaints,
-                "no definition for macro `%s' in scope to #undef at %s:%d",
+                _("no definition for macro `%s' in scope to #undef at %s:%d"),
                 name, source->filename, line);
 #endif
     }
index 67caf38c5cd04b44505742da95fd11fb0056e45f..bad2e4d9969d7c0ac38f252cd627c6d5008f1e76 100644 (file)
@@ -412,7 +412,7 @@ maintenance_print_architecture (char *args, int from_tty)
     {
       struct ui_file *file = gdb_fopen (args, "w");
       if (file == NULL)
-       perror_with_name ("maintenance print architecture");
+       perror_with_name (_("maintenance print architecture"));
       gdbarch_dump (current_gdbarch, file);    
       ui_file_delete (file);
     }
index 41cfec0571142c4c632e194df79cf9052f872444..25a3e6bd037fc211f076088ba0c5b033910e2938 100644 (file)
@@ -124,39 +124,39 @@ struct symloc
 static void
 index_complaint (const char *arg1)
 {
-  complaint (&symfile_complaints, "bad aux index at symbol %s", arg1);
+  complaint (&symfile_complaints, _("bad aux index at symbol %s"), arg1);
 }
 
 static void
 unknown_ext_complaint (const char *arg1)
 {
-  complaint (&symfile_complaints, "unknown external symbol %s", arg1);
+  complaint (&symfile_complaints, _("unknown external symbol %s"), arg1);
 }
 
 static void
 basic_type_complaint (int arg1, const char *arg2)
 {
-  complaint (&symfile_complaints, "cannot map ECOFF basic type 0x%x for %s",
+  complaint (&symfile_complaints, _("cannot map ECOFF basic type 0x%x for %s"),
             arg1, arg2);
 }
 
 static void
 bad_tag_guess_complaint (const char *arg1)
 {
-  complaint (&symfile_complaints, "guessed tag type of %s incorrectly", arg1);
+  complaint (&symfile_complaints, _("guessed tag type of %s incorrectly"), arg1);
 }
 
 static void
 bad_rfd_entry_complaint (const char *arg1, int arg2, int arg3)
 {
-  complaint (&symfile_complaints, "bad rfd entry for %s: file %d, index %d",
+  complaint (&symfile_complaints, _("bad rfd entry for %s: file %d, index %d"),
             arg1, arg2, arg3);
 }
 
 static void
 unexpected_type_code_complaint (const char *arg1)
 {
-  complaint (&symfile_complaints, "unexpected type code for %s", arg1);
+  complaint (&symfile_complaints, _("unexpected type code for %s"), arg1);
 }
 
 /* Macros and extra defs */
@@ -740,7 +740,7 @@ parse_symbol (SYMR *sh, union aux_ext *ax, char *ext_sh, int bigend,
                     break;
                   default:
                     complaint (&symfile_complaints,
-                               "unknown symbol type 0x%x", sh->st);
+                               _("unknown symbol type 0x%x"), sh->st);
                     break;
                 }
             }
@@ -957,7 +957,7 @@ parse_symbol (SYMR *sh, union aux_ext *ax, char *ext_sh, int bigend,
 
              default:
                complaint (&symfile_complaints,
-                          "declaration block contains unhandled symbol type %d",
+                          _("declaration block contains unhandled symbol type %d"),
                           tsym.st);
              }
          }
@@ -1245,7 +1245,7 @@ parse_symbol (SYMR *sh, union aux_ext *ax, char *ext_sh, int bigend,
        }
       else
        complaint (&symfile_complaints,
-                  "stEnd with storage class %d not handled", sh->sc);
+                  _("stEnd with storage class %d not handled"), sh->sc);
 
       pop_parse_stack ();      /* restore previous lexical context */
       break;
@@ -1357,7 +1357,7 @@ parse_symbol (SYMR *sh, union aux_ext *ax, char *ext_sh, int bigend,
     case stConstant:
       break;                   /* constant */
     default:
-      complaint (&symfile_complaints, "unknown symbol type 0x%x", sh->st);
+      complaint (&symfile_complaints, _("unknown symbol type 0x%x"), sh->st);
       break;
     }
 
@@ -1498,7 +1498,7 @@ parse_type (int fd, union aux_ext *ax, unsigned int aux_index, int *bs,
          else if (t->bt == btEnum)
            ;
          else
-           complaint (&symfile_complaints, "can't handle TIR fBitfield for %s",
+           complaint (&symfile_complaints, _("can't handle TIR fBitfield for %s"),
                       sym_name);
        }
       else
@@ -1528,7 +1528,7 @@ parse_type (int fd, union aux_ext *ax, unsigned int aux_index, int *bs,
       if (rf == -1)
        {
          complaint (&symfile_complaints,
-                    "unable to cross ref btIndirect for %s", sym_name);
+                    _("unable to cross ref btIndirect for %s"), sym_name);
          return mdebug_type_int;
        }
       xref_fh = get_rfd (fd, rf);
@@ -1645,7 +1645,7 @@ parse_type (int fd, union aux_ext *ax, unsigned int aux_index, int *bs,
       if (tp == (struct type *) NULL)
        {
          complaint (&symfile_complaints,
-                    "unable to cross ref btTypedef for %s", sym_name);
+                    _("unable to cross ref btTypedef for %s"), sym_name);
          tp = mdebug_type_int;
        }
     }
@@ -1695,7 +1695,7 @@ parse_type (int fd, union aux_ext *ax, unsigned int aux_index, int *bs,
 
   /* Complain for illegal continuations due to corrupt aux entries.  */
   if (t->continued)
-    complaint (&symfile_complaints, "illegal TIR continued for %s", sym_name);
+    complaint (&symfile_complaints, _("illegal TIR continued for %s"), sym_name);
 
   return tp;
 }
@@ -1758,7 +1758,7 @@ upgrade_type (int fd, struct type **tpp, int tq, union aux_ext *ax, int bigend,
       if (TYPE_CODE (indx) != TYPE_CODE_INT)
        {
          complaint (&symfile_complaints,
-                    "illegal array index type for %s, assuming int", sym_name);
+                    _("illegal array index type for %s, assuming int"), sym_name);
          indx = mdebug_type_int;
        }
 
@@ -1808,7 +1808,7 @@ upgrade_type (int fd, struct type **tpp, int tq, union aux_ext *ax, int bigend,
       return 0;
 
     default:
-      complaint (&symfile_complaints, "unknown type qualifier 0x%x", tq);
+      complaint (&symfile_complaints, _("unknown type qualifier 0x%x"), tq);
       return 0;
     }
 }
@@ -1844,7 +1844,7 @@ parse_procedure (PDR *pr, struct symtab *search_symtab,
          /* Static procedure at address pr->adr.  Sigh. */
          /* FIXME-32x64.  assuming pr->adr fits in long.  */
          complaint (&symfile_complaints,
-                    "can't handle PDR for static proc at 0x%lx",
+                    _("can't handle PDR for static proc at 0x%lx"),
                     (unsigned long) pr->adr);
          return;
        }
@@ -1905,7 +1905,7 @@ parse_procedure (PDR *pr, struct symtab *search_symtab,
     }
   else
     {
-      complaint (&symfile_complaints, "PDR for %s, but no symbol", sh_name);
+      complaint (&symfile_complaints, _("PDR for %s, but no symbol"), sh_name);
 #if 1
       return;
 #else
@@ -1954,7 +1954,7 @@ parse_procedure (PDR *pr, struct symtab *search_symtab,
       if (e->pdr.pcreg == 0
          && strcmp (sh_name, "setjmp") == 0)
        {
-         complaint (&symfile_complaints, "fixing bad setjmp PDR from libc");
+         complaint (&symfile_complaints, _("fixing bad setjmp PDR from libc"));
 #ifdef RA_REGNUM
          e->pdr.pcreg = RA_REGNUM;
 #else
@@ -2144,7 +2144,7 @@ parse_lines (FDR *fh, PDR *pr, struct linetable *lt, int maxlines,
          if (lt->nitems >= maxlines)
            {
              complaint (&symfile_complaints,
-                        "guessed size of linetable for %s incorrectly",
+                        _("guessed size of linetable for %s incorrectly"),
                         fdr_name (fh));
              break;
            }
@@ -2158,7 +2158,7 @@ static void
 function_outside_compilation_unit_complaint (const char *arg1)
 {
   complaint (&symfile_complaints,
-            "function `%s' appears to be defined outside of all compilation units",
+            _("function `%s' appears to be defined outside of all compilation units"),
             arg1);
 }
 
@@ -2339,14 +2339,14 @@ parse_partial_symbols (struct objfile *objfile)
       if (ext_in->ifd < -1 || ext_in->ifd >= hdr->ifdMax)
        {
          complaint (&symfile_complaints,
-                    "bad ifd for external symbol: %d (max %ld)", ext_in->ifd,
+                    _("bad ifd for external symbol: %d (max %ld)"), ext_in->ifd,
                     hdr->ifdMax);
          continue;
        }
       if (ext_in->asym.iss < 0 || ext_in->asym.iss >= hdr->issExtMax)
        {
          complaint (&symfile_complaints,
-                    "bad iss for external symbol: %ld (max %ld)",
+                    _("bad iss for external symbol: %ld (max %ld)"),
                     ext_in->asym.iss, hdr->issExtMax);
          continue;
        }
@@ -3165,7 +3165,7 @@ parse_partial_symbols (struct objfile *objfile)
                           a backslash.  */
 
                        complaint (&symfile_complaints,
-                                  "unknown symbol descriptor `%c'", p[1]);
+                                  _("unknown symbol descriptor `%c'"), p[1]);
 
                        /* Ignore it; perhaps it is an extension that we don't
                           know about.  */
@@ -3226,7 +3226,7 @@ parse_partial_symbols (struct objfile *objfile)
                  default:
                    /* If we haven't found it yet, ignore it.  It's probably some
                       new type we don't know about yet.  */
-                   complaint (&symfile_complaints, "unknown symbol type %s",
+                   complaint (&symfile_complaints, _("unknown symbol type %s"),
                               hex_string (type_code)); /*CUR_SYMBOL_TYPE*/
                    continue;
                  }
@@ -3323,7 +3323,7 @@ parse_partial_symbols (struct objfile *objfile)
                    {
                      /* This should not happen either... FIXME.  */
                      complaint (&symfile_complaints,
-                                "bad proc end in aux found from symbol %s",
+                                _("bad proc end in aux found from symbol %s"),
                                 name);
                      new_sdx = cur_sdx + 1;    /* Don't skip backward */
                    }
@@ -3438,7 +3438,7 @@ parse_partial_symbols (struct objfile *objfile)
                    {
                      /* This happens with the Ultrix kernel. */
                      complaint (&symfile_complaints,
-                                "bad aux index at block symbol %s", name);
+                                _("bad aux index at block symbol %s"), name);
                      new_sdx = cur_sdx + 1;    /* Don't skip backward */
                    }
                  cur_sdx = new_sdx;
@@ -3458,9 +3458,9 @@ parse_partial_symbols (struct objfile *objfile)
                default:
                  /* Both complaints are valid:  one gives symbol name,
                     the other the offending symbol type.  */
-                 complaint (&symfile_complaints, "unknown local symbol %s",
+                 complaint (&symfile_complaints, _("unknown local symbol %s"),
                             name);
-                 complaint (&symfile_complaints, "with type %d", sh.st);
+                 complaint (&symfile_complaints, _("with type %d"), sh.st);
                  cur_sdx++;
                  continue;
                }
@@ -3486,7 +3486,7 @@ parse_partial_symbols (struct objfile *objfile)
              CORE_ADDR svalue;
 
              if (ext_ptr->ifd != f_idx)
-               internal_error (__FILE__, __LINE__, "failed internal consistency check");
+               internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
              psh = &ext_ptr->asym;
 
              /* Do not add undefined symbols to the partial symbol table.  */
@@ -3619,7 +3619,7 @@ parse_partial_symbols (struct objfile *objfile)
                          &rh);
          if (rh < 0 || rh >= hdr->ifdMax)
            {
-             complaint (&symfile_complaints, "bad file number %ld", rh);
+             complaint (&symfile_complaints, _("bad file number %ld"), rh);
              continue;
            }
 
@@ -3926,7 +3926,7 @@ psymtab_to_symtab_1 (struct partial_symtab *pst, char *filename)
            /* These are generated by gcc-2.x, do not complain */
            ;
          else
-           complaint (&symfile_complaints, "unknown stabs symbol %s", name);
+           complaint (&symfile_complaints, _("unknown stabs symbol %s"), name);
        }
 
       if (! last_symtab_ended)
@@ -4282,7 +4282,7 @@ cross_ref (int fd, union aux_ext *ax, struct type **tpp, enum type_code type_cod
                                      &tir);
          if (tir.tq0 != tqNil)
            complaint (&symfile_complaints,
-                      "illegal tq0 in forward typedef for %s", sym_name);
+                      _("illegal tq0 in forward typedef for %s"), sym_name);
          switch (tir.bt)
            {
            case btVoid:
@@ -4320,7 +4320,7 @@ cross_ref (int fd, union aux_ext *ax, struct type **tpp, enum type_code type_cod
 
            default:
              complaint (&symfile_complaints,
-                        "illegal bt %d in forward typedef for %s", tir.bt,
+                        _("illegal bt %d in forward typedef for %s"), tir.bt,
                         sym_name);
              *tpp = init_type (type_code, 0, 0, (char *) NULL,
                                current_objfile);
index db75c28cf01914be0553bb391992d0a398c60f22..47e716e8995c4a3c235bcb4589493eec8f9dc5f5 100644 (file)
@@ -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 4b396257b15a9f3a9fa6c79040a2a279ec5e62c8..50a1ceeea936228bb16b4c97666bfad6298e46f5 100644 (file)
@@ -160,7 +160,7 @@ mi_cmd_break_insert (char *command, char **argv, int argc)
 #endif
     default:
       internal_error (__FILE__, __LINE__,
-                     "mi_cmd_break_insert: Bad switch.");
+                     _("mi_cmd_break_insert: Bad switch."));
     }
   deprecated_set_gdb_event_hooks (old_hooks);
 
index 918676df26df52b4f85b990af10e4cc009a5903a..e17491054b11f1343dc2d26cfb75d62319c14ce5 100644 (file)
@@ -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 aca008640fd5b2094c22b58bc0a4944d2e37936d..1df5e24c3d79fd1ed0718f9770040cdaf0e8c94e 100644 (file)
@@ -65,7 +65,7 @@ mi_console_file_delete (struct ui_file *file)
   struct mi_console_file *mi_console = ui_file_data (file);
   if (mi_console->magic != &mi_console_file_magic)
     internal_error (__FILE__, __LINE__,
-                   "mi_console_file_delete: bad magic number");
+                   _("mi_console_file_delete: bad magic number"));
   xfree (mi_console);
 }
 
@@ -93,7 +93,7 @@ mi_console_raw_packet (void *data,
   struct mi_console_file *mi_console = data;
   if (mi_console->magic != &mi_console_file_magic)
     internal_error (__FILE__, __LINE__,
-                   "mi_console_file_transform: bad magic number");
+                   _("mi_console_file_transform: bad magic number"));
 
   if (length_buf > 0)
     {
@@ -119,7 +119,7 @@ mi_console_file_flush (struct ui_file *file)
   struct mi_console_file *mi_console = ui_file_data (file);
   if (mi_console->magic != &mi_console_file_magic)
     internal_error (__FILE__, __LINE__,
-                   "mi_console_file_flush: bad magic number");
+                   _("mi_console_file_flush: bad magic number"));
   ui_file_put (mi_console->buffer, mi_console_raw_packet, mi_console);
   ui_file_rewind (mi_console->buffer);
 }
index 8d29957a84c3ecfe322deec5a4b2067a59936c04..052a84adafb50960042f919e76019d80ba080808 100644 (file)
@@ -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 2be9d17b3576de6cde47e5932064309da0f2933f..361cf69c6b581092a4a503830e0f142dc3a84125 100644 (file)
@@ -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 f9497eb6297f72543b71e53200ad99d87a9b3fd9..6b621f583837b204ed69e3981b137816077d53e5 100644 (file)
@@ -1188,7 +1188,7 @@ mips_linux_init_abi (struct gdbarch_info info,
        tramp_frame_prepend_unwinder (gdbarch, &mips_linux_n64_rt_sigframe);
        break;
       default:
-       internal_error (__FILE__, __LINE__, "can't handle ABI");
+       internal_error (__FILE__, __LINE__, _("can't handle ABI"));
        break;
     }
 
index b225f737eaf48531ba60e681396d272ae59bf478..608c146b9e911bf8d87c27628807806602f150b6 100644 (file)
@@ -270,7 +270,7 @@ mips_abi_regsize (struct gdbarch *gdbarch)
       case MIPS_ABI_UNKNOWN:
       case MIPS_ABI_LAST:
       default:
-       internal_error (__FILE__, __LINE__, "bad switch");
+       internal_error (__FILE__, __LINE__, _("bad switch"));
       }
   else if (mips_abi_regsize_string == size_64)
     return 8;
@@ -331,7 +331,7 @@ mips_xfer_register (struct regcache *regcache, int reg_num, int length,
       reg_offset = 0;
       break;
     default:
-      internal_error (__FILE__, __LINE__, "bad switch");
+      internal_error (__FILE__, __LINE__, _("bad switch"));
     }
   if (mips_debug)
     fprintf_unfiltered (gdb_stderr,
@@ -522,7 +522,7 @@ mips_register_name (int regno)
     }
   else
     internal_error (__FILE__, __LINE__,
-                   "mips_register_name: bad register number %d", rawnum);
+                   _("mips_register_name: bad register number %d"), rawnum);
 }
 
 /* Return the groups that a MIPS register can be categorised into.  */
@@ -584,7 +584,7 @@ mips_pseudo_register_read (struct gdbarch *gdbarch, struct regcache *regcache,
        regcache_raw_read_part (regcache, rawnum, 4, 4, buf);
     }
   else
-    internal_error (__FILE__, __LINE__, "bad register size");
+    internal_error (__FILE__, __LINE__, _("bad register size"));
 }
 
 static void
@@ -606,7 +606,7 @@ mips_pseudo_register_write (struct gdbarch *gdbarch,
        regcache_raw_write_part (regcache, rawnum, 4, 4, buf);
     }
   else
-    internal_error (__FILE__, __LINE__, "bad register size");
+    internal_error (__FILE__, __LINE__, _("bad register size"));
 }
 
 /* Table to translate MIPS16 register field to actual register number.  */
@@ -694,7 +694,7 @@ mips_register_type (struct gdbarch *gdbarch, int regnum)
            return builtin_type_ieee_double_little;
        case BFD_ENDIAN_UNKNOWN:
        default:
-         internal_error (__FILE__, __LINE__, "bad switch");
+         internal_error (__FILE__, __LINE__, _("bad switch"));
        }
     }
   else if (regnum < NUM_REGS)
@@ -755,7 +755,7 @@ mips_mask_address_p (struct gdbarch_tdep *tdep)
     case AUTO_BOOLEAN_AUTO:
       return tdep->default_mask_address_p;
     default:
-      internal_error (__FILE__, __LINE__, "mips_mask_address_p: bad switch");
+      internal_error (__FILE__, __LINE__, _("mips_mask_address_p: bad switch"));
       return -1;
     }
 }
@@ -778,7 +778,7 @@ show_mask_address (char *cmd, int from_tty, struct cmd_list_element *c)
         mips_mask_address_p (tdep) ? "enabled" : "disabled");
       break;
     default:
-      internal_error (__FILE__, __LINE__, "show_mask_address: bad switch");
+      internal_error (__FILE__, __LINE__, _("show_mask_address: bad switch"));
       break;
     }
 }
@@ -1188,7 +1188,7 @@ unpack_mips16 (CORE_ADDR pc,
        break;
       }
     default:
-      internal_error (__FILE__, __LINE__, "bad switch");
+      internal_error (__FILE__, __LINE__, _("bad switch"));
     }
   upk->offset = offset;
   upk->regx = regx;
@@ -3352,7 +3352,7 @@ mips_o32_return_value (struct gdbarch *gdbarch, struct type *type,
                              0, 4, TARGET_BYTE_ORDER, readbuf, writebuf, 4);
          break;
        default:
-         internal_error (__FILE__, __LINE__, "bad switch");
+         internal_error (__FILE__, __LINE__, _("bad switch"));
        }
       return RETURN_VALUE_REGISTER_CONVENTION;
     }
@@ -3863,8 +3863,8 @@ mips_read_fp_register_double (struct frame_info *frame, int regno,
     {
       if ((regno - mips_regnum (current_gdbarch)->fp0) & 1)
        internal_error (__FILE__, __LINE__,
-                       "mips_read_fp_register_double: bad access to "
-                       "odd-numbered FP register");
+                       _("mips_read_fp_register_double: bad access to "
+                       "odd-numbered FP register"));
 
       /* mips_read_fp_register_single will find the correct 32 bits from
          each register.  */
@@ -4228,7 +4228,7 @@ show_mipsfpu_command (char *args, int from_tty)
       fpu = "absent (none)";
       break;
     default:
-      internal_error (__FILE__, __LINE__, "bad switch");
+      internal_error (__FILE__, __LINE__, _("bad switch"));
     }
   if (mips_fpu_type_auto)
     printf_unfiltered
@@ -4259,7 +4259,7 @@ set_mipsfpu_single_command (char *args, int from_tty)
      instead of relying on globals.  Doing that would let generic code
      handle the search for this specific architecture.  */
   if (!gdbarch_update_p (info))
-    internal_error (__FILE__, __LINE__, "set mipsfpu failed");
+    internal_error (__FILE__, __LINE__, _("set mipsfpu failed"));
 }
 
 static void
@@ -4273,7 +4273,7 @@ set_mipsfpu_double_command (char *args, int from_tty)
      instead of relying on globals.  Doing that would let generic code
      handle the search for this specific architecture.  */
   if (!gdbarch_update_p (info))
-    internal_error (__FILE__, __LINE__, "set mipsfpu failed");
+    internal_error (__FILE__, __LINE__, _("set mipsfpu failed"));
 }
 
 static void
@@ -4287,7 +4287,7 @@ set_mipsfpu_none_command (char *args, int from_tty)
      instead of relying on globals.  Doing that would let generic code
      handle the search for this specific architecture.  */
   if (!gdbarch_update_p (info))
-    internal_error (__FILE__, __LINE__, "set mipsfpu failed");
+    internal_error (__FILE__, __LINE__, _("set mipsfpu failed"));
 }
 
 static void
@@ -4643,7 +4643,7 @@ global_mips_abi (void)
     if (mips_abi_strings[i] == mips_abi_string)
       return (enum mips_abi) i;
 
-  internal_error (__FILE__, __LINE__, "unknown ABI string");
+  internal_error (__FILE__, __LINE__, _("unknown ABI string"));
 }
 
 static struct gdbarch *
@@ -4943,7 +4943,7 @@ mips_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
                                       &floatformat_n32n64_long_double_big);
       break;
     default:
-      internal_error (__FILE__, __LINE__, "unknown ABI in switch");
+      internal_error (__FILE__, __LINE__, _("unknown ABI in switch"));
     }
 
   /* FIXME: jlarmour/2000-04-07: There *is* a flag EF_MIPS_32BIT_MODE
@@ -5162,7 +5162,7 @@ _initialize_mips_tdep (void)
   mips_abi_string = mips_abi_strings[MIPS_ABI_UNKNOWN];
   if (MIPS_ABI_LAST + 1
       != sizeof (mips_abi_strings) / sizeof (mips_abi_strings[0]))
-    internal_error (__FILE__, __LINE__, "mips_abi_strings out of sync");
+    internal_error (__FILE__, __LINE__, _("mips_abi_strings out of sync"));
 
   gdbarch_register (bfd_arch_mips, mips_gdbarch_init, mips_dump_tdep);
 
index d3f1d690f2e6145664da347c88322518e1d69170..56a8608a3ec6c9ef32e09eaaf4cb8790c08c5c54 100644 (file)
@@ -85,7 +85,7 @@ mips64obsd_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"));
 
   mips64obsd_supply_gregset (current_regcache, &regs);
 }
@@ -100,13 +100,13 @@ mips64obsd_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"));
 
   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"));
 }
 \f
 
index c952bb01805627f69f51ece3f7af901d31409067..6e866095c7fc87cd95ceb788361d10044240c081 100644 (file)
@@ -48,7 +48,7 @@ mipsnbsd_fetch_inferior_registers (int regno)
 
       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 regno)
 
       if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
                  (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
-       perror_with_name ("Couldn't get floating point status");
+       perror_with_name (_("Couldn't get floating point status"));
 
       mipsnbsd_supply_fpreg ((char *) &fpregs, regno);
     }
@@ -76,13 +76,13 @@ mipsnbsd_store_inferior_registers (int regno)
 
       if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
                  (PTRACE_TYPE_ARG3) &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 regno)
 
       if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
                  (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
-       perror_with_name ("Couldn't get floating point status");
+       perror_with_name (_("Couldn't get floating point status"));
 
       mipsnbsd_fill_fpreg ((char *) &fpregs, regno);
 
       if (ptrace (PT_SETFPREGS, PIDGET (inferior_ptid),
                  (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
-       perror_with_name ("Couldn't write floating point status");
+       perror_with_name (_("Couldn't write floating point status"));
     }
 }
 \f
index 9dbbbc7a80596813d46ab49a33dc9ca7a46e09ee..03d24020babce085a151571a0c51ed71ad6507cf 100644 (file)
@@ -131,7 +131,7 @@ mn10300_type_align (struct type *type)
       return mn10300_type_align (check_typedef (type));\r
 \r
     default:\r
-      internal_error (__FILE__, __LINE__, "bad switch");\r
+      internal_error (__FILE__, __LINE__, _("bad switch"));\r
     }\r
 }\r
 \r
@@ -204,7 +204,7 @@ mn10300_store_return_value (struct type *type,
     }\r
   else\r
     internal_error (__FILE__, __LINE__,\r
-                   "Cannot store return value %d bytes long.", len);\r
+                   _("Cannot store return value %d bytes long."), len);\r
 }\r
 \r
 /* MVS note deprecated.  */\r
@@ -238,7 +238,7 @@ mn10300_extract_return_value (struct type *type,
     }\r
   else\r
     internal_error (__FILE__, __LINE__,\r
-                   "Cannot extract return value %d bytes long.", len);\r
+                   _("Cannot extract return value %d bytes long."), len);\r
 }\r
 \r
 static char *\r
@@ -481,7 +481,7 @@ mn10300_gdbarch_init (struct gdbarch_info info,
       break;\r
     default:\r
       internal_error (__FILE__, __LINE__,\r
-                     "mn10300_gdbarch_init: Unknown mn10300 variant");\r
+                     _("mn10300_gdbarch_init: Unknown mn10300 variant"));\r
       break;\r
     }\r
 \r
index 76971d227eefa412091dd62dcecd8f6f81f636e7..81c4876cd302fbe642c954d791eef62ee8ae9b54 100644 (file)
@@ -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 0f7b3468d17a2d3392c3e96a65e5677b7361972d..ac67ad89e3a72bb73398e3a9b74fe4e7eeaf5a89 100644 (file)
@@ -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 3179183d85a5837fd43f6bdaf54084bfd2a2d236..1c035d6beeb18f848e732af6541e7985587cf8f6 100644 (file)
@@ -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 315de9a911e815e0aea7ef8305072eb0d97363c5..7fa2e8922c47c99a45063a80c94496a0334b74aa 100644 (file)
@@ -305,7 +305,7 @@ put_objfile_before (struct objfile *objfile, struct objfile *before_this)
     }
   
   internal_error (__FILE__, __LINE__,
-                 "put_objfile_before: before objfile not in list");
+                 _("put_objfile_before: before objfile not in list"));
 }
 
 /* Put OBJFILE at the front of the list.  */
@@ -357,7 +357,7 @@ unlink_objfile (struct objfile *objfile)
     }
 
   internal_error (__FILE__, __LINE__,
-                 "unlink_objfile: objfile already unlinked");
+                 _("unlink_objfile: objfile already unlinked"));
 }
 
 
index d0c11d8ff7c40777211558364f83cff4fc946526..ec4d2e2b168bb182e1639680754063a26ccd0ed1 100644 (file)
@@ -624,17 +624,17 @@ extern void *objfile_data (struct objfile *objfile,
 
 #define SECT_OFF_DATA(objfile) \
      ((objfile->sect_index_data == -1) \
-      ? (internal_error (__FILE__, __LINE__, "sect_index_data not initialized"), -1) \
+      ? (internal_error (__FILE__, __LINE__, _("sect_index_data not initialized")), -1) \
       : objfile->sect_index_data)
 
 #define SECT_OFF_RODATA(objfile) \
      ((objfile->sect_index_rodata == -1) \
-      ? (internal_error (__FILE__, __LINE__, "sect_index_rodata not initialized"), -1) \
+      ? (internal_error (__FILE__, __LINE__, _("sect_index_rodata not initialized")), -1) \
       : objfile->sect_index_rodata)
 
 #define SECT_OFF_TEXT(objfile) \
      ((objfile->sect_index_text == -1) \
-      ? (internal_error (__FILE__, __LINE__, "sect_index_text not initialized"), -1) \
+      ? (internal_error (__FILE__, __LINE__, _("sect_index_text not initialized")), -1) \
       : objfile->sect_index_text)
 
 /* Sometimes the .bss section is missing from the objfile, so we don't
index 3e79a427f20f8efd00e686d4dacfe86eec2763ff..cda20e87c95d6e7ecb2fb8736b7d2d10e18d1d20 100644 (file)
--- a/gdb/ocd.c
+++ b/gdb/ocd.c
@@ -746,7 +746,7 @@ readchar (int timeout)
     case SERIAL_EOF:
       error (_("Remote connection closed"));
     case SERIAL_ERROR:
-      perror_with_name ("Remote communication error");
+      perror_with_name (_("Remote communication error"));
     case SERIAL_TIMEOUT:
     default:
       return ch;
@@ -786,7 +786,7 @@ ocd_put_packet (unsigned char *buf, int len)
 
   *packet_ptr++ = -checksum;
   if (serial_write (ocd_desc, packet, packet_ptr - packet))
-    perror_with_name ("output_packet: write failed");
+    perror_with_name (_("output_packet: write failed"));
 }
 
 /* Get a packet from the OCD device.  Timeout is only enforced for the
index ea84456cc7bd5e27930c2de51c23ba3edf7af502..5014edd5cb39526b2d343814fc653c1fdaf78d32 100644 (file)
@@ -117,9 +117,9 @@ gdbarch_register_osabi (enum bfd_architecture arch, unsigned long machine,
     {
       internal_error
        (__FILE__, __LINE__,
-        "gdbarch_register_osabi: An attempt to register a handler for "
+        _("gdbarch_register_osabi: An attempt to register a handler for "
          "OS ABI \"%s\" for architecture %s was made.  The handler will "
-        "not be registered",
+        "not be registered"),
         gdbarch_osabi_name (osabi),
         bfd_printable_arch_mach (arch, machine));
       return;
@@ -135,8 +135,8 @@ gdbarch_register_osabi (enum bfd_architecture arch, unsigned long machine,
        {
          internal_error
            (__FILE__, __LINE__,
-            "gdbarch_register_osabi: A handler for OS ABI \"%s\" "
-            "has already been registered for architecture %s",
+            _("gdbarch_register_osabi: A handler for OS ABI \"%s\" "
+            "has already been registered for architecture %s"),
             gdbarch_osabi_name (osabi),
             arch_info->printable_name);
          /* If user wants to continue, override previous definition.  */
@@ -233,8 +233,8 @@ gdbarch_lookup_osabi (bfd *abfd)
            {
              internal_error
                (__FILE__, __LINE__,
-                "gdbarch_lookup_osabi: invalid OS ABI (%d) from sniffer "
-                "for architecture %s flavour %d",
+                _("gdbarch_lookup_osabi: invalid OS ABI (%d) from sniffer "
+                "for architecture %s flavour %d"),
                 (int) osabi,
                 bfd_printable_arch_mach (bfd_get_arch (abfd), 0),
                 (int) bfd_get_flavour (abfd));
@@ -252,9 +252,9 @@ gdbarch_lookup_osabi (bfd *abfd)
                    {
                      internal_error
                        (__FILE__, __LINE__,
-                        "gdbarch_lookup_osabi: multiple %sspecific OS ABI "
+                        _("gdbarch_lookup_osabi: multiple %sspecific OS ABI "
                         "match for architecture %s flavour %d: first "
-                        "match \"%s\", second match \"%s\"",
+                        "match \"%s\", second match \"%s\""),
                         match_specific ? "" : "non-",
                         bfd_printable_arch_mach (bfd_get_arch (abfd), 0),
                         (int) bfd_get_flavour (abfd),
@@ -447,8 +447,8 @@ generic_elf_osabi_sniff_abi_tag_sections (bfd *abfd, asection *sect, void *obj)
              break;
 
            default:
-             internal_error (__FILE__, __LINE__, "\
-generic_elf_osabi_sniff_abi_tag_sections: unknown OS number %d",
+             internal_error (__FILE__, __LINE__, _("\
+generic_elf_osabi_sniff_abi_tag_sections: unknown OS number %d"),
                              abi_tag);
            }
          return;
@@ -585,7 +585,7 @@ set_osabi (char *args, int from_tty, struct cmd_list_element *c)
          }
       if (i == GDB_OSABI_INVALID)
        internal_error (__FILE__, __LINE__,
-                       "Invalid OS ABI \"%s\" passed to command handler.",
+                       _("Invalid OS ABI \"%s\" passed to command handler."),
                        set_osabi_string);
     }
 
@@ -593,7 +593,7 @@ set_osabi (char *args, int from_tty, struct cmd_list_element *c)
      graceful here.  */
   gdbarch_info_init (&info);
   if (! gdbarch_update_p (info))
-    internal_error (__FILE__, __LINE__, "Updating OS ABI failed.");
+    internal_error (__FILE__, __LINE__, _("Updating OS ABI failed."));
 }
 
 static void
@@ -621,7 +621,7 @@ _initialize_gdb_osabi (void)
   if (strcmp (gdb_osabi_names[GDB_OSABI_INVALID], "<invalid>") != 0)
     internal_error
       (__FILE__, __LINE__,
-       "_initialize_gdb_osabi: gdb_osabi_names[] is inconsistent");
+       _("_initialize_gdb_osabi: gdb_osabi_names[] is inconsistent"));
 
   /* Register a generic sniffer for ELF flavoured files.  */
   gdbarch_register_osabi_sniffer (bfd_arch_unknown,
index 28e2257463da87a683469a23006a8c31baddd46c..da80b99c339f11964aa948b4edb44e286af41b06 100644 (file)
@@ -1025,7 +1025,7 @@ parse_exp_in_context (char **stringptr, struct block *block, int comma,
   comma_terminates = comma;
 
   if (lexptr == 0 || *lexptr == 0)
-    error_no_arg ("expression to compute");
+    error_no_arg (_("expression to compute"));
 
   old_chain = make_cleanup (free_funcalls, 0 /*ignore*/);
   funcall_chain = 0;
index 16d2532a72e29ed0e7005e01289a330eabb6220e..94defa9768150529f2c5de6191e570d936b2047d 100644 (file)
@@ -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 9df3e3d126fb66054743090fa5da84b5fd1b35ff..90a99192864401932cef2c498e3be72550369d2d 100644 (file)
@@ -248,7 +248,7 @@ fetch_altivec_register (int tid, int regno)
           have_ptrace_getvrregs = 0;
           return;
         }
-      perror_with_name ("Unable to fetch AltiVec register");
+      perror_with_name (_("Unable to fetch AltiVec register"));
     }
  
   /* VSCR is fetched as a 16 bytes quantity, but it is really 4 bytes
@@ -285,7 +285,7 @@ get_spe_registers (int tid, struct gdb_evrregset_t *evrregset)
             have_ptrace_getsetevrregs = 0;
           else
             /* Anything else needs to be reported.  */
-            perror_with_name ("Unable to fetch SPE registers");
+            perror_with_name (_("Unable to fetch SPE registers"));
         }
     }
 
@@ -411,7 +411,7 @@ fetch_register (int tid, int regno)
     }
   else 
     internal_error (__FILE__, __LINE__,
-                    "fetch_register: unexpected byte order: %d",
+                    _("fetch_register: unexpected byte order: %d"),
                     gdbarch_byte_order (current_gdbarch));
 }
 
@@ -453,7 +453,7 @@ fetch_altivec_registers (int tid)
           have_ptrace_getvrregs = 0;
          return;
        }
-      perror_with_name ("Unable to fetch AltiVec registers");
+      perror_with_name (_("Unable to fetch AltiVec registers"));
     }
   supply_vrregset (&regs);
 }
@@ -528,7 +528,7 @@ store_altivec_register (int tid, int regno)
           have_ptrace_getvrregs = 0;
           return;
         }
-      perror_with_name ("Unable to fetch AltiVec register");
+      perror_with_name (_("Unable to fetch AltiVec register"));
     }
 
   /* VSCR is fetched as a 16 bytes quantity, but it is really 4 bytes
@@ -541,7 +541,7 @@ store_altivec_register (int tid, int regno)
 
   ret = ptrace (PTRACE_SETVRREGS, tid, 0, &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_evrregset_t *evrregset)
             have_ptrace_getsetevrregs = 0;
           else
             /* Anything else needs to be reported.  */
-            perror_with_name ("Unable to set SPE registers");
+            perror_with_name (_("Unable to set SPE registers"));
         }
     }
 }
@@ -733,13 +733,13 @@ store_altivec_registers (int tid)
           have_ptrace_getvrregs = 0;
           return;
         }
-      perror_with_name ("Couldn't get AltiVec registers");
+      perror_with_name (_("Couldn't get AltiVec registers"));
     }
 
   fill_vrregset (&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 481b38ce353167aece70596691c4bc3dc36b3309..7863aca197a99679171b97d7991245d8c58f8b4f 100644 (file)
@@ -142,7 +142,7 @@ ppc_sysv_abi_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
                          memtype = builtin_type_ieee_double_little;
                          break;
                        default:
-                         internal_error (__FILE__, __LINE__, "bad switch");
+                         internal_error (__FILE__, __LINE__, _("bad switch"));
                        }
                      convert_typed_floating (val, type, memval, memtype);
                      write_memory (sp + argoffset, val, len);
index 6fa55d6bc0181ad38b92cd6ee72971c78c2c2fca..064f6028ce1f862c2003a42dd66b10119e80d1fe 100644 (file)
@@ -84,7 +84,7 @@ ppcnbsd_fetch_inferior_registers (int regno)
 
       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 regno)
 
       if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
                  (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
-       perror_with_name ("Couldn't get FP registers");
+       perror_with_name (_("Couldn't get FP registers"));
 
       ppcnbsd_supply_fpreg ((char *) &fpregs, regno);
       if (regno != -1)
@@ -114,13 +114,13 @@ ppcnbsd_store_inferior_registers (int regno)
 
       if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
                  (PTRACE_TYPE_ARG3) &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 regno)
 
       if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
                  (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
-       perror_with_name ("Couldn't get FP registers");
+       perror_with_name (_("Couldn't get FP registers"));
 
       ppcnbsd_fill_fpreg ((char *) &fpregs, regno);
       
       if (ptrace (PT_SETFPREGS, PIDGET (inferior_ptid),
                  (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
-       perror_with_name ("Couldn't set FP registers");
+       perror_with_name (_("Couldn't set FP registers"));
     }
 }
 
index c36c63f11d851616bd98a6a41fa1e5d939a736c7..eac058b304a3b6106756466128f5e7494dd77ff9 100644 (file)
@@ -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"));
 }
 \f
 
index 9b1633188ca982a469f5cd5bb66042812b15f71e..28cb5bd74f952c8384a9f8f70f0614895b85fe9c 100644 (file)
@@ -242,7 +242,7 @@ decode_format (char **string_ptr, int oformat, int osize)
          val.size = osize ? 'h' : osize;
        else
          /* Bad value for TARGET_PTR_BIT */
-         internal_error (__FILE__, __LINE__, "failed internal consistency check");
+         internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
        break;
       case 'f':
        /* Floating point has to be word or giantword.  */
@@ -445,7 +445,7 @@ print_scalar_formatted (const void *valaddr, struct type *type,
       break;
 
     case 0:
-      internal_error (__FILE__, __LINE__, "failed internal consistency check");
+      internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
 
     case 't':
       /* Binary; 't' stands for "two".  */
@@ -1001,7 +1001,7 @@ sym_info (char *arg, int from_tty)
   unsigned int offset;
 
   if (!arg)
-    error_no_arg ("address");
+    error_no_arg (_("address"));
 
   addr = parse_and_eval_address (arg);
   ALL_OBJSECTIONS (objfile, osect)
@@ -1731,7 +1731,7 @@ printf_command (char *arg, int from_tty)
   old_cleanups = make_cleanup (free_current_contents, &val_args);
 
   if (s == 0)
-    error_no_arg ("format-control string and values to print");
+    error_no_arg (_("format-control string and values to print"));
 
   /* Skip white space before format string */
   while (*s == ' ' || *s == '\t')
index 5976624a1b6f1f9f2258634bf169f3f19b8e24c6..5a40e7f53189d2b4d07f77f40684b59dee917b3a 100644 (file)
@@ -3512,7 +3512,7 @@ procfs_attach (char *args, int from_tty)
   int   pid;
 
   if (!args)
-    error_no_arg ("process-id to attach");
+    error_no_arg (_("process-id to attach"));
 
   pid = atoi (args);
   if (pid == getpid ())
@@ -3648,7 +3648,7 @@ do_detach (int signo)
 
   if (signo || (proc_flags (pi) & (PR_STOPPED | PR_ISTOP)))
     if (signo || !(pi->was_stopped) ||
-       query ("Was stopped when attached, make it runnable again? "))
+       query (_("Was stopped when attached, make it runnable again? ")))
       {
        /* Clear any pending signal.  */
        if (!proc_clear_current_fault (pi))
@@ -4912,7 +4912,7 @@ procfs_set_exec_trap (void)
   sysset_t *exitset;
 
   if ((pi = create_procinfo (getpid (), 0)) == NULL)
-    perror_with_name ("procfs: create_procinfo failed in child.");
+    perror_with_name (_("procfs: create_procinfo failed in child."));
 
   if (open_procinfo_files (pi, FD_CTL) == 0)
     {
@@ -5927,7 +5927,7 @@ proc_trace_syscalls (char *args, int from_tty, int entry_or_exit, int mode)
     error (_("you must be debugging a process to use this command."));
 
   if (args == NULL || args[0] == 0)
-    error_no_arg ("system call to trace");
+    error_no_arg (_("system call to trace"));
 
   pi = find_procinfo_or_die (PIDGET (inferior_ptid), 0);
   if (isdigit (args[0]))
index 0fe566a4d73224c37e8cd1126127d83d4d690593..f2a83836e843230cb691d4e54e7b4d518724eb1e 100644 (file)
@@ -1076,7 +1076,7 @@ read_pc_pid (ptid_t ptid)
       pc_val = ADDR_BITS_REMOVE (raw_val);
     }
   else
-    internal_error (__FILE__, __LINE__, "read_pc_pid: Unable to find PC");
+    internal_error (__FILE__, __LINE__, _("read_pc_pid: Unable to find PC"));
 
   inferior_ptid = saved_inferior_ptid;
   return pc_val;
@@ -1095,7 +1095,7 @@ generic_target_write_pc (CORE_ADDR pc, ptid_t ptid)
     write_register_pid (PC_REGNUM, pc, ptid);
   else
     internal_error (__FILE__, __LINE__,
-                   "generic_target_write_pc");
+                   _("generic_target_write_pc"));
 }
 
 void
@@ -1131,7 +1131,7 @@ read_sp (void)
     /* Try SP_REGNUM last: this makes all sorts of [wrong] assumptions
        about the architecture so put it at the end.  */
     return read_register (SP_REGNUM);
-  internal_error (__FILE__, __LINE__, "read_sp: Unable to find SP");
+  internal_error (__FILE__, __LINE__, _("read_sp: Unable to find SP"));
 }
 
 static void
@@ -1166,7 +1166,7 @@ dump_endian_bytes (struct ui_file *file, enum bfd_endian endian,
        fprintf_unfiltered (file, "%02x", buf[i]);
       break;
     default:
-      internal_error (__FILE__, __LINE__, "Bad switch");
+      internal_error (__FILE__, __LINE__, _("Bad switch"));
     }
 }
 
@@ -1373,7 +1373,7 @@ regcache_print (char *args, enum regcache_dump_what what_to_dump)
     {
       struct ui_file *file = gdb_fopen (args, "w");
       if (file == NULL)
-       perror_with_name ("maintenance print architecture");
+       perror_with_name (_("maintenance print architecture"));
       regcache_dump (current_regcache, file, what_to_dump);    
       ui_file_delete (file);
     }
index c20f886a33e55dd9710476a709779b386ac11d98..858ab9d958c3725b2c308f100997c24ccfc7a18e 100644 (file)
@@ -215,7 +215,7 @@ reggroups_dump (struct gdbarch *gdbarch, struct ui_file *file)
                type = "internal";
                break;
              default:
-               internal_error (__FILE__, __LINE__, "bad switch");
+               internal_error (__FILE__, __LINE__, _("bad switch"));
              }
          }
        fprintf_unfiltered (file, " %-10s", type);
@@ -240,7 +240,7 @@ maintenance_print_reggroups (char *args, int from_tty)
     {
       struct ui_file *file = gdb_fopen (args, "w");
       if (file == NULL)
-       perror_with_name ("maintenance print reggroups");
+       perror_with_name (_("maintenance print reggroups"));
       reggroups_dump (current_gdbarch, file);    
       ui_file_delete (file);
     }
index 6c4cdf006de8b6bbe6041dc531313cba41c8667d..afc6d6b506fc5b90d13b2ee93b65504e6b7fd930 100644 (file)
@@ -788,7 +788,7 @@ fetch_regs_from_dump (int (*nextchar) (), char *want)
   int thischar = nextchar ();
 
   if (want == NULL)
-    internal_error (__FILE__, __LINE__, "Register set not selected.");
+    internal_error (__FILE__, __LINE__, _("Register set not selected."));
 
   while (*want)
     {
@@ -877,7 +877,7 @@ fetch_regs_from_dump (int (*nextchar) (), char *want)
                }
 
              else
-               internal_error (__FILE__, __LINE__, "failed internal consistency check");
+               internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
            }
          store_signed_integer (buf,
                                register_size (current_gdbarch, regno),
@@ -2112,7 +2112,7 @@ e7000_wait (ptid_t ptid, struct target_waitstatus *status)
       break;
     default:
       /* Get the user's attention - this should never happen. */
-      internal_error (__FILE__, __LINE__, "failed internal consistency check");
+      internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
     }
 
   return inferior_ptid;
index aa14c19c48aaabf9c7b98e330f7a3acd26d00759..547e37a420e4c2cf623a3829e848b2fa5ee7867d 100644 (file)
@@ -1213,7 +1213,7 @@ mips_request (int cmd,
     {
       if (mips_need_reply)
        internal_error (__FILE__, __LINE__,
-                       "mips_request: Trying to send command before reply");
+                       _("mips_request: Trying to send command before reply"));
       sprintf (buff, "0x0 %c 0x%s 0x%s", cmd, paddr_nz (addr), paddr_nz (data));
       mips_send_packet (buff, 1);
       mips_need_reply = 1;
@@ -1224,7 +1224,7 @@ mips_request (int cmd,
 
   if (!mips_need_reply)
     internal_error (__FILE__, __LINE__,
-                   "mips_request: Trying to get reply before command");
+                   _("mips_request: Trying to get reply before command"));
 
   mips_need_reply = 0;
 
@@ -2540,7 +2540,7 @@ common_breakpoint (int set, CORE_ADDR addr, int len, enum break_type type)
              flags = "f";
              break;
            default:
-             internal_error (__FILE__, __LINE__, "failed internal consistency check");
+             internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
            }
 
          cmd = 'B';
index 8c9288d96ab2fbbc0525e26763d9b77d074f435d..2a60f28fadaf505267086e487e16cd48a172446a 100644 (file)
@@ -495,13 +495,13 @@ send_rdp (char *template,...)
          *pi = get_byte ();
          break;
        default:
-         internal_error (__FILE__, __LINE__, "failed internal consistency check");
+         internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
        }
     }
   va_end (alist);
 
   if (dst != buf)
-    internal_error (__FILE__, __LINE__, "failed internal consistency check");
+    internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
 }
 
 
@@ -1126,7 +1126,7 @@ remote_rdp_open (char *args, int from_tty)
   int not_icebreaker;
 
   if (!args)
-    error_no_arg ("serial port device name");
+    error_no_arg (_("serial port device name"));
 
   baud_rate = 9600;
 
index 06763fa428ade10350aaf39d29a75adca5078eff..d516cdfc5b81d4df2430f8907900e4df1e943994 100644 (file)
@@ -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 1a8302fb59f1c8bb0767f7870d251e001c25302e..04d8cbe4081b0372e994a00b6efc3fa58f7d10d9 100644 (file)
@@ -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 a8d8fb2d5471ac8f56dc59526a8657c8f01f9ba9..47b9ec3581876e256efe624455e10c90e167a592 100644 (file)
@@ -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 8bfa8646e8ea8f45140a04398e6bf6603dfb2d3c..d4775ad631e0016819503e920ee17c9638e161e3 100644 (file)
@@ -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 f5099ade0c7d2480b3302fac714e560ce36b59a9..e127c4c61d37c36a7972b8329a92d0cf1b2733f7 100644 (file)
@@ -477,8 +477,8 @@ set_memory_packet_size (char *args, struct memory_packet_config *config)
   /* Extra checks?  */
   if (fixed_p && !config->fixed_p)
     {
-      if (! query ("The target may not be able to correctly handle a %s\n"
-                  "of %ld bytes. Change the packet size? ",
+      if (! query (_("The target may not be able to correctly handle a %s\n"
+                  "of %ld bytes. Change the packet size? "),
                   config->name, size))
        error (_("Packet size not changed."));
     }
@@ -693,7 +693,7 @@ packet_ok (const char *buf, struct packet_config *config)
          break;
        case PACKET_DISABLE:
          internal_error (__FILE__, __LINE__,
-                         "packet_ok: attempt to use a disabled packet");
+                         _("packet_ok: attempt to use a disabled packet"));
          break;
        case PACKET_ENABLE:
          break;
@@ -1847,7 +1847,7 @@ remote_threads_extra_info (struct thread_info *tp)
 
   if (remote_desc == 0)                /* paranoia */
     internal_error (__FILE__, __LINE__,
-                   "remote_threads_extra_info");
+                   _("remote_threads_extra_info"));
 
   if (use_threadextra_query)
     {
@@ -3262,8 +3262,8 @@ remote_fetch_registers (int regnum)
       gdb_assert (reg != NULL);
       if (!reg->in_g_packet)
        internal_error (__FILE__, __LINE__,
-                       "Attempt to fetch a non G-packet register when this "
-                       "remote.c does not support the p-packet.");
+                       _("Attempt to fetch a non G-packet register when this "
+                       "remote.c does not support the p-packet."));
     }
       switch (remote_protocol_p.support)
        {
@@ -3664,9 +3664,9 @@ remote_write_bytes (CORE_ADDR memaddr, char *myaddr, int len)
       break;
     case PACKET_SUPPORT_UNKNOWN:
       internal_error (__FILE__, __LINE__,
-                     "remote_write_bytes: bad internal state");
+                     _("remote_write_bytes: bad internal state"));
     default:
-      internal_error (__FILE__, __LINE__, "bad switch");
+      internal_error (__FILE__, __LINE__, _("bad switch"));
     }
 
   /* Append "<memaddr>".  */
@@ -3731,9 +3731,9 @@ remote_write_bytes (CORE_ADDR memaddr, char *myaddr, int len)
       break;
     case PACKET_SUPPORT_UNKNOWN:
       internal_error (__FILE__, __LINE__,
-                     "remote_write_bytes: bad internal state");
+                     _("remote_write_bytes: bad internal state"));
     default:
-      internal_error (__FILE__, __LINE__, "bad switch");
+      internal_error (__FILE__, __LINE__, _("bad switch"));
     }
 
   putpkt_binary (buf, (int) (p - buf));
@@ -3893,7 +3893,7 @@ readchar (int timeout)
       error (_("Remote connection closed"));
       /* no return */
     case SERIAL_ERROR:
-      perror_with_name ("Remote communication error");
+      perror_with_name (_("Remote communication error"));
       /* no return */
     case SERIAL_TIMEOUT:
       break;
@@ -3982,7 +3982,7 @@ putpkt_binary (char *buf, int cnt)
          gdb_flush (gdb_stdlog);
        }
       if (serial_write (remote_desc, buf2, p - buf2))
-       perror_with_name ("putpkt: write failed");
+       perror_with_name (_("putpkt: write failed"));
 
       /* Read until either a timeout occurs (-2) or '+' is read.  */
       while (1)
@@ -4576,7 +4576,7 @@ watchpoint_to_Z_packet (int type)
       break;
     default:
       internal_error (__FILE__, __LINE__,
-                     "hw_bp_to_z: bad watchpoint type %d", type);
+                     _("hw_bp_to_z: bad watchpoint type %d"), type);
     }
 }
 
@@ -4611,7 +4611,7 @@ remote_insert_watchpoint (CORE_ADDR addr, int len, int type)
       return 0;
     }
   internal_error (__FILE__, __LINE__,
-                 "remote_insert_watchpoint: reached end of function");
+                 _("remote_insert_watchpoint: reached end of function"));
 }
 
 
@@ -4645,7 +4645,7 @@ remote_remove_watchpoint (CORE_ADDR addr, int len, int type)
       return 0;
     }
   internal_error (__FILE__, __LINE__,
-                 "remote_remove_watchpoint: reached end of function");
+                 _("remote_remove_watchpoint: reached end of function"));
 }
 
 
@@ -4739,7 +4739,7 @@ remote_insert_hw_breakpoint (CORE_ADDR addr, char *shadow)
       return 0;
     }
   internal_error (__FILE__, __LINE__,
-                 "remote_insert_hw_breakpoint: reached end of function");
+                 _("remote_insert_hw_breakpoint: reached end of function"));
 }
 
 
@@ -4781,7 +4781,7 @@ remote_remove_hw_breakpoint (CORE_ADDR addr, char *shadow)
       return 0;
     }
   internal_error (__FILE__, __LINE__,
-                 "remote_remove_hw_breakpoint: reached end of function");
+                 _("remote_remove_hw_breakpoint: reached end of function"));
 }
 
 /* Some targets are only capable of doing downloads, and afterwards
@@ -5398,7 +5398,7 @@ remote_async (void (*callback) (enum inferior_event_type event_type,
 {
   if (current_target.to_async_mask_value == 0)
     internal_error (__FILE__, __LINE__,
-                   "Calling remote_async when async is masked");
+                   _("Calling remote_async when async is masked"));
 
   if (callback != NULL)
     {
index 88a6f0d33ff13a5fae6db74ca20ee7eb4ef3448b..c930097fef3470a79074718bac312104081005fb 100644 (file)
@@ -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"));
 }
 
 \f
@@ -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 e095626968a7a7fe3d56117a2764521bebf22a44..bca4a178835d5774a327aac3208673f37827695c 100644 (file)
@@ -1857,7 +1857,7 @@ rs6000_register_type (struct gdbarch *gdbarch, int n)
          return builtin_type_vec128;
          break;
        default:
-         internal_error (__FILE__, __LINE__, "Register %d size %d unknown",
+         internal_error (__FILE__, __LINE__, _("Register %d size %d unknown"),
                          n, size);
        }
     }
@@ -2025,8 +2025,8 @@ e500_pseudo_register_read (struct gdbarch *gdbarch, struct regcache *regcache,
     e500_move_ev_register (regcache_raw_read, regcache, reg_nr, buffer);
   else
     internal_error (__FILE__, __LINE__,
-                    "e500_pseudo_register_read: "
-                    "called on unexpected register '%s' (%d)",
+                    _("e500_pseudo_register_read: "
+                    "called on unexpected register '%s' (%d)"),
                     gdbarch_register_name (gdbarch, reg_nr), reg_nr);
 }
 
@@ -2046,8 +2046,8 @@ e500_pseudo_register_write (struct gdbarch *gdbarch, struct regcache *regcache,
                            regcache, reg_nr, (void *) buffer);
   else
     internal_error (__FILE__, __LINE__,
-                    "e500_pseudo_register_read: "
-                    "called on unexpected register '%s' (%d)",
+                    _("e500_pseudo_register_read: "
+                    "called on unexpected register '%s' (%d)"),
                     gdbarch_register_name (gdbarch, reg_nr), reg_nr);
 }
 
@@ -2183,8 +2183,8 @@ rs6000_store_return_value (struct type *type,
         regnum = tdep->ppc_vr0_regnum + 2;
       else
         internal_error (__FILE__, __LINE__,
-                        "rs6000_store_return_value: "
-                        "unexpected array return type");
+                        _("rs6000_store_return_value: "
+                        "unexpected array return type"));
     }
   else
     /* Everything else is returned in GPR3 and up.  */
@@ -3254,8 +3254,8 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
       }   
   else
     internal_error (__FILE__, __LINE__,
-                    "rs6000_gdbarch_init: "
-                    "received unexpected BFD 'arch' value");
+                    _("rs6000_gdbarch_init: "
+                    "received unexpected BFD 'arch' value"));
 
   /* Sanity check on registers.  */
   gdb_assert (strcmp (tdep->regs[tdep->ppc_gp0_regnum].name, "r0") == 0);
index b8da548f05a344f80f97d789f9855cac69f81138..0fa7003bba48acfdf173af76c100a20d6302c28e 100644 (file)
@@ -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 3e57b71e55696e62de77dfe4c3f7a1b5dd631c7a..55c4904f6270064d5ee99c98ca4dc7304e0e4314 100644 (file)
@@ -227,7 +227,7 @@ s390_pseudo_register_read (struct gdbarch *gdbarch, struct regcache *regcache,
       break;
 
     default:
-      internal_error (__FILE__, __LINE__, "invalid regnum");
+      internal_error (__FILE__, __LINE__, _("invalid regnum"));
     }
 }
 
@@ -254,7 +254,7 @@ s390_pseudo_register_write (struct gdbarch *gdbarch, struct regcache *regcache,
       break;
 
     default:
-      internal_error (__FILE__, __LINE__, "invalid regnum");
+      internal_error (__FILE__, __LINE__, _("invalid regnum"));
     }
 }
 
@@ -276,7 +276,7 @@ s390x_pseudo_register_read (struct gdbarch *gdbarch, struct regcache *regcache,
       break;
 
     default:
-      internal_error (__FILE__, __LINE__, "invalid regnum");
+      internal_error (__FILE__, __LINE__, _("invalid regnum"));
     }
 }
 
@@ -300,7 +300,7 @@ s390x_pseudo_register_write (struct gdbarch *gdbarch, struct regcache *regcache,
       break;
 
     default:
-      internal_error (__FILE__, __LINE__, "invalid regnum");
+      internal_error (__FILE__, __LINE__, _("invalid regnum"));
     }
 }
 
@@ -2628,7 +2628,7 @@ s390_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
              }
          }
        else
-         internal_error (__FILE__, __LINE__, "unknown argument type");
+         internal_error (__FILE__, __LINE__, _("unknown argument type"));
       }
   }
 
@@ -2729,7 +2729,7 @@ s390_return_value (struct gdbarch *gdbarch, struct type *type,
                                     (const char *)in + word_size);
            }
          else
-           internal_error (__FILE__, __LINE__, "invalid return type");
+           internal_error (__FILE__, __LINE__, _("invalid return type"));
          break;
 
        case RETURN_VALUE_STRUCT_CONVENTION:
@@ -2762,7 +2762,7 @@ s390_return_value (struct gdbarch *gdbarch, struct type *type,
                                    (char *)out + word_size);
            }
          else
-           internal_error (__FILE__, __LINE__, "invalid return type");
+           internal_error (__FILE__, __LINE__, _("invalid return type"));
          break;
 
        case RETURN_VALUE_STRUCT_CONVENTION:
index b17bc82850f8033409602af08f071df304817e0d..136dad85835b684e260e3744a3dd17925048e873 100644 (file)
@@ -78,7 +78,7 @@ sentinel_frame_this_id (struct frame_info *next_frame,
   /* The sentinel frame is used as a starting point for creating the
      previous (inner most) frame.  That frame's THIS_ID method will be
      called to determine the inner most frame's ID.  Not this one.  */
-  internal_error (__FILE__, __LINE__, "sentinel_frame_this_id called");
+  internal_error (__FILE__, __LINE__, _("sentinel_frame_this_id called"));
 }
 
 static CORE_ADDR
index 7311dd8d60d9f1d00d5b61c08e3a9080f2db4b51..eeac0e36ac8f20a4ecf9f277d744782fdd676618 100644 (file)
@@ -347,7 +347,7 @@ serial_readchar (struct serial *scb, int timeout)
      code is finished. */
   if (0 && serial_is_async_p (scb) && timeout < 0)
     internal_error (__FILE__, __LINE__,
-                   "serial_readchar: blocking read in async mode");
+                   _("serial_readchar: blocking read in async mode"));
 
   ch = scb->ops->readchar (scb, timeout);
   if (serial_logfp != NULL)
@@ -507,7 +507,7 @@ deprecated_serial_fd (struct serial *scb)
   if (scb->fd < 0)
     {
       internal_error (__FILE__, __LINE__,
-                     "serial: FD not valid");
+                     _("serial: FD not valid"));
     }
   return scb->fd; /* sigh */
 }
@@ -597,7 +597,7 @@ connect_command (char *args, int fromtty)
                break;
 
              if (c < 0)
-               perror_with_name ("connect");
+               perror_with_name (_("connect"));
 
              cx = c;
              serial_write (port_desc, &cx, 1);
@@ -635,7 +635,7 @@ connect_command (char *args, int fromtty)
                break;
 
              if (c < 0)
-               perror_with_name ("connect");
+               perror_with_name (_("connect"));
 
              cx = c;
 
index 4da61fc11ef2e52b0be6685ce4dcf6c2ccd44e49..cde1555e53c4287d2d10bd9050073146ebfa98ea 100644 (file)
@@ -2013,7 +2013,7 @@ sh_print_pseudo_register (struct gdbarch *gdbarch, struct ui_file *file,
 {
   if (regnum < NUM_REGS || regnum >= NUM_REGS + NUM_PSEUDO_REGS)
     internal_error (__FILE__, __LINE__,
-                   "Invalid pseudo register number %d\n", regnum);
+                   _("Invalid pseudo register number %d\n"), regnum);
   else if (regnum == PSEUDO_BANK_REGNUM)
     do_bank_register_info (gdbarch, file);
   else if (regnum >= DR0_REGNUM && regnum <= DR_LAST_REGNUM)
@@ -2088,7 +2088,7 @@ sh_print_register (struct gdbarch *gdbarch, struct ui_file *file, int regnum)
 {
   if (regnum < 0 || regnum >= NUM_REGS + NUM_PSEUDO_REGS)
     internal_error (__FILE__, __LINE__,
-                   "Invalid register number %d\n", regnum);
+                   _("Invalid register number %d\n"), regnum);
 
   else if (regnum >= 0 && regnum < NUM_REGS)
     {
index 3a01e257fe096502329b6bd1beb4ef8c434f229d..7177b762fc35eb828a8987d359990b8f76053cd8 100644 (file)
@@ -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 a7cde8437d32574cf36c92bc8b6044b2d1a8d860..16520974375074ca0a91fb0bbb3d2311a7d118fe 100644 (file)
@@ -2574,7 +2574,7 @@ sh64_do_pseudo_register (int regnum)
   if (regnum < NUM_REGS 
       || regnum >= NUM_REGS + NUM_PSEUDO_REGS_SH_MEDIA + NUM_PSEUDO_REGS_SH_COMPACT)
     internal_error (__FILE__, __LINE__,
-                   "Invalid pseudo register number %d\n", regnum);
+                   _("Invalid pseudo register number %d\n"), regnum);
 
   else if ((regnum >= DR0_REGNUM
            && regnum <= DR_LAST_REGNUM))
@@ -2634,7 +2634,7 @@ sh_print_register (struct gdbarch *gdbarch, struct ui_file *file, int regnum)
 {
   if (regnum < 0 || regnum >= NUM_REGS + NUM_PSEUDO_REGS)
     internal_error (__FILE__, __LINE__,
-                   "Invalid register number %d\n", regnum);
+                   _("Invalid register number %d\n"), regnum);
 
   else if (regnum >= 0 && regnum < NUM_REGS)
     {
index db6dae58891f32f9bf1a3ebc227d313c870c1b09..c8ad340367f611cb702f0f5f7a53bb8150d50618 100644 (file)
@@ -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 3c6918355eaf86bc2ffed15b9e63c5fbec7af186..f002c222db4f5915503ef6338848e5a650036bbf 100644 (file)
@@ -839,7 +839,7 @@ aix5_relocate_section_addresses (struct so_list *so,
 
       if (idx >= so->lm_info->nmappings)
        internal_error (__FILE__, __LINE__,
-         "aix_relocate_section_addresses: Can't find mapping for section %s",
+         _("aix_relocate_section_addresses: Can't find mapping for section %s"),
          bfd_get_section_name (sec->bfd, sec->the_bfd_section));
       
       addr = so->lm_info->mapping[idx].addr;
index f3fe60554d2253df25a0f896555a9aff3c95fcb5..6106d9e4d6ea381099a64a07964e3265545b09fe 100644 (file)
@@ -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 aa15e92c0d87b3c87d34b3716ed893e013e4ee03..f64d8921ad1f08359c3dc901b8a6ae5b46c2e024 100644 (file)
@@ -667,7 +667,7 @@ info_sharedlibrary_command (char *ignore, int from_tty)
   else
     {
       internal_error (__FILE__, __LINE__,
-                     "TARGET_PTR_BIT returned unknown size %d",
+                     _("TARGET_PTR_BIT returned unknown size %d"),
                      TARGET_PTR_BIT);
     }
 
index 14faff168f578f2db53c15fd1c8e1d5e770b7bd4..37d2b7235d284434ac47dbf89a6ee983159e3493 100644 (file)
@@ -273,8 +273,8 @@ select_source_symtab (struct symtab *s)
       if (cs_pst->readin)
        {
          internal_error (__FILE__, __LINE__,
-                         "select_source_symtab: "
-                         "readin pst found and no symtabs.");
+                         _("select_source_symtab: "
+                         "readin pst found and no symtabs."));
        }
       else
        {
@@ -358,7 +358,7 @@ directory_command (char *dirname, int from_tty)
   /* FIXME, this goes to "delete dir"... */
   if (dirname == 0)
     {
-      if (from_tty && query ("Reinitialize source path to empty? "))
+      if (from_tty && query (_("Reinitialize source path to empty? ")))
        {
          xfree (source_path);
          init_source_path ();
index 4bd7b7253849134a023a94a401860ae0bca93998..f2d73c0d4ea17cce83548cb675d3bd116500ee86 100644 (file)
@@ -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 *ops, enum target_object object,
     if (ptrace (PT_WCOOKIE, pid, (PTRACE_TYPE_ARG3) &wcookie, 0) == -1)
       {
        if (errno != EINVAL)
-         perror_with_name ("Couldn't get StackGhost cookie");
+         perror_with_name (_("Couldn't get StackGhost cookie"));
 
        /* Although PT_WCOOKIE is defined on OpenBSD 3.1 and later,
           the request wasn't implemented until after OpenBSD 3.4.  If
index 463c7b64cd40f8b3e318146e80e8871015dbcd5f..d3d4b318fc337d097a3ec765cb725c174255e79f 100644 (file)
@@ -174,14 +174,14 @@ static const char vb_name[] = "_vb$";
 static void
 invalid_cpp_abbrev_complaint (const char *arg1)
 {
-  complaint (&symfile_complaints, "invalid C++ abbreviation `%s'", arg1);
+  complaint (&symfile_complaints, _("invalid C++ abbreviation `%s'"), arg1);
 }
 
 static void
 reg_value_complaint (int regnum, int num_regs, const char *sym)
 {
   complaint (&symfile_complaints,
-            "register number %d too large (max %d) in symbol %s",
+            _("register number %d too large (max %d) in symbol %s"),
              regnum, num_regs - 1, sym);
 }
 
@@ -229,7 +229,7 @@ dbx_lookup_type (int typenums[2])
   if (filenum < 0 || filenum >= n_this_object_header_files)
     {
       complaint (&symfile_complaints,
-                "Invalid symbol data: type number (%d,%d) out of range at symtab pos %d.",
+                _("Invalid symbol data: type number (%d,%d) out of range at symtab pos %d."),
                 filenum, index, symnum);
       goto error_return;
     }
@@ -669,7 +669,7 @@ define_symbol (CORE_ADDR valu, char *string, int desc, int type,
 #endif
 
        default:
-         complaint (&symfile_complaints, "Unknown C++ symbol name `%s'",
+         complaint (&symfile_complaints, _("Unknown C++ symbol name `%s'"),
                     string);
          goto normal;          /* Do *something* with it */
        }
@@ -1345,7 +1345,7 @@ define_symbol (CORE_ADDR valu, char *string, int desc, int type,
 static struct type *
 error_type (char **pp, struct objfile *objfile)
 {
-  complaint (&symfile_complaints, "couldn't parse type; debugger out of date?");
+  complaint (&symfile_complaints, _("couldn't parse type; debugger out of date?"));
   while (1)
     {
       /* Skip to end of symbol.  */
@@ -1466,7 +1466,7 @@ again:
                /* Complain and keep going, so compilers can invent new
                   cross-reference types.  */
                complaint (&symfile_complaints,
-                          "Unrecognized cross-reference type `%c'", (*pp)[0]);
+                          _("Unrecognized cross-reference type `%c'"), (*pp)[0]);
                code = TYPE_CODE_STRUCT;
                break;
              }
@@ -1672,7 +1672,7 @@ again:
         else
           {
            complaint (&symfile_complaints,
-                      "Prototyped function type didn't end arguments with `#':\n%s",
+                      _("Prototyped function type didn't end arguments with `#':\n%s"),
                       type_start);
           }
 
@@ -1783,7 +1783,7 @@ again:
          return_type = read_type (pp, objfile);
          if (*(*pp)++ != ';')
            complaint (&symfile_complaints,
-                      "invalid (minimal) member type data format at symtab pos %d.",
+                      _("invalid (minimal) member type data format at symtab pos %d."),
                       symnum);
          type = allocate_stub_method (return_type);
          if (typenums[0] != -1)
@@ -1911,7 +1911,7 @@ rs6000_builtin_type (int typenum)
 
   if (typenum >= 0 || typenum < -NUMBER_RECOGNIZED)
     {
-      complaint (&symfile_complaints, "Unknown builtin type %d", typenum);
+      complaint (&symfile_complaints, _("Unknown builtin type %d"), typenum);
       return builtin_type_error;
     }
   if (negative_types[-typenum] != NULL)
@@ -2076,7 +2076,7 @@ update_method_name_from_physname (char **old_name, char *physname)
   if (method_name == NULL)
     {
       complaint (&symfile_complaints,
-                "Method has bad physname %s\n", physname);
+                _("Method has bad physname %s\n"), physname);
       return;
     }
 
@@ -2274,7 +2274,7 @@ read_member_functions (struct field_info *fip, char **pp, struct type *type,
              break;
            default:
              complaint (&symfile_complaints,
-                        "const/volatile indicator missing, got '%c'", **pp);
+                        _("const/volatile indicator missing, got '%c'"), **pp);
              break;
            }
 
@@ -2357,7 +2357,7 @@ read_member_functions (struct field_info *fip, char **pp, struct type *type,
            default:
              /* error */
              complaint (&symfile_complaints,
-                        "member function type missing, got '%c'", (*pp)[-1]);
+                        _("member function type missing, got '%c'"), (*pp)[-1]);
              /* Fall through into normal member function.  */
 
            case '.':
@@ -2623,7 +2623,7 @@ read_cpp_abbrev (struct field_info *fip, char **pp, struct type *type,
          if (name == NULL)
            {
              complaint (&symfile_complaints,
-                        "C++ abbreviated type name unknown at symtab pos %d",
+                        _("C++ abbreviated type name unknown at symtab pos %d"),
                         symnum);
              name = "FOO";
            }
@@ -2751,7 +2751,7 @@ read_one_struct_field (struct field_info *fip, char **pp, char *p,
          it is a field which has been optimized out.  The correct stab for
          this case is to use VISIBILITY_IGNORE, but that is a recent
          invention.  (2) It is a 0-size array.  For example
-         union { int num; char str[0]; } foo.  Printing "<no value>" for
+         union { int num; char str[0]; } foo.  Printing _("<no value>" for
          str in "p foo" is OK, since foo.str (and thus foo.str[3])
          will continue to work, and a 0-size array as a whole doesn't
          have any contents to print.
@@ -2976,7 +2976,7 @@ read_baseclasses (struct field_info *fip, char **pp, struct type *type,
          /* Unknown character.  Complain and treat it as non-virtual.  */
          {
            complaint (&symfile_complaints,
-                      "Unknown virtual character `%c' for baseclass", **pp);
+                      _("Unknown virtual character `%c' for baseclass"), **pp);
          }
        }
       ++(*pp);
@@ -2993,7 +2993,7 @@ read_baseclasses (struct field_info *fip, char **pp, struct type *type,
             public.  */
          {
            complaint (&symfile_complaints,
-                      "Unknown visibility `%c' for baseclass",
+                      _("Unknown visibility `%c' for baseclass"),
                       new->visibility);
            new->visibility = VISIBILITY_PUBLIC;
          }
@@ -3101,7 +3101,7 @@ read_tilde_fields (struct field_info *fip, char **pp, struct type *type,
                }
              /* Virtual function table field not found.  */
              complaint (&symfile_complaints,
-                        "virtual function table pointer not found when defining class `%s'",
+                        _("virtual function table pointer not found when defining class `%s'"),
                         TYPE_NAME (type));
              return 0;
            }
@@ -3211,7 +3211,7 @@ attach_fields_to_type (struct field_info *fip, struct type *type,
        default:
          /* Unknown visibility.  Complain and treat it as public.  */
          {
-           complaint (&symfile_complaints, "Unknown visibility `%c' for field",
+           complaint (&symfile_complaints, _("Unknown visibility `%c' for field"),
                       fip->list->visibility);
          }
          break;
@@ -3253,7 +3253,7 @@ complain_about_struct_wipeout (struct type *type)
     }
 
   complaint (&symfile_complaints,
-            "struct/union type gets multiply defined: %s%s", kind, name);
+            _("struct/union type gets multiply defined: %s%s"), kind, name);
 }
 
 
@@ -3971,7 +3971,7 @@ handle_true_range:
       static struct type *range_type_index;
 
       complaint (&symfile_complaints,
-                "base type %d of range type is not defined", rangenums[1]);
+                _("base type %d of range type is not defined"), rangenums[1]);
       if (range_type_index == NULL)
        range_type_index =
          init_type (TYPE_CODE_INT, TARGET_INT_BIT / TARGET_CHAR_BIT,
@@ -4048,7 +4048,7 @@ common_block_start (char *name, struct objfile *objfile)
   if (common_block_name != NULL)
     {
       complaint (&symfile_complaints,
-                "Invalid symbol data: common block within common block");
+                _("Invalid symbol data: common block within common block"));
     }
   common_block = local_symbols;
   common_block_i = local_symbols ? local_symbols->nsyms : 0;
@@ -4074,7 +4074,7 @@ common_block_end (struct objfile *objfile)
 
   if (common_block_name == NULL)
     {
-      complaint (&symfile_complaints, "ECOMM symbol unmatched by BCOMM");
+      complaint (&symfile_complaints, _("ECOMM symbol unmatched by BCOMM"));
       return;
     }
 
@@ -4187,7 +4187,7 @@ cleanup_undefined_types (void)
 
                if (typename == NULL)
                  {
-                   complaint (&symfile_complaints, "need a type name");
+                   complaint (&symfile_complaints, _("need a type name"));
                    break;
                  }
                for (ppt = file_symbols; ppt; ppt = ppt->next)
@@ -4211,8 +4211,8 @@ cleanup_undefined_types (void)
        default:
          {
            complaint (&symfile_complaints,
-                      "forward-referenced types left unresolved, "
-                       "type code %d.",
+                      _("forward-referenced types left unresolved, "
+                       "type code %d."),
                       TYPE_CODE (*type));
          }
          break;
@@ -4354,7 +4354,7 @@ scan_file_globals (struct objfile *objfile)
            SYMBOL_CLASS (prev) = LOC_UNRESOLVED;
          else
            complaint (&symfile_complaints,
-                      "%s: common block `%s' from global_sym_chain unresolved",
+                      _("%s: common block `%s' from global_sym_chain unresolved"),
                       objfile->name, DEPRECATED_SYMBOL_NAME (prev));
        }
     }
index 677b3363e0498722b3ab14009099628e079bfe22..396799dcdf3dc840db6866ce316fc3ac88753563 100644 (file)
@@ -1866,10 +1866,10 @@ If you continue, the return value that you specified will be ignored.\n";
     {
       int confirmed;
       if (thisfun == NULL)
-       confirmed = query ("%sMake selected stack frame return now? ",
+       confirmed = query (_("%sMake selected stack frame return now? "),
                           query_prefix);
       else
-       confirmed = query ("%sMake %s return now? ", query_prefix,
+       confirmed = query (_("%sMake %s return now? "), query_prefix,
                           SYMBOL_PRINT_NAME (thisfun));
       if (!confirmed)
        error (_("Not confirmed"));
index 7f2c7bd299f39020062902d212a721ba680cad97..c81cd9b9b951592c049c24be8732213b5b059147 100644 (file)
@@ -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 85807c172722a0932c5cca9de84bcb8254dbd7c0..c19a519745c217290f780de9eacfc8d738cef4ad 100644 (file)
@@ -1562,7 +1562,7 @@ lookup_partial_symbol (struct partial_symtab *pst, const char *name,
        {
          center = bottom + (top - bottom) / 2;
          if (!(center < top))
-           internal_error (__FILE__, __LINE__, "failed internal consistency check");
+           internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
          if (!do_linear_search
              && (SYMBOL_LANGUAGE (*center) == language_java))
            {
@@ -1578,7 +1578,7 @@ lookup_partial_symbol (struct partial_symtab *pst, const char *name,
            }
        }
       if (!(top == bottom))
-       internal_error (__FILE__, __LINE__, "failed internal consistency check");
+       internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
 
       while (top <= real_top
             && (linkage_name != NULL
index 97899b0b56134e4315ae788f55b36d8f2077db61..42beb0d56bd8ff13a449aee9337276d029e71223 100644 (file)
@@ -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 3499470ef9be6f1a5e125e9ea4a383f6ccba5224..2db2f08489481fe8a1aabddb3a69a1adc7fbe94d 100644 (file)
@@ -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 050d8c76bac355b54c9160a018b7ad93a243152c..4cec476fbdd4c6662649ceb237259dc98470363c 100644 (file)
@@ -616,7 +616,7 @@ get_tracepoint_by_number (char **arg, int multi_p, int optional_p)
       if (optional_p)
        tpnum = tracepoint_count;
       else
-       error_no_arg ("tracepoint number");
+       error_no_arg (_("tracepoint number"));
     }
   else
     tpnum = multi_p ? get_number_or_range (arg) : get_number (arg);
index 5d2740ef0665d9512a010125bfb9afa047bbdbcb..1ceb47f030e8b3d129733f25f93499aae6f7b63c 100644 (file)
@@ -77,7 +77,7 @@ tui_file_delete (struct ui_file *file)
   struct tui_stream *tmpstream = ui_file_data (file);
   if (tmpstream->ts_magic != &tui_file_magic)
     internal_error (__FILE__, __LINE__,
-                   "tui_file_delete: bad magic number");
+                   _("tui_file_delete: bad magic number"));
   if ((tmpstream->ts_streamtype == astring) &&
       (tmpstream->ts_strbuf != NULL))
     {
@@ -124,7 +124,7 @@ tui_file_isatty (struct ui_file *file)
   struct tui_stream *stream = ui_file_data (file);
   if (stream->ts_magic != &tui_file_magic)
     internal_error (__FILE__, __LINE__,
-                   "tui_file_isatty: bad magic number");
+                   _("tui_file_isatty: bad magic number"));
   if (stream->ts_streamtype == afile)
     return (isatty (fileno (stream->ts_filestream)));
   else
@@ -137,7 +137,7 @@ tui_file_rewind (struct ui_file *file)
   struct tui_stream *stream = ui_file_data (file);
   if (stream->ts_magic != &tui_file_magic)
     internal_error (__FILE__, __LINE__,
-                   "tui_file_rewind: bad magic number");
+                   _("tui_file_rewind: bad magic number"));
   stream->ts_strbuf[0] = '\0';
 }
 
@@ -149,7 +149,7 @@ tui_file_put (struct ui_file *file,
   struct tui_stream *stream = ui_file_data (file);
   if (stream->ts_magic != &tui_file_magic)
     internal_error (__FILE__, __LINE__,
-                   "tui_file_put: bad magic number");
+                   _("tui_file_put: bad magic number"));
   if (stream->ts_streamtype == astring)
     write (dest, stream->ts_strbuf, strlen (stream->ts_strbuf));
 }
@@ -185,7 +185,7 @@ tui_file_get_strbuf (struct ui_file *file)
   struct tui_stream *stream = ui_file_data (file);
   if (stream->ts_magic != &tui_file_magic)
     internal_error (__FILE__, __LINE__,
-                   "tui_file_get_strbuf: bad magic number");
+                   _("tui_file_get_strbuf: bad magic number"));
   return (stream->ts_strbuf);
 }
 
@@ -198,7 +198,7 @@ tui_file_adjust_strbuf (int n, struct ui_file *file)
   int non_null_chars;
   if (stream->ts_magic != &tui_file_magic)
     internal_error (__FILE__, __LINE__,
-                   "tui_file_adjust_strbuf: bad magic number");
+                   _("tui_file_adjust_strbuf: bad magic number"));
 
   if (stream->ts_streamtype != astring)
     return;
@@ -225,7 +225,7 @@ tui_file_flush (struct ui_file *file)
   struct tui_stream *stream = ui_file_data (file);
   if (stream->ts_magic != &tui_file_magic)
     internal_error (__FILE__, __LINE__,
-                   "tui_file_flush: bad magic number");
+                   _("tui_file_flush: bad magic number"));
 
   switch (stream->ts_streamtype)
     {
index ced5dbdfc3067ee8945774d0895306fde2bdb061..d004b09f4863646d39491f7f37cc4418375e86f8 100644 (file)
@@ -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 6ad5414b19ff7e7f50bb1a0fdc80e7cb6539fe25..5a2d04778fe19f19dc36e4fd1d0c951eb60818ae 100644 (file)
@@ -162,7 +162,7 @@ ui_file_data (struct ui_file *file)
 {
   if (file->magic != &ui_file_magic)
     internal_error (__FILE__, __LINE__,
-                   "ui_file_data: bad magic number");
+                   _("ui_file_data: bad magic number"));
   return file->to_data;
 }
 
@@ -340,7 +340,7 @@ mem_file_delete (struct ui_file *file)
   struct mem_file *stream = ui_file_data (file);
   if (stream->magic != &mem_file_magic)
     internal_error (__FILE__, __LINE__,
-                   "mem_file_delete: bad magic number");
+                   _("mem_file_delete: bad magic number"));
   if (stream->buffer != NULL)
     xfree (stream->buffer);
   xfree (stream);
@@ -358,7 +358,7 @@ mem_file_rewind (struct ui_file *file)
   struct mem_file *stream = ui_file_data (file);
   if (stream->magic != &mem_file_magic)
     internal_error (__FILE__, __LINE__,
-                   "mem_file_rewind: bad magic number");
+                   _("mem_file_rewind: bad magic number"));
   stream->length_buffer = 0;
 }
 
@@ -370,7 +370,7 @@ mem_file_put (struct ui_file *file,
   struct mem_file *stream = ui_file_data (file);
   if (stream->magic != &mem_file_magic)
     internal_error (__FILE__, __LINE__,
-                   "mem_file_put: bad magic number");
+                   _("mem_file_put: bad magic number"));
   if (stream->length_buffer > 0)
     write (dest, stream->buffer, stream->length_buffer);
 }
@@ -383,7 +383,7 @@ mem_file_write (struct ui_file *file,
   struct mem_file *stream = ui_file_data (file);
   if (stream->magic != &mem_file_magic)
     internal_error (__FILE__, __LINE__,
-                   "mem_file_write: bad magic number");
+                   _("mem_file_write: bad magic number"));
   if (stream->buffer == NULL)
     {
       stream->length_buffer = length_buffer;
@@ -447,7 +447,7 @@ stdio_file_delete (struct ui_file *file)
   struct stdio_file *stdio = ui_file_data (file);
   if (stdio->magic != &stdio_file_magic)
     internal_error (__FILE__, __LINE__,
-                   "stdio_file_delete: bad magic number");
+                   _("stdio_file_delete: bad magic number"));
   if (stdio->close_p)
     {
       fclose (stdio->file);
@@ -461,7 +461,7 @@ stdio_file_flush (struct ui_file *file)
   struct stdio_file *stdio = ui_file_data (file);
   if (stdio->magic != &stdio_file_magic)
     internal_error (__FILE__, __LINE__,
-                   "stdio_file_flush: bad magic number");
+                   _("stdio_file_flush: bad magic number"));
   fflush (stdio->file);
 }
 
@@ -471,7 +471,7 @@ stdio_file_read (struct ui_file *file, char *buf, long length_buf)
   struct stdio_file *stdio = ui_file_data (file);
   if (stdio->magic != &stdio_file_magic)
     internal_error (__FILE__, __LINE__,
-                   "stdio_file_read: bad magic number");
+                   _("stdio_file_read: bad magic number"));
   return read (fileno (stdio->file), buf, length_buf);
 }
 
@@ -481,7 +481,7 @@ stdio_file_write (struct ui_file *file, const char *buf, long length_buf)
   struct stdio_file *stdio = ui_file_data (file);
   if (stdio->magic != &stdio_file_magic)
     internal_error (__FILE__, __LINE__,
-                   "stdio_file_write: bad magic number");
+                   _("stdio_file_write: bad magic number"));
   fwrite (buf, length_buf, 1, stdio->file);
 }
 
@@ -491,7 +491,7 @@ stdio_file_fputs (const char *linebuffer, struct ui_file *file)
   struct stdio_file *stdio = ui_file_data (file);
   if (stdio->magic != &stdio_file_magic)
     internal_error (__FILE__, __LINE__,
-                   "stdio_file_fputs: bad magic number");
+                   _("stdio_file_fputs: bad magic number"));
   fputs (linebuffer, stdio->file);
 }
 
@@ -501,7 +501,7 @@ stdio_file_isatty (struct ui_file *file)
   struct stdio_file *stdio = ui_file_data (file);
   if (stdio->magic != &stdio_file_magic)
     internal_error (__FILE__, __LINE__,
-                   "stdio_file_isatty: bad magic number");
+                   _("stdio_file_isatty: bad magic number"));
   return (isatty (fileno (stdio->file)));
 }
 
@@ -564,7 +564,7 @@ tee_file_delete (struct ui_file *file)
   struct tee_file *tee = ui_file_data (file);
   if (tee->magic != &tee_file_magic)
     internal_error (__FILE__, __LINE__,
-                   "tee_file_delete: bad magic number");
+                   _("tee_file_delete: bad magic number"));
   if (tee->close_one)
     ui_file_delete (tee->one);
   if (tee->close_two)
@@ -579,7 +579,7 @@ tee_file_flush (struct ui_file *file)
   struct tee_file *tee = ui_file_data (file);
   if (tee->magic != &tee_file_magic)
     internal_error (__FILE__, __LINE__,
-                   "tee_file_flush: bad magic number");
+                   _("tee_file_flush: bad magic number"));
   tee->one->to_flush (tee->one);
   tee->two->to_flush (tee->two);
 }
@@ -590,7 +590,7 @@ tee_file_write (struct ui_file *file, const char *buf, long length_buf)
   struct tee_file *tee = ui_file_data (file);
   if (tee->magic != &tee_file_magic)
     internal_error (__FILE__, __LINE__,
-                   "tee_file_write: bad magic number");
+                   _("tee_file_write: bad magic number"));
   ui_file_write (tee->one, buf, length_buf);
   ui_file_write (tee->two, buf, length_buf);
 }
@@ -601,7 +601,7 @@ tee_file_fputs (const char *linebuffer, struct ui_file *file)
   struct tee_file *tee = ui_file_data (file);
   if (tee->magic != &tee_file_magic)
     internal_error (__FILE__, __LINE__,
-                   "tee_file_fputs: bad magic number");
+                   _("tee_file_fputs: bad magic number"));
   tee->one->to_fputs (linebuffer, tee->one);
   tee->two->to_fputs (linebuffer, tee->two);
 }
@@ -612,6 +612,6 @@ tee_file_isatty (struct ui_file *file)
   struct tee_file *tee = ui_file_data (file);
   if (tee->magic != &tee_file_magic)
     internal_error (__FILE__, __LINE__,
-                   "tee_file_isatty: bad magic number");
+                   _("tee_file_isatty: bad magic number"));
   return (0);
 }
index 783c5380ade65996044c9f5d96480c56f068022d..53abebf2485756ea8aa85378aa84b66a36c9b079 100644 (file)
@@ -280,8 +280,8 @@ ui_out_table_begin (struct ui_out *uiout, int nbrofcols,
 {
   if (uiout->table.flag)
     internal_error (__FILE__, __LINE__,
-                   "tables cannot be nested; table_begin found before \
-previous table_end.");
+                   _("tables cannot be nested; table_begin found before \
+previous table_end."));
 
   uiout->table.flag = 1;
   uiout->table.body_flag = 0;
@@ -301,16 +301,16 @@ ui_out_table_body (struct ui_out *uiout)
 {
   if (!uiout->table.flag)
     internal_error (__FILE__, __LINE__,
-                   "table_body outside a table is not valid; it must be \
-after a table_begin and before a table_end.");
+                   _("table_body outside a table is not valid; it must be \
+after a table_begin and before a table_end."));
   if (uiout->table.body_flag)
     internal_error (__FILE__, __LINE__,
-                   "extra table_body call not allowed; there must be \
-only one table_body after a table_begin and before a table_end.");
+                   _("extra table_body call not allowed; there must be \
+only one table_body after a table_begin and before a table_end."));
   if (uiout->table.header_next->colno != uiout->table.columns)
     internal_error (__FILE__, __LINE__,
-                   "number of headers differ from number of table \
-columns.");
+                   _("number of headers differ from number of table \
+columns."));
 
   uiout->table.body_flag = 1;
   uiout->table.header_next = uiout->table.header_first;
@@ -323,7 +323,7 @@ ui_out_table_end (struct ui_out *uiout)
 {
   if (!uiout->table.flag)
     internal_error (__FILE__, __LINE__,
-                   "misplaced table_end or missing table_begin.");
+                   _("misplaced table_end or missing table_begin."));
 
   uiout->table.entry_level = 0;
   uiout->table.body_flag = 0;
@@ -343,8 +343,8 @@ ui_out_table_header (struct ui_out *uiout, int width, enum ui_align alignment,
 {
   if (!uiout->table.flag || uiout->table.body_flag)
     internal_error (__FILE__, __LINE__,
-                   "table header must be specified after table_begin \
-and before table_body.");
+                   _("table header must be specified after table_begin \
+and before table_body."));
 
   append_header_to_list (uiout, width, alignment, col_name, colhdr);
 
@@ -375,8 +375,8 @@ ui_out_begin (struct ui_out *uiout,
   int new_level;
   if (uiout->table.flag && !uiout->table.body_flag)
     internal_error (__FILE__, __LINE__,
-                   "table header or table_body expected; lists must be \
-specified after table_body.");
+                   _("table header or table_body expected; lists must be \
+specified after table_body."));
 
   /* Be careful to verify the ``field'' before the new tuple/list is
      pushed onto the stack.  That way the containing list/table/row is
@@ -1090,8 +1090,8 @@ verify_field (struct ui_out *uiout, int *fldno, int *width, int *align)
     {
       if (!uiout->table.body_flag)
        internal_error (__FILE__, __LINE__,
-                       "table_body missing; table fields must be \
-specified after table_body and inside a list.");
+                       _("table_body missing; table fields must be \
+specified after table_body and inside a list."));
       /* NOTE: cagney/2001-12-08: There was a check here to ensure
         that this code was only executed when uiout->level was
         greater than zero.  That no longer applies - this code is run
@@ -1107,7 +1107,7 @@ specified after table_body and inside a list.");
     {
       if (*fldno != current->field_count)
        internal_error (__FILE__, __LINE__,
-                       "ui-out internal error in handling headers.");
+                       _("ui-out internal error in handling headers."));
     }
   else
     {
index b0d177a660583299f02dbd136ec0ace89be768d3..b6a99ac62f4419a2eb62da183afb018ce663b13d 100644 (file)
@@ -411,7 +411,7 @@ free_current_contents (void *ptr)
   void **location = ptr;
   if (location == NULL)
     internal_error (__FILE__, __LINE__,
-                   "free_current_contents: NULL pointer");
+                   _("free_current_contents: NULL pointer"));
   if (*location != NULL)
     {
       xfree (*location);
@@ -716,7 +716,7 @@ further debugging may prove unreliable.", file, line, problem->name, msg);
       /* Default (yes/batch case) is to quit GDB.  When in batch mode
          this lessens the likelhood of GDB going into an infinate
          loop.  */
-      quit_p = query ("%s\nQuit this debugging session? ", reason);
+      quit_p = query (_("%s\nQuit this debugging session? "), reason);
       break;
     case AUTO_BOOLEAN_TRUE:
       quit_p = 1;
@@ -725,7 +725,7 @@ further debugging may prove unreliable.", file, line, problem->name, msg);
       quit_p = 0;
       break;
     default:
-      internal_error (__FILE__, __LINE__, "bad switch");
+      internal_error (__FILE__, __LINE__, _("bad switch"));
     }
 
   switch (problem->should_dump_core)
@@ -734,7 +734,7 @@ further debugging may prove unreliable.", file, line, problem->name, msg);
       /* Default (yes/batch case) is to dump core.  This leaves a GDB
          `dropping' so that it is easier to see that something went
          wrong in GDB.  */
-      dump_core_p = query ("%s\nCreate a core file of GDB? ", reason);
+      dump_core_p = query (_("%s\nCreate a core file of GDB? "), reason);
       break;
       break;
     case AUTO_BOOLEAN_TRUE:
@@ -744,7 +744,7 @@ further debugging may prove unreliable.", file, line, problem->name, msg);
       dump_core_p = 0;
       break;
     default:
-      internal_error (__FILE__, __LINE__, "bad switch");
+      internal_error (__FILE__, __LINE__, _("bad switch"));
     }
 
   if (quit_p)
@@ -912,12 +912,12 @@ nomem (long size)
   if (size > 0)
     {
       internal_error (__FILE__, __LINE__,
-                     "virtual memory exhausted: can't allocate %ld bytes.",
+                     _("virtual memory exhausted: can't allocate %ld bytes."),
                      size);
     }
   else
     {
-      internal_error (__FILE__, __LINE__, "virtual memory exhausted.");
+      internal_error (__FILE__, __LINE__, _("virtual memory exhausted."));
     }
 }
 
@@ -1042,7 +1042,7 @@ xstrvprintf (const char *format, va_list ap)
      should never happen, but just to be sure.  */
   if (status < 0)
     internal_error (__FILE__, __LINE__,
-                   "vasprintf call failed (errno %d)", errno);
+                   _("vasprintf call failed (errno %d)"), errno);
   return ret;
 }
 
@@ -1747,7 +1747,7 @@ wrap_here (char *indent)
 {
   /* This should have been allocated, but be paranoid anyway. */
   if (!wrap_buffer)
-    internal_error (__FILE__, __LINE__, "failed internal consistency check");
+    internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
 
   if (wrap_buffer[0])
     {
@@ -2560,7 +2560,7 @@ decimal2str (char *paddr_str, char *sign, ULONGEST addr, int width)
       break;
     default:
       internal_error (__FILE__, __LINE__,
-                     "failed internal consistency check");
+                     _("failed internal consistency check"));
     }
 }
 
@@ -2597,7 +2597,7 @@ octal2str (char *paddr_str, ULONGEST addr, int width)
       break;
     default:
       internal_error (__FILE__, __LINE__,
-                     "failed internal consistency check");
+                     _("failed internal consistency check"));
     }
 }
 
@@ -2707,7 +2707,7 @@ hex_string_custom (LONGEST num, int width)
     width = hex_len;
   if (width + 2 >= CELLSIZE)
     internal_error (__FILE__, __LINE__,
-                   "hex_string_custom: insufficient space to store result");
+                   _("hex_string_custom: insufficient space to store result"));
 
   strcpy (result_end - width - 2, "0x");
   memset (result_end - width, '0', width);
@@ -2759,7 +2759,7 @@ int_string (LONGEST val, int radix, int is_signed, int width,
       }
     default:
       internal_error (__FILE__, __LINE__,
-                     "failed internal consistency check");
+                     _("failed internal consistency check"));
     }
 }      
 
@@ -2798,7 +2798,7 @@ string_to_core_addr (const char *my_string)
          else if (isxdigit (my_string[i]))
            addr = (tolower (my_string[i]) - 'a' + 0xa) + (addr * 16);
          else
-           internal_error (__FILE__, __LINE__, "invalid hex");
+           internal_error (__FILE__, __LINE__, _("invalid hex"));
        }
     }
   else
@@ -2810,7 +2810,7 @@ string_to_core_addr (const char *my_string)
          if (isdigit (my_string[i]))
            addr = (my_string[i] - '0') + (addr * 10);
          else
-           internal_error (__FILE__, __LINE__, "invalid decimal");
+           internal_error (__FILE__, __LINE__, _("invalid decimal"));
        }
     }
   return addr;
index ddcd64635237f5922366a0e5cefb4ff1187d53b9..f6fb32573c2d95ba398ea90e5f4c9d8fab04bc1d 100644 (file)
@@ -1121,7 +1121,7 @@ typecmp (int staticp, int varargs, int nargs,
   int i;
 
   if (t2 == 0)
-    internal_error (__FILE__, __LINE__, "typecmp: no argument list");
+    internal_error (__FILE__, __LINE__, _("typecmp: no argument list"));
 
   /* Skip ``this'' argument if applicable.  T2 will always include THIS.  */
   if (staticp)
@@ -2358,7 +2358,7 @@ value_aggregate_elt (struct type *curtype,
       return value_namespace_elt (curtype, name, noside);
     default:
       internal_error (__FILE__, __LINE__,
-                     "non-aggregate type in value_aggregate_elt");
+                     _("non-aggregate type in value_aggregate_elt"));
     }
 }
 
index 62e26fde44bd63eaf0d09ef4a272ef993de5b22f..9b51cc17a5154a9de954cfc885b5407ebfb1b77a 100644 (file)
@@ -252,7 +252,7 @@ print_longest (struct ui_file *stream, int format, int use_c_format,
     case 'o':
       val = int_string (val_long, 8, 0, 0, use_c_format); break;
     default:
-      internal_error (__FILE__, __LINE__, "failed internal consistency check");
+      internal_error (__FILE__, __LINE__, _("failed internal consistency check"));
     } 
   fputs_filtered (val, stream);
 }
index d01d9489a137811d29167d351ab217aac7d13872..c394f6085dbe9803e4f2cff5e592350b8821e4f4 100644 (file)
@@ -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 bd505be766e1c18871e755f1da8191e08bce410c..533e1fdf8773f690d85ef849386b40f7059c629f 100644 (file)
@@ -71,7 +71,7 @@ vaxbsd_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"));
 
   vaxbsd_supply_gregset (current_regcache, &regs);
 }
@@ -86,13 +86,13 @@ vaxbsd_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"));
 
   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"));
 }
 \f
 
index 1ec3b83ea109f9785879046dc8cd14b77a12026b..643135c6a037cbd89f9b4a6950de34285e771f0a 100644 (file)
@@ -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 1ec3b83ea109f9785879046dc8cd14b77a12026b..643135c6a037cbd89f9b4a6950de34285e771f0a 100644 (file)
@@ -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 0805f8035ac06ab8543771ce18ec05ec469ba850..6bab91e25a0da29f48b5e0d05f1f97de0836cf16 100644 (file)
@@ -154,21 +154,21 @@ struct coff_symfile_info
 static void
 bf_notfound_complaint (void)
 {
-  complaint (&symfile_complaints, "line numbers off, `.bf' symbol not found");
+  complaint (&symfile_complaints, _("line numbers off, `.bf' symbol not found"));
 }
 
 static void
 ef_complaint (int arg1)
 {
   complaint (&symfile_complaints,
-            "Mismatched .ef symbol ignored starting at symnum %d", arg1);
+            _("Mismatched .ef symbol ignored starting at symnum %d"), arg1);
 }
 
 static void
 eb_complaint (int arg1)
 {
   complaint (&symfile_complaints,
-            "Mismatched .eb symbol ignored starting at symnum %d", arg1);
+            _("Mismatched .eb symbol ignored starting at symnum %d"), arg1);
 }
 
 static void xcoff_initial_scan (struct objfile *, int);
@@ -490,7 +490,7 @@ record_include_begin (struct coff_symbol *cs)
       /* This can happen with old versions of GCC.
          GCC 2.3.3-930426 does not exhibit this on a test case which
          a user said produced the message for him.  */
-      complaint (&symfile_complaints, "Nested C_BINCL symbols");
+      complaint (&symfile_complaints, _("Nested C_BINCL symbols"));
     }
   ++inclDepth;
 
@@ -507,7 +507,7 @@ record_include_end (struct coff_symbol *cs)
 
   if (inclDepth == 0)
     {
-      complaint (&symfile_complaints, "Mismatched C_BINCL/C_EINCL pair");
+      complaint (&symfile_complaints, _("Mismatched C_BINCL/C_EINCL pair"));
     }
 
   allocate_include_entry ();
@@ -770,7 +770,7 @@ enter_line_range (struct subfile *subfile, unsigned beginoffset, unsigned endoff
       if (endoffset >= limit_offset)
        {
          complaint (&symfile_complaints,
-                    "Bad line table offset in C_EINCL directive");
+                    _("Bad line table offset in C_EINCL directive"));
          return;
        }
       limit_offset = endoffset;
@@ -873,7 +873,7 @@ xcoff_next_symbol_text (struct objfile *objfile)
   bfd_coff_swap_sym_in (objfile->obfd, raw_symbol, &symbol);
   if (symbol.n_zeroes)
     {
-      complaint (&symfile_complaints, "Unexpected symbol continuation");
+      complaint (&symfile_complaints, _("Unexpected symbol continuation"));
 
       /* Return something which points to '\0' and hope the symbol reading
          code does something reasonable.  */
@@ -890,7 +890,7 @@ xcoff_next_symbol_text (struct objfile *objfile)
     }
   else
     {
-      complaint (&symfile_complaints, "Unexpected symbol continuation");
+      complaint (&symfile_complaints, _("Unexpected symbol continuation"));
 
       /* Return something which points to '\0' and hope the symbol reading
          code does something reasonable.  */
@@ -1332,7 +1332,7 @@ read_xcoff_symtab (struct partial_symtab *pst)
        case C_UNTAG:
        case C_ENTAG:
          {
-           complaint (&symfile_complaints, "Unrecognized storage class %d.",
+           complaint (&symfile_complaints, _("Unrecognized storage class %d."),
                       cs->c_sclass);
          }
          break;
@@ -1519,7 +1519,7 @@ process_xcoff_symbol (struct coff_symbol *cs, struct objfile *objfile)
          break;
 
        default:
-         complaint (&symfile_complaints, "Unexpected storage class: %d",
+         complaint (&symfile_complaints, _("Unexpected storage class: %d"),
                     cs->c_sclass);
          /* FALLTHROUGH */
 
@@ -1601,7 +1601,7 @@ read_symbol (struct internal_syment *symbol, int symno)
   ((struct coff_symfile_info *) this_symtab_psymtab->objfile->deprecated_sym_private)->symtbl;
   if (symno < 0 || symno >= nsyms)
     {
-      complaint (&symfile_complaints, "Invalid symbol offset");
+      complaint (&symfile_complaints, _("Invalid symbol offset"));
       symbol->n_value = 0;
       symbol->n_scnum = -1;
       return;
@@ -2115,7 +2115,7 @@ static void
 function_outside_compilation_unit_complaint (const char *arg1)
 {
   complaint (&symfile_complaints,
-            "function `%s' appears to be defined outside of all compilation units",
+            _("function `%s' appears to be defined outside of all compilation units"),
             arg1);
 }
 
@@ -2445,7 +2445,7 @@ scan_xcoff_symtab (struct objfile *objfile)
        default:
          {
            complaint (&symfile_complaints,
-                      "Storage class %d not recognized during scan", sclass);
+                      _("Storage class %d not recognized during scan"), sclass);
          }
          /* FALLTHROUGH */
 
@@ -2800,7 +2800,7 @@ scan_xcoff_symtab (struct objfile *objfile)
                   a backslash.  */
 
                complaint (&symfile_complaints,
-                          "unknown symbol descriptor `%c'", p[1]);
+                          _("unknown symbol descriptor `%c'"), p[1]);
 
                /* Ignore it; perhaps it is an extension that we don't
                   know about.  */
@@ -2918,7 +2918,7 @@ xcoff_initial_scan (struct objfile *objfile, int mainline)
   val = bfd_bread (((struct coff_symfile_info *) objfile->deprecated_sym_private)->symtbl,
                   size, abfd);
   if (val != size)
-    perror_with_name ("reading symbol table");
+    perror_with_name (_("reading symbol table"));
 
   /* If we are reinitializing, or if we have never loaded syms yet, init */
   if (mainline
index 3aceb694b93c7fbefc4566939c25896c16c928bd..0056ec75fe210421e4de809b1357867f4ccc5916 100644 (file)
@@ -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];