diff options
Diffstat (limited to 'gdb/cli')
-rw-r--r-- | gdb/cli/cli-cmds.c | 10 | ||||
-rw-r--r-- | gdb/cli/cli-dump.c | 6 | ||||
-rw-r--r-- | gdb/cli/cli-logging.c | 25 |
3 files changed, 21 insertions, 20 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index ed3cd8b..0e93182 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -190,7 +190,7 @@ error_no_arg (char *why) static void info_command (char *arg, int from_tty) { - printf_unfiltered ("\"info\" must be followed by the name of an info command.\n"); + printf_unfiltered (_("\"info\" must be followed by the name of an info command.\n")); help_list (infolist, "info ", -1, gdb_stdout); } @@ -317,10 +317,10 @@ pwd_command (char *args, int from_tty) getcwd (gdb_dirbuf, sizeof (gdb_dirbuf)); if (strcmp (gdb_dirbuf, current_directory) != 0) - printf_unfiltered ("Working directory %s\n (canonically %s).\n", + printf_unfiltered (_("Working directory %s\n (canonically %s).\n"), current_directory, gdb_dirbuf); else - printf_unfiltered ("Working directory %s.\n", current_directory); + printf_unfiltered (_("Working directory %s.\n"), current_directory); } void @@ -994,14 +994,14 @@ ambiguous_line_spec (struct symtabs_and_lines *sals) int i; for (i = 0; i < sals->nelts; ++i) - printf_filtered ("file: \"%s\", line number: %d\n", + printf_filtered (_("file: \"%s\", line number: %d\n"), sals->sals[i].symtab->filename, sals->sals[i].line); } static void set_debug (char *arg, int from_tty) { - printf_unfiltered ("\"set debug\" must be followed by the name of a print subcommand.\n"); + printf_unfiltered (_("\"set debug\" must be followed by the name of a print subcommand.\n")); help_list (setdebuglist, "set debug ", -1, gdb_stdout); } diff --git a/gdb/cli/cli-dump.c b/gdb/cli/cli-dump.c index 593e637..3a44698 100644 --- a/gdb/cli/cli-dump.c +++ b/gdb/cli/cli-dump.c @@ -181,14 +181,14 @@ struct cmd_list_element *binary_append_cmdlist; static void dump_command (char *cmd, int from_tty) { - printf_unfiltered ("\"dump\" must be followed by a subcommand.\n\n"); + printf_unfiltered (_("\"dump\" must be followed by a subcommand.\n\n")); help_list (dump_cmdlist, "dump ", -1, gdb_stdout); } static void append_command (char *cmd, int from_tty) { - printf_unfiltered ("\"append\" must be followed by a subcommand.\n\n"); + printf_unfiltered (_("\"append\" must be followed by a subcommand.\n\n")); help_list (dump_cmdlist, "append ", -1, gdb_stdout); } @@ -473,7 +473,7 @@ restore_section_callback (bfd *ibfd, asection *isec, void *args) || (data->load_end > 0 && sec_start >= data->load_end)) { /* No, no useable data in this section. */ - printf_filtered ("skipping section %s...\n", + printf_filtered (_("skipping section %s...\n"), bfd_section_name (ibfd, isec)); return; } diff --git a/gdb/cli/cli-logging.c b/gdb/cli/cli-logging.c index 8df6b85..c03b420 100644 --- a/gdb/cli/cli-logging.c +++ b/gdb/cli/cli-logging.c @@ -133,33 +133,34 @@ set_logging_off (char *args, int from_tty) static void set_logging_command (char *args, int from_tty) { - printf_unfiltered ("\"set logging\" lets you log output to a file.\n"); - printf_unfiltered ("Usage: set logging on [FILENAME]\n"); - printf_unfiltered (" set logging off\n"); - printf_unfiltered (" set logging file FILENAME\n"); - printf_unfiltered (" set logging overwrite [on|off]\n"); - printf_unfiltered (" set logging redirect [on|off]\n"); + printf_unfiltered (_("\ +\"set logging\" lets you log output to a file.\n\ +Usage: set logging on [FILENAME]\n\ + set logging off\n\ + set logging file FILENAME\n\ + set logging overwrite [on|off]\n\ + set logging redirect [on|off]\n")); } void show_logging_command (char *args, int from_tty) { if (saved_filename) - printf_unfiltered ("Currently logging to \"%s\".\n", saved_filename); + printf_unfiltered (_("Currently logging to \"%s\".\n"), saved_filename); if (saved_filename == NULL || strcmp (logging_filename, saved_filename) != 0) - printf_unfiltered ("Future logs will be written to %s.\n", + printf_unfiltered (_("Future logs will be written to %s.\n"), logging_filename); if (logging_overwrite) - printf_unfiltered ("Logs will overwrite the log file.\n"); + printf_unfiltered (_("Logs will overwrite the log file.\n")); else - printf_unfiltered ("Logs will be appended to the log file.\n"); + printf_unfiltered (_("Logs will be appended to the log file.\n")); if (logging_redirect) - printf_unfiltered ("Output will be sent only to the log file.\n"); + printf_unfiltered (_("Output will be sent only to the log file.\n")); else - printf_unfiltered ("Output will be logged and displayed.\n"); + printf_unfiltered (_("Output will be logged and displayed.\n")); } void |