diff options
author | Michael Snyder <msnyder@vmware.com> | 2011-01-11 15:10:03 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2011-01-11 15:10:03 +0000 |
commit | 9b20d036b6804e167f6b3a843661022ed46399bb (patch) | |
tree | 6f390f9b7338d77b0d1de99a5e97d770d61e2093 /gdb | |
parent | dae477fed8cdd8063a79042f2781a983be1c728d (diff) | |
download | gdb-9b20d036b6804e167f6b3a843661022ed46399bb.zip gdb-9b20d036b6804e167f6b3a843661022ed46399bb.tar.gz gdb-9b20d036b6804e167f6b3a843661022ed46399bb.tar.bz2 |
2011-01-11 Michael Snyder <msnyder@vmware.com>
* 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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 22 | ||||
-rw-r--r-- | gdb/arm-tdep.c | 10 | ||||
-rw-r--r-- | gdb/c-lang.c | 4 | ||||
-rw-r--r-- | gdb/charset.c | 12 | ||||
-rw-r--r-- | gdb/fork-child.c | 2 | ||||
-rw-r--r-- | gdb/mi/mi-cmd-break.c | 8 | ||||
-rw-r--r-- | gdb/mi/mi-cmd-var.c | 4 | ||||
-rw-r--r-- | gdb/mi/mi-interp.c | 9 | ||||
-rw-r--r-- | gdb/mi/mi-main.c | 4 | ||||
-rw-r--r-- | gdb/nto-procfs.c | 4 | ||||
-rw-r--r-- | gdb/ppc-sysv-tdep.c | 2 | ||||
-rw-r--r-- | gdb/procfs.c | 2 | ||||
-rw-r--r-- | gdb/remote-mips.c | 29 | ||||
-rw-r--r-- | gdb/remote.c | 25 | ||||
-rw-r--r-- | gdb/rs6000-nat.c | 6 | ||||
-rw-r--r-- | gdb/rs6000-tdep.c | 4 | ||||
-rw-r--r-- | gdb/target.c | 20 | ||||
-rw-r--r-- | gdb/valops.c | 2 | ||||
-rw-r--r-- | gdb/value.c | 4 | ||||
-rw-r--r-- | gdb/xml-support.c | 6 |
20 files changed, 104 insertions, 75 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 18f70ef..4e92633 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,25 @@ +2011-01-11 Michael Snyder <msnyder@vmware.com> + + * 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. + 2011-01-11 Andrew Burgess <aburgess@broadcom.com> * remote-sim.c (gdbsim_store_register): Update API to diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index dc6299e..9ec410d 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -1620,7 +1620,7 @@ arm_instruction_changes_pc (uint32_t this_instr) 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 *type, struct regcache *regs, 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 diff --git a/gdb/c-lang.c b/gdb/c-lang.c index 8df2cec..ad770bf 100644 --- a/gdb/c-lang.c +++ b/gdb/c-lang.c @@ -65,7 +65,7 @@ charset_for_string_type (enum c_string_type str_type, 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_type, struct expression *exp, "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. */ diff --git a/gdb/charset.c b/gdb/charset.c index 0c269bd..41cbc43 100644 --- a/gdb/charset.c +++ b/gdb/charset.c @@ -486,7 +486,7 @@ convert_between_encodings (const char *from, const char *to, 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 *from, const char *to, 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 *input, size_t bytes, 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 *iter, return 0; default: - perror_with_name ("Internal error while " - "converting character sets"); + perror_with_name (_("Internal error while " + "converting character sets")); } } diff --git a/gdb/fork-child.c b/gdb/fork-child.c index f115307..f7b027a 100644 --- a/gdb/fork-child.c +++ b/gdb/fork-child.c @@ -315,7 +315,7 @@ fork_inferior (char *exec_file_arg, char *allargs, char **env, 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 diff --git a/gdb/mi/mi-cmd-break.c b/gdb/mi/mi-cmd-break.c index 245cf448..a04be98 100644 --- a/gdb/mi/mi-cmd-break.c +++ b/gdb/mi/mi-cmd-break.c @@ -300,19 +300,19 @@ mi_cmd_break_commands (char *command, char **argv, int argc) struct breakpoint *b; if (argc < 1) - error ("USAGE: %s <BKPT> [<COMMAND> [<COMMAND>...]]", command); + error (_("USAGE: %s <BKPT> [<COMMAND> [<COMMAND>...]]"), 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; diff --git a/gdb/mi/mi-cmd-var.c b/gdb/mi/mi-cmd-var.c index 8e0f410..cdb6aa1 100644 --- a/gdb/mi/mi-cmd-var.c +++ b/gdb/mi/mi-cmd-var.c @@ -271,12 +271,12 @@ mi_cmd_var_set_visualizer (char *command, char **argv, int argc) 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]); } diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c index 6aaed3a..e42bffe 100644 --- a/gdb/mi/mi-interp.c +++ b/gdb/mi/mi-interp.c @@ -192,16 +192,17 @@ mi_cmd_interpreter_exec (char *command, char **argv, int argc) 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 diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index 27f7865..91db352 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -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, char **argv, int argc) 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); diff --git a/gdb/nto-procfs.c b/gdb/nto-procfs.c index aa9599b..bd7a6b0 100644 --- a/gdb/nto-procfs.c +++ b/gdb/nto-procfs.c @@ -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, int type) 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; diff --git a/gdb/ppc-sysv-tdep.c b/gdb/ppc-sysv-tdep.c index 23d7a71..1200b61 100644 --- a/gdb/ppc-sysv-tdep.c +++ b/gdb/ppc-sysv-tdep.c @@ -531,7 +531,7 @@ get_decimal_float_return_value (struct gdbarch *gdbarch, struct type *valtype, } 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; } diff --git a/gdb/procfs.c b/gdb/procfs.c index 321d137..af0fbaa 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -4643,7 +4643,7 @@ procfs_init_inferior (struct target_ops *ops, int pid) 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__); diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index bc82bc8..ed78d47 100644 --- a/gdb/remote-mips.c +++ b/gdb/remote-mips.c @@ -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 that name as the third parameter.\n")); { 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 board; arguments ignored."); } 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 bogus breakpoint at %s\n", 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 from remote board: %s", 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 from remote board: %s", &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_ADDR addr) 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_ADDR addr) 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); diff --git a/gdb/remote.c b/gdb/remote.c index 99594cb..528e22f 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -1245,7 +1245,7 @@ set_remote_protocol_packet_cmd (char *args, int from_tty, 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 ui_file *file, int from_tty, 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 *uiout, void *opaque) 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 *uiout, void *opaque) 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 *regcache) 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 *regcache) 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 *header, CORE_ADDR memaddr, 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* 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 gdbarch *gdbarch, int bytes, 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 breakpoint *t) /* 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 type, int num, 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); diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c index ec1e401..e357c4d 100644 --- a/gdb/rs6000-nat.c +++ b/gdb/rs6000-nat.c @@ -259,7 +259,7 @@ fetch_register (struct regcache *regcache, int regno) { #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 *regcache, int regno) if (errno) { - perror ("ptrace write"); + perror (_("ptrace write")); errno = 0; } } @@ -610,7 +610,7 @@ exec_one_dummy_insn (struct regcache *regcache) (int *) 1, 0, NULL); if (ret != 0) - perror ("pt_continue"); + perror (_("pt_continue")); do { diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 81aa9a3..cd5135e 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -4153,7 +4153,7 @@ powerpc_set_soft_float (char *args, int from_tty, /* 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 from_tty, /* 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. */ diff --git a/gdb/target.c b/gdb/target.c index e7b7791..bfb2bbd 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -493,7 +493,7 @@ target_create_inferior (char *exec_file, char *args, } 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 *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 diff --git a/gdb/valops.c b/gdb/valops.c index fdbb702..52a1d4e 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -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; diff --git a/gdb/value.c b/gdb/value.c index 1c50428..ffc85d6 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -1256,7 +1256,7 @@ value_of_internalvar (struct gdbarch *gdbarch, struct internalvar *var) 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 internalvar *var, int offset, int bitpos, 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")); } } diff --git a/gdb/xml-support.c b/gdb/xml-support.c index 2a49852..9a8ca8b 100644 --- a/gdb/xml-support.c +++ b/gdb/xml-support.c @@ -484,7 +484,8 @@ gdb_xml_fetch_external_entity (XML_Parser expat_parser, { 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 *parser, const char *dtd_name) 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 |