2011-01-11 Michael Snyder * arm-tdep.c: Internationalization. * c-lang.c: Ditto. * charset.c: Ditto. * fork-child.c: Ditto. * nto-procfs.c: Ditto. * ppc-sysv-tdep.c: Ditto. * procfs.c: Ditto. * remote-mips.c: Ditto. * remote.c: Ditto. * rs6000-nat.c: Ditto. * rs6000-tdep.c: Ditto. * target.c: Ditto. * valops.c: Ditto. * value.c: Ditto. * xml-support.c: Ditto. * mi/mi-cmd-break.c: Ditto. * mi/mi-cmd-var.c: Ditto. * mi/mi-interp.c: Ditto. * mi/mi-main.c: Ditto. Index: arm-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/arm-tdep.c,v retrieving revision 1.319 diff -u -p -r1.319 arm-tdep.c --- arm-tdep.c 7 Jan 2011 19:36:15 -0000 1.319 +++ arm-tdep.c 11 Jan 2011 15:06:44 -0000 @@ -1620,7 +1620,7 @@ arm_instruction_changes_pc (uint32_t thi return 0; default: - internal_error (__FILE__, __LINE__, "bad value in switch"); + internal_error (__FILE__, __LINE__, _("bad value in switch")); } } @@ -6540,9 +6540,9 @@ arm_store_return_value (struct type *typ break; default: - internal_error - (__FILE__, __LINE__, - _("arm_store_return_value: Floating point model not supported")); + internal_error (__FILE__, __LINE__, + _("arm_store_return_value: Floating " + "point model not supported")); break; } } @@ -6788,7 +6788,7 @@ arm_update_current_architecture (void) gdbarch_info_init (&info); if (!gdbarch_update_p (info)) - internal_error (__FILE__, __LINE__, "could not update architecture"); + internal_error (__FILE__, __LINE__, _("could not update architecture")); } static void Index: c-lang.c =================================================================== RCS file: /cvs/src/src/gdb/c-lang.c,v retrieving revision 1.91 diff -u -p -r1.91 c-lang.c --- c-lang.c 5 Jan 2011 22:22:47 -0000 1.91 +++ c-lang.c 11 Jan 2011 15:06:45 -0000 @@ -65,7 +65,7 @@ charset_for_string_type (enum c_string_t else return "UTF-32LE"; } - internal_error (__FILE__, __LINE__, "unhandled c_string_type"); + internal_error (__FILE__, __LINE__, _("unhandled c_string_type")); } /* Classify ELTTYPE according to what kind of character it is. Return @@ -1008,7 +1008,7 @@ evaluate_subexp_c (struct type *expect_t "char32_t", NULL, 0); break; default: - internal_error (__FILE__, __LINE__, "unhandled c_string_type"); + internal_error (__FILE__, __LINE__, _("unhandled c_string_type")); } /* Ensure TYPE_LENGTH is valid for TYPE. */ Index: charset.c =================================================================== RCS file: /cvs/src/src/gdb/charset.c,v retrieving revision 1.42 diff -u -p -r1.42 charset.c --- charset.c 10 Jan 2011 17:14:12 -0000 1.42 +++ charset.c 11 Jan 2011 15:06:45 -0000 @@ -486,7 +486,7 @@ convert_between_encodings (const char *f desc = iconv_open (to, from); if (desc == (iconv_t) -1) - perror_with_name ("Converting character sets"); + perror_with_name (_("Converting character sets")); cleanups = make_cleanup (cleanup_iconv, &desc); inleft = num_bytes; @@ -553,8 +553,8 @@ convert_between_encodings (const char *f break; default: - perror_with_name ("Internal error while " - "converting character sets"); + perror_with_name (_("Internal error while " + "converting character sets")); } } } @@ -593,7 +593,7 @@ make_wchar_iterator (const gdb_byte *inp desc = iconv_open (INTERMEDIATE_ENCODING, charset); if (desc == (iconv_t) -1) - perror_with_name ("Converting character sets"); + perror_with_name (_("Converting character sets")); result = XNEW (struct wchar_iterator); result->desc = desc; @@ -694,8 +694,8 @@ wchar_iterate (struct wchar_iterator *it return 0; default: - perror_with_name ("Internal error while " - "converting character sets"); + perror_with_name (_("Internal error while " + "converting character sets")); } } Index: fork-child.c =================================================================== RCS file: /cvs/src/src/gdb/fork-child.c,v retrieving revision 1.60 diff -u -p -r1.60 fork-child.c --- fork-child.c 7 Jan 2011 19:36:17 -0000 1.60 +++ fork-child.c 11 Jan 2011 15:06:46 -0000 @@ -315,7 +315,7 @@ fork_inferior (char *exec_file_arg, char in a separate process group. */ debug_setpgrp = gdb_setpgid (); if (debug_setpgrp == -1) - perror ("setpgrp failed in child"); + perror (_("setpgrp failed in child")); } /* Ask the tty subsystem to switch to the one we specified Index: nto-procfs.c =================================================================== RCS file: /cvs/src/src/gdb/nto-procfs.c,v retrieving revision 1.56 diff -u -p -r1.56 nto-procfs.c --- nto-procfs.c 10 Jan 2011 20:38:49 -0000 1.56 +++ nto-procfs.c 11 Jan 2011 15:06:47 -0000 @@ -1009,7 +1009,7 @@ procfs_resume (struct target_ops *ops, errno = devctl (ctl_fd, DCMD_PROC_RUN, &run, sizeof (run), 0); if (errno != EOK) { - perror ("run error!\n"); + perror (_("run error!\n")); return; } } @@ -1494,7 +1494,7 @@ procfs_hw_watchpoint (int addr, int len, errno = devctl (ctl_fd, DCMD_PROC_BREAK, &brk, sizeof (brk), 0); if (errno != EOK) { - perror ("Failed to set hardware watchpoint"); + perror (_("Failed to set hardware watchpoint")); return -1; } return 0; Index: ppc-sysv-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/ppc-sysv-tdep.c,v retrieving revision 1.59 diff -u -p -r1.59 ppc-sysv-tdep.c --- ppc-sysv-tdep.c 10 Jan 2011 20:38:50 -0000 1.59 +++ ppc-sysv-tdep.c 11 Jan 2011 15:06:49 -0000 @@ -531,7 +531,7 @@ get_decimal_float_return_value (struct g } else /* Can't happen. */ - internal_error (__FILE__, __LINE__, "Unknown decimal float size."); + internal_error (__FILE__, __LINE__, _("Unknown decimal float size.")); return RETURN_VALUE_REGISTER_CONVENTION; } Index: procfs.c =================================================================== RCS file: /cvs/src/src/gdb/procfs.c,v retrieving revision 1.141 diff -u -p -r1.141 procfs.c --- procfs.c 10 Jan 2011 20:38:50 -0000 1.141 +++ procfs.c 11 Jan 2011 15:06:53 -0000 @@ -4643,7 +4643,7 @@ procfs_init_inferior (struct target_ops push_target (ops); if ((pi = create_procinfo (pid, 0)) == NULL) - perror ("procfs: out of memory in 'init_inferior'"); + perror (_("procfs: out of memory in 'init_inferior'")); if (!open_procinfo_files (pi, FD_CTL)) proc_error (pi, "init_inferior, open_proc_files", __LINE__); Index: remote-mips.c =================================================================== RCS file: /cvs/src/src/gdb/remote-mips.c,v retrieving revision 1.117 diff -u -p -r1.117 remote-mips.c --- remote-mips.c 10 Jan 2011 20:38:51 -0000 1.117 +++ remote-mips.c 11 Jan 2011 15:06:55 -0000 @@ -672,7 +672,7 @@ mips_readchar (int timeout) if (ch == SERIAL_TIMEOUT && timeout == -1) /* Watchdog went off. */ { target_mourn_inferior (); - error ("Watchdog has expired. Target detached.\n"); + error (_("Watchdog has expired. Target detached.\n")); } if (ch == SERIAL_EOF) @@ -713,7 +713,7 @@ mips_readchar (int timeout) /* At this point, about the only thing we can do is abort the command in progress and get back to command level as quickly as possible. */ - error ("Remote board reset, debug protocol re-initialized."); + error (_("Remote board reset, debug protocol re-initialized.")); } if (ch == mips_monitor_prompt[state]) @@ -1598,7 +1598,7 @@ seen from the board via TFTP, specify th { udp_desc = serial_open (remote_name); if (!udp_desc) - perror_with_name ("Unable to open UDP port"); + perror_with_name (_("Unable to open UDP port")); udp_in_use = 1; } else @@ -1741,7 +1741,7 @@ static void mips_detach (struct target_ops *ops, char *args, int from_tty) { if (args) - error ("Argument given to \"detach\" when remotely debugging."); + error (_("Argument given to \"detach\" when remotely debugging.")); pop_target (); @@ -2326,7 +2326,7 @@ Can't pass arguments to remote MIPS boar } if (execfile == 0 || exec_bfd == 0) - error ("No executable file specified"); + error (_("No executable file specified")); entry_pt = (CORE_ADDR) bfd_get_start_address (exec_bfd); @@ -2593,8 +2593,8 @@ mips_common_breakpoint: Attempt to clear nfields = sscanf (buf, "0x%x b 0x0 0x%x", &rpid, &rerrflg); if (nfields != 2) - mips_error ("\ -mips_common_breakpoint: Bad response from remote board: %s", + mips_error ("mips_common_breakpoint: " + "Bad response from remote board: %s", buf); return (mips_check_lsi_error (addr, rerrflg)); @@ -2646,8 +2646,8 @@ mips_common_breakpoint: Bad response fro nfields = sscanf (buf, "0x%x %c 0x%x 0x%x", &rpid, &rcmd, &rresponse, &rerrflg); if (nfields != 4 || rcmd != cmd || rresponse > 255) - mips_error ("\ -mips_common_breakpoint: Bad response from remote board: %s", + mips_error ("mips_common_breakpoint: " + "Bad response from remote board: %s", buf); if (rerrflg != 0) @@ -2718,8 +2718,8 @@ mips_common_breakpoint: Bad response fro &rpid, &rcmd, &rerrflg, &rresponse); if (nfields != 4 || rcmd != cmd) - mips_error ("\ -mips_common_breakpoint: Bad response from remote board: %s", + mips_error ("mips_common_breakpoint: " + "Bad response from remote board: %s", buf); if (rerrflg != 0) @@ -2757,7 +2757,7 @@ send_srec (char *srec, int len, CORE_ADD switch (ch) { case SERIAL_TIMEOUT: - error ("Timeout during download."); + error (_("Timeout during download.")); break; case 0x6: /* ACK */ return; @@ -2767,7 +2767,8 @@ send_srec (char *srec, int len, CORE_ADD paddress (target_gdbarch, addr)); continue; default: - error ("Download got unexpected ack char: 0x%x, retrying.\n", ch); + error (_("Download got unexpected ack char: 0x%x, retrying.\n"), + ch); } } } @@ -3509,7 +3510,7 @@ mips_load (char *file, int from_tty) /* Get the board out of remote debugging mode. */ if (mips_exit_debug ()) - error ("mips_load: Couldn't get into monitor mode."); + error (_("mips_load: Couldn't get into monitor mode.")); if (mips_monitor != MON_IDT) pmon_load_fast (file); Index: remote.c =================================================================== RCS file: /cvs/src/src/gdb/remote.c,v retrieving revision 1.428 diff -u -p -r1.428 remote.c --- remote.c 10 Jan 2011 20:38:50 -0000 1.428 +++ remote.c 11 Jan 2011 15:07:03 -0000 @@ -1245,7 +1245,7 @@ set_remote_protocol_packet_cmd (char *ar return; } } - internal_error (__FILE__, __LINE__, "Could not find config for %s", + internal_error (__FILE__, __LINE__, _("Could not find config for %s"), c->name); } @@ -1266,7 +1266,7 @@ show_remote_protocol_packet_cmd (struct return; } } - internal_error (__FILE__, __LINE__, "Could not find config for %s", + internal_error (__FILE__, __LINE__, _("Could not find config for %s"), c->name); } @@ -3212,7 +3212,7 @@ remote_start_remote (struct ui_out *uiou getpkt (&rs->buf, &rs->buf_size, 0); if (strcmp (rs->buf, "OK") != 0) - error ("Remote refused setting non-stop mode with: %s", rs->buf); + error (_("Remote refused setting non-stop mode with: %s"), rs->buf); /* Find about threads and processes the stub is already controlling. We default to adding them in the running state. @@ -3228,7 +3228,7 @@ remote_start_remote (struct ui_out *uiou getpkt (&rs->buf, &rs->buf_size, 0); if (strcmp (rs->buf, "OK") != 0) - error ("Remote refused setting all-stop mode with: %s", rs->buf); + error (_("Remote refused setting all-stop mode with: %s"), rs->buf); } /* Check whether the target is running now. */ @@ -5737,7 +5737,7 @@ process_g_packet (struct regcache *regca if (p[0] == 0 || p[1] == 0) /* This shouldn't happen - we adjusted sizeof_g_packet above. */ internal_error (__FILE__, __LINE__, - "unexpected end of 'g' packet reply"); + _("unexpected end of 'g' packet reply")); if (p[0] == 'x' && p[1] == 'x') regs[i] = 0; /* 'x' */ @@ -5755,7 +5755,7 @@ process_g_packet (struct regcache *regca if (r->offset * 2 >= strlen (rs->buf)) /* This shouldn't happen - we adjusted in_g_packet above. */ internal_error (__FILE__, __LINE__, - "unexpected end of 'g' packet reply"); + _("unexpected end of 'g' packet reply")); else if (rs->buf[r->offset * 2] == 'x') { gdb_assert (r->offset * 2 < strlen (rs->buf)); @@ -6222,7 +6222,7 @@ remote_write_bytes_aux (const char *head if (packet_format != 'X' && packet_format != 'M') internal_error (__FILE__, __LINE__, - "remote_write_bytes_aux: bad packet format"); + _("remote_write_bytes_aux: bad packet format")); if (len <= 0) return 0; @@ -6558,7 +6558,7 @@ remote_send_printf (const char *format, rs->buf[0] = '\0'; if (vsnprintf (rs->buf, max_size, format, ap) >= max_size) - internal_error (__FILE__, __LINE__, "Too long remote packet."); + internal_error (__FILE__, __LINE__, _("Too long remote packet.")); if (putpkt (rs->buf) < 0) error (_("Communication problem with target.")); @@ -8352,7 +8352,7 @@ remote_search_memory (struct target_ops* /* Bail if the pattern is too large. */ if (used_pattern_len != pattern_len) - error ("Pattern is too large to transmit to remote target."); + error (_("Pattern is too large to transmit to remote target.")); if (putpkt_binary (rs->buf, i + escaped_pattern_len) < 0 || getpkt_sane (&rs->buf, &rs->buf_size, 0) < 0 @@ -8810,7 +8810,7 @@ register_remote_g_packet_guess (struct g ix++) if (guess->bytes == bytes) internal_error (__FILE__, __LINE__, - "Duplicate g packet description added for size %d", + _("Duplicate g packet description added for size %d"), bytes); new_guess.bytes = bytes; @@ -9749,7 +9749,8 @@ remote_download_tracepoint (struct break /* If it passed validation at definition but fails now, something is very wrong. */ internal_error (__FILE__, __LINE__, - "Fast tracepoint not valid during download"); + _("Fast tracepoint not " + "valid during download")); } else /* Fast tracepoints are functionally identical to regular @@ -10018,7 +10019,7 @@ remote_trace_find (enum trace_find_type sprintf (p, "outside:%s:%s", phex_nz (addr1, 0), phex_nz (addr2, 0)); break; default: - error ("Unknown trace find type %d", type); + error (_("Unknown trace find type %d"), type); } putpkt (rs->buf); Index: rs6000-nat.c =================================================================== RCS file: /cvs/src/src/gdb/rs6000-nat.c,v retrieving revision 1.103 diff -u -p -r1.103 rs6000-nat.c --- rs6000-nat.c 10 Jan 2011 20:38:51 -0000 1.103 +++ rs6000-nat.c 11 Jan 2011 15:07:04 -0000 @@ -259,7 +259,7 @@ fetch_register (struct regcache *regcach { #if 0 /* FIXME: this happens 3 times at the start of each 64-bit program. */ - perror ("ptrace read"); + perror (_("ptrace read")); #endif errno = 0; } @@ -327,7 +327,7 @@ store_register (struct regcache *regcach if (errno) { - perror ("ptrace write"); + perror (_("ptrace write")); errno = 0; } } @@ -610,7 +610,7 @@ exec_one_dummy_insn (struct regcache *re (int *) 1, 0, NULL); if (ret != 0) - perror ("pt_continue"); + perror (_("pt_continue")); do { Index: rs6000-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/rs6000-tdep.c,v retrieving revision 1.345 diff -u -p -r1.345 rs6000-tdep.c --- rs6000-tdep.c 10 Jan 2011 20:38:51 -0000 1.345 +++ rs6000-tdep.c 11 Jan 2011 15:07:07 -0000 @@ -4153,7 +4153,7 @@ powerpc_set_soft_float (char *args, int /* Update the architecture. */ gdbarch_info_init (&info); if (!gdbarch_update_p (info)) - internal_error (__FILE__, __LINE__, "could not update architecture"); + internal_error (__FILE__, __LINE__, _("could not update architecture")); } static void @@ -4180,7 +4180,7 @@ powerpc_set_vector_abi (char *args, int /* Update the architecture. */ gdbarch_info_init (&info); if (!gdbarch_update_p (info)) - internal_error (__FILE__, __LINE__, "could not update architecture"); + internal_error (__FILE__, __LINE__, _("could not update architecture")); } /* Initialization code. */ Index: target.c =================================================================== RCS file: /cvs/src/src/gdb/target.c,v retrieving revision 1.266 diff -u -p -r1.266 target.c --- target.c 5 Jan 2011 22:22:53 -0000 1.266 +++ target.c 11 Jan 2011 15:07:10 -0000 @@ -493,7 +493,7 @@ target_create_inferior (char *exec_file, } internal_error (__FILE__, __LINE__, - "could not find a target to create inferior"); + _("could not find a target to create inferior")); } void @@ -965,7 +965,7 @@ unpush_target (struct target_ops *t) if (t->to_stratum == dummy_stratum) internal_error (__FILE__, __LINE__, - "Attempt to unpush the dummy target"); + _("Attempt to unpush the dummy target")); /* Look for the specified target. Note that we assume that a target can only occur once in the target stack. */ @@ -2343,7 +2343,7 @@ target_detach (char *args, int from_tty) } } - internal_error (__FILE__, __LINE__, "could not find a target to detach"); + internal_error (__FILE__, __LINE__, _("could not find a target to detach")); } void @@ -2464,7 +2464,7 @@ target_follow_fork (int follow_child) /* Some target returned a fork event, but did not know how to follow it. */ internal_error (__FILE__, __LINE__, - "could not find a target to follow fork"); + _("could not find a target to follow fork")); } void @@ -2490,7 +2490,7 @@ target_mourn_inferior (void) } internal_error (__FILE__, __LINE__, - "could not find a target to follow mourn inferior"); + _("could not find a target to follow mourn inferior")); } /* Look for a target which can describe architectural features, starting @@ -2603,7 +2603,8 @@ simple_search_memory (struct target_ops search_buf + keep_len, read_addr, nr_to_read) != nr_to_read) { - warning (_("Unable to access target memory at %s, halting search."), + warning (_("Unable to access target " + "memory at %s, halting search."), hex_string (read_addr)); do_cleanups (old_cleanups); return -1; @@ -2699,7 +2700,7 @@ target_require_runnable (void) /* This function is only called if the target is running. In that case there should have been a process_stratum target and it should either know how to create inferiors, or not... */ - internal_error (__FILE__, __LINE__, "No targets found"); + internal_error (__FILE__, __LINE__, _("No targets found")); } /* Look through the list of possible targets for a target that can @@ -2864,7 +2865,8 @@ target_thread_address_space (ptid_t ptid if (inf == NULL || inf->aspace == NULL) internal_error (__FILE__, __LINE__, - "Can't determine the current address space of thread %s\n", + _("Can't determine the current " + "address space of thread %s\n"), target_pid_to_str (ptid)); return inf->aspace; @@ -3113,7 +3115,7 @@ target_attach (char *args, int from_tty) } internal_error (__FILE__, __LINE__, - "could not find a target to attach"); + _("could not find a target to attach")); } int Index: valops.c =================================================================== RCS file: /cvs/src/src/gdb/valops.c,v retrieving revision 1.262 diff -u -p -r1.262 valops.c --- valops.c 5 Jan 2011 22:22:53 -0000 1.262 +++ valops.c 11 Jan 2011 15:07:13 -0000 @@ -1105,7 +1105,7 @@ value_fetch_lazy (struct value *val) else if (VALUE_LVAL (val) == lval_computed) value_computed_funcs (val)->read (val); else - internal_error (__FILE__, __LINE__, "Unexpected lazy value type."); + internal_error (__FILE__, __LINE__, _("Unexpected lazy value type.")); set_value_lazy (val, 0); return 0; Index: value.c =================================================================== RCS file: /cvs/src/src/gdb/value.c,v retrieving revision 1.121 diff -u -p -r1.121 value.c --- value.c 5 Jan 2011 22:22:53 -0000 1.121 +++ value.c 11 Jan 2011 15:07:14 -0000 @@ -1256,7 +1256,7 @@ value_of_internalvar (struct gdbarch *gd break; default: - internal_error (__FILE__, __LINE__, "bad kind"); + internal_error (__FILE__, __LINE__, _("bad kind")); } /* Change the VALUE_LVAL to lval_internalvar so that future operations @@ -1336,7 +1336,7 @@ set_internalvar_component (struct intern default: /* We can never get a component of any other kind. */ - internal_error (__FILE__, __LINE__, "set_internalvar_component"); + internal_error (__FILE__, __LINE__, _("set_internalvar_component")); } } Index: xml-support.c =================================================================== RCS file: /cvs/src/src/gdb/xml-support.c,v retrieving revision 1.20 diff -u -p -r1.20 xml-support.c --- xml-support.c 1 Jan 2011 15:33:19 -0000 1.20 +++ xml-support.c 11 Jan 2011 15:07:15 -0000 @@ -484,7 +484,8 @@ gdb_xml_fetch_external_entity (XML_Parse { text = fetch_xml_builtin (parser->dtd_name); if (text == NULL) - internal_error (__FILE__, __LINE__, "could not locate built-in DTD %s", + internal_error (__FILE__, __LINE__, + _("could not locate built-in DTD %s"), parser->dtd_name); } else @@ -529,7 +530,8 @@ gdb_xml_use_dtd (struct gdb_xml_parser * err = XML_UseForeignDTD (parser->expat_parser, XML_TRUE); if (err != XML_ERROR_NONE) internal_error (__FILE__, __LINE__, - "XML_UseForeignDTD failed: %s", XML_ErrorString (err)); + _("XML_UseForeignDTD failed: %s"), + XML_ErrorString (err)); } /* Invoke PARSER on BUFFER. BUFFER is the data to parse, which Index: mi/mi-cmd-break.c =================================================================== RCS file: /cvs/src/src/gdb/mi/mi-cmd-break.c,v retrieving revision 1.39 diff -u -p -r1.39 mi-cmd-break.c --- mi/mi-cmd-break.c 6 Jan 2011 00:57:02 -0000 1.39 +++ mi/mi-cmd-break.c 11 Jan 2011 15:07:17 -0000 @@ -300,19 +300,19 @@ mi_cmd_break_commands (char *command, ch struct breakpoint *b; if (argc < 1) - error ("USAGE: %s [ [...]]", command); + error (_("USAGE: %s [ [...]]"), command); bnum = strtol (argv[0], &endptr, 0); if (endptr == argv[0]) - error ("breakpoint number argument \"%s\" is not a number.", + error (_("breakpoint number argument \"%s\" is not a number."), argv[0]); else if (*endptr != '\0') - error ("junk at the end of breakpoint number argument \"%s\".", + error (_("junk at the end of breakpoint number argument \"%s\"."), argv[0]); b = get_breakpoint (bnum); if (b == NULL) - error ("breakpoint %d not found.", bnum); + error (_("breakpoint %d not found."), bnum); mi_command_line_array = argv; mi_command_line_array_ptr = 1; Index: mi/mi-cmd-var.c =================================================================== RCS file: /cvs/src/src/gdb/mi/mi-cmd-var.c,v retrieving revision 1.66 diff -u -p -r1.66 mi-cmd-var.c --- mi/mi-cmd-var.c 6 Jan 2011 00:57:02 -0000 1.66 +++ mi/mi-cmd-var.c 11 Jan 2011 15:07:17 -0000 @@ -271,12 +271,12 @@ mi_cmd_var_set_visualizer (char *command struct varobj *var; if (argc != 2) - error ("Usage: NAME VISUALIZER_FUNCTION."); + error (_("Usage: NAME VISUALIZER_FUNCTION.")); var = varobj_get_handle (argv[0]); if (var == NULL) - error ("Variable object not found"); + error (_("Variable object not found")); varobj_set_visualizer (var, argv[1]); } Index: mi/mi-interp.c =================================================================== RCS file: /cvs/src/src/gdb/mi/mi-interp.c,v retrieving revision 1.61 diff -u -p -r1.61 mi-interp.c --- mi/mi-interp.c 6 Jan 2011 00:57:02 -0000 1.61 +++ mi/mi-interp.c 11 Jan 2011 15:07:18 -0000 @@ -192,16 +192,17 @@ mi_cmd_interpreter_exec (char *command, struct cleanup *old_chain; if (argc < 2) - error ("mi_cmd_interpreter_exec: Usage: -interpreter-exec interp command"); + error (_("mi_cmd_interpreter_exec: " + "Usage: -interpreter-exec interp command")); interp_to_use = interp_lookup (argv[0]); if (interp_to_use == NULL) - error ("mi_cmd_interpreter_exec: could not find interpreter \"%s\"", + error (_("mi_cmd_interpreter_exec: could not find interpreter \"%s\""), argv[0]); if (!interp_exec_p (interp_to_use)) - error ("mi_cmd_interpreter_exec: interpreter \"%s\" " - "does not support command execution", + error (_("mi_cmd_interpreter_exec: interpreter \"%s\" " + "does not support command execution"), argv[0]); /* Insert the MI out hooks, making sure to also call the interpreter's hooks Index: mi/mi-main.c =================================================================== RCS file: /cvs/src/src/gdb/mi/mi-main.c,v retrieving revision 1.188 diff -u -p -r1.188 mi-main.c --- mi/mi-main.c 6 Jan 2011 00:57:02 -0000 1.188 +++ mi/mi-main.c 11 Jan 2011 15:07:19 -0000 @@ -420,7 +420,7 @@ void mi_cmd_target_detach (char *command, char **argv, int argc) { if (argc != 0 && argc != 1) - error ("Usage: -target-detach [pid | thread-group]"); + error (_("Usage: -target-detach [pid | thread-group]")); if (argc == 1) { @@ -471,7 +471,7 @@ mi_cmd_thread_select (char *command, cha char *mi_error_message; if (argc != 1) - error ("mi_cmd_thread_select: USAGE: threadnum."); + error (_("mi_cmd_thread_select: USAGE: threadnum.")); rc = gdb_thread_select (uiout, argv[0], &mi_error_message);