aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/mi')
-rw-r--r--gdb/mi/mi-cmd-break.c8
-rw-r--r--gdb/mi/mi-cmd-var.c4
-rw-r--r--gdb/mi/mi-interp.c9
-rw-r--r--gdb/mi/mi-main.c4
4 files changed, 13 insertions, 12 deletions
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);