aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-02-15 15:49:28 +0000
committerAndrew Cagney <cagney@redhat.com>2005-02-15 15:49:28 +0000
commit1bedd215175652ad3e82d2fb731f1d62dd44acf8 (patch)
tree09ea0800a74e846c01f195cc7de13c5df107c697 /gdb/cli
parent724f452bdd25d4fd3eb3e361043276dcbde6d85c (diff)
downloadgdb-1bedd215175652ad3e82d2fb731f1d62dd44acf8.zip
gdb-1bedd215175652ad3e82d2fb731f1d62dd44acf8.tar.gz
gdb-1bedd215175652ad3e82d2fb731f1d62dd44acf8.tar.bz2
2005-02-15 Andrew Cagney <cagney@gnu.org>
Mark up add_com, add_info and add_prefix_cmd. * breakpoint.c, cp-support.c, dcache.c, dwarf2read.c: Update. * exec.c, f-valprint.c, frame.c, gcore.c, gnu-nat.c: Update. * go32-nat.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Update. * kod.c, language.c, linux-nat.c, m32r-rom.c, macrocmd.c: Update. * maint.c, memattr.c, mips-tdep.c, nto-procfs.c, objc-lang.c: Update. * ocd.c, pa64solib.c, printcmd.c, procfs.c, regcache.c: Update. * remote-e7000.c, remote-m32r-sdi.c, remote-mips.c: Update. * remote-sds.c, remote-sim.c, remote-st.c, remote-utils.c: Update. * remote.c, rs6000-tdep.c, ser-go32.c, serial.c: Update. * sh-tdep.c, solib.c, somsolib.c, source.c, stack.c: Update. * symfile.c, symtab.c, target.c, thread.c, top.c: Update. * tracepoint.c, typeprint.c, utils.c, valprint.c: Update. * win32-nat.c, xcoffsolib.c, cli/cli-cmds.c, cli/cli-dump.c: Update. * cli/cli-logging.c, tui/tui-layout.c, tui/tui-regs.c: Update. * tui/tui-stack.c, tui/tui-win.c: Update.
Diffstat (limited to 'gdb/cli')
-rw-r--r--gdb/cli/cli-cmds.c90
-rw-r--r--gdb/cli/cli-dump.c34
-rw-r--r--gdb/cli/cli-logging.c4
3 files changed, 64 insertions, 64 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c
index 4fa6a5f..43978e9 100644
--- a/gdb/cli/cli-cmds.c
+++ b/gdb/cli/cli-cmds.c
@@ -1081,32 +1081,32 @@ The commands below can be used to select other frames by number or address."),
/* Define general commands. */
- add_com ("pwd", class_files, pwd_command,
- "Print working directory. This is used for your program as well.");
+ add_com ("pwd", class_files, pwd_command, _("\
+Print working directory. This is used for your program as well."));
c = add_cmd ("cd", class_files, cd_command, _("\
Set working directory to DIR for debugger and program being debugged.\n\
The change does not take effect for the program being debugged\n\
until the next time it is started."), &cmdlist);
set_cmd_completer (c, filename_completer);
- add_com ("echo", class_support, echo_command,
- "Print a constant string. Give string as argument.\n\
+ add_com ("echo", class_support, echo_command, _("\
+Print a constant string. Give string as argument.\n\
C escape sequences may be used in the argument.\n\
No newline is added at the end of the argument;\n\
use \"\\n\" if you want a newline to be printed.\n\
Since leading and trailing whitespace are ignored in command arguments,\n\
if you want to print some you must use \"\\\" before leading whitespace\n\
-to be printed or after trailing whitespace.");
- add_com ("document", class_support, document_command,
- "Document a user-defined command.\n\
+to be printed or after trailing whitespace."));
+ add_com ("document", class_support, document_command, _("\
+Document a user-defined command.\n\
Give command name as argument. Give documentation on following lines.\n\
-End with a line of just \"end\".");
- add_com ("define", class_support, define_command,
- "Define a new command name. Command name is argument.\n\
+End with a line of just \"end\"."));
+ add_com ("define", class_support, define_command, _("\
+Define a new command name. Command name is argument.\n\
Definition appears on following lines, one command per line.\n\
End with a line of just \"end\".\n\
Use the \"document\" command to give documentation for the new command.\n\
-Commands defined in this way may have up to ten arguments.");
+Commands defined in this way may have up to ten arguments."));
c = add_cmd ("source", class_support, source_command, _("\
Read commands from a file named FILE.\n\
@@ -1114,8 +1114,9 @@ Note that the file \"" GDBINIT_FILENAME "\" is read automatically in this way\n\
when gdb is started."), &cmdlist);
set_cmd_completer (c, filename_completer);
- add_com ("quit", class_support, quit_command, "Exit gdb.");
- c = add_com ("help", class_support, help_command, "Print list of commands.");
+ add_com ("quit", class_support, quit_command, _("Exit gdb."));
+ c = add_com ("help", class_support, help_command,
+ _("Print list of commands."));
set_cmd_completer (c, command_completer);
add_com_alias ("q", "quit", class_support, 1);
add_com_alias ("h", "help", class_support, 1);
@@ -1128,10 +1129,10 @@ when gdb is started."), &cmdlist);
set_verbose (NULL, 0, c);
add_prefix_cmd ("history", class_support, set_history,
- "Generic command for setting command history parameters.",
+ _("Generic command for setting command history parameters."),
&sethistlist, "set history ", 0, &setlist);
add_prefix_cmd ("history", class_support, show_history,
- "Generic command for showing command history parameters.",
+ _("Generic command for showing command history parameters."),
&showhistlist, "show history ", 0, &showlist);
deprecated_add_show_from_set
@@ -1140,19 +1141,19 @@ when gdb is started."), &cmdlist);
Without an argument, history expansion is enabled.", &sethistlist),
&showhistlist);
- add_prefix_cmd ("info", class_info, info_command,
- "Generic command for showing things about the program being debugged.",
+ add_prefix_cmd ("info", class_info, info_command, _("\
+Generic command for showing things about the program being debugged."),
&infolist, "info ", 0, &cmdlist);
add_com_alias ("i", "info", class_info, 1);
add_com ("complete", class_obscure, complete_command,
- "List the completions for the rest of the line as a command.");
+ _("List the completions for the rest of the line as a command."));
add_prefix_cmd ("show", class_info, show_command,
- "Generic command for showing things about the debugger.",
+ _("Generic command for showing things about the debugger."),
&showlist, "show ", 0, &cmdlist);
/* Another way to get at the same thing. */
- add_info ("set", show_command, "Show all GDB settings.");
+ add_info ("set", show_command, _("Show all GDB settings."));
add_cmd ("commands", no_class, show_commands, _("\
Show the history of commands you typed.\n\
@@ -1163,18 +1164,18 @@ the previous command number shown."),
add_cmd ("version", no_class, show_version,
_("Show what version of GDB this is."), &showlist);
- add_com ("while", class_support, while_command,
- "Execute nested commands WHILE the conditional expression is non zero.\n\
+ add_com ("while", class_support, while_command, _("\
+Execute nested commands WHILE the conditional expression is non zero.\n\
The conditional expression must follow the word `while' and must in turn be\n\
followed by a new line. The nested commands must be entered one per line,\n\
-and should be terminated by the word `end'.");
+and should be terminated by the word `end'."));
- add_com ("if", class_support, if_command,
- "Execute nested commands once IF the conditional expression is non zero.\n\
+ add_com ("if", class_support, if_command, _("\
+Execute nested commands once IF the conditional expression is non zero.\n\
The conditional expression must follow the word `if' and must in turn be\n\
followed by a new line. The nested commands must be entered one per line,\n\
and should be terminated by the word 'else' or `end'. If an else clause\n\
-is used, the same rules apply to its nested commands as to the first ones.");
+is used, the same rules apply to its nested commands as to the first ones."));
/* If target is open when baud changes, it doesn't take effect until the
next open (I think, not sure). */
@@ -1202,45 +1203,43 @@ from the target.", &setlist),
&showlist);
add_prefix_cmd ("debug", no_class, set_debug,
- "Generic command for setting gdb debugging flags",
+ _("Generic command for setting gdb debugging flags"),
&setdebuglist, "set debug ", 0, &setlist);
add_prefix_cmd ("debug", no_class, show_debug,
- "Generic command for showing gdb debugging flags",
+ _("Generic command for showing gdb debugging flags"),
&showdebuglist, "show debug ", 0, &showlist);
- c = add_com ("shell", class_support, shell_escape,
- "Execute the rest of the line as a shell command.\n\
-With no arguments, run an inferior shell.");
+ c = add_com ("shell", class_support, shell_escape, _("\
+Execute the rest of the line as a shell command.\n\
+With no arguments, run an inferior shell."));
set_cmd_completer (c, filename_completer);
- c = add_com ("edit", class_files, edit_command,
- concat ("Edit specified file or function.\n\
+ c = add_com ("edit", class_files, edit_command, _("\
+Edit specified file or function.\n\
With no argument, edits file containing most recent line listed.\n\
-", "\
Editing targets can be specified in these ways:\n\
FILE:LINENUM, to edit at that line in that file,\n\
FUNCTION, to edit at the beginning of that function,\n\
FILE:FUNCTION, to distinguish among like-named static functions.\n\
*ADDRESS, to edit at the line containing that address.\n\
-Uses EDITOR environment variable contents as editor (or ex as default).",NULL));
+Uses EDITOR environment variable contents as editor (or ex as default)."));
c->completer = location_completer;
- add_com ("list", class_files, list_command,
- concat ("List specified function or line.\n\
+ add_com ("list", class_files, list_command, _("\
+List specified function or line.\n\
With no argument, lists ten more lines after or around previous listing.\n\
\"list -\" lists the ten lines before a previous ten-line listing.\n\
One argument specifies a line, and ten lines are listed around that line.\n\
Two arguments with comma between specify starting and ending lines to list.\n\
-", "\
Lines can be specified in these ways:\n\
LINENUM, to list around that line in current file,\n\
FILE:LINENUM, to list around that line in that file,\n\
FUNCTION, to list around beginning of that function,\n\
FILE:FUNCTION, to distinguish among like-named static functions.\n\
*ADDRESS, to list around the line containing that address.\n\
-With two args if one is empty it stands for ten lines away from the other arg.", NULL));
+With two args if one is empty it stands for ten lines away from the other arg."));
if (!xdb_commands)
add_com_alias ("l", "list", class_files, 1);
@@ -1250,11 +1249,11 @@ With two args if one is empty it stands for ten lines away from the other arg.",
if (dbx_commands)
add_com_alias ("file", "list", class_files, 1);
- c = add_com ("disassemble", class_vars, disassemble_command,
- "Disassemble a specified section of memory.\n\
+ c = add_com ("disassemble", class_vars, disassemble_command, _("\
+Disassemble a specified section of memory.\n\
Default is the function surrounding the pc of the selected frame.\n\
With a single argument, the function surrounding that address is dumped.\n\
-Two arguments are taken as a range of memory to dump.");
+Two arguments are taken as a range of memory to dump."));
set_cmd_completer (c, location_completer);
if (xdb_commands)
add_com_alias ("va", "disassemble", class_xdb, 0);
@@ -1268,14 +1267,15 @@ Two arguments are taken as a range of memory to dump.");
if (xdb_commands)
add_com_alias ("!", "shell", class_support, 0);
- c = add_com ("make", class_support, make_command,
- "Run the ``make'' program using the rest of the line as arguments.");
+ c = add_com ("make", class_support, make_command, _("\
+Run the ``make'' program using the rest of the line as arguments."));
set_cmd_completer (c, filename_completer);
add_cmd ("user", no_class, show_user, _("\
Show definitions of user defined commands.\n\
Argument is the name of the user defined command.\n\
With no argument, show definitions of all user defined commands."), &showlist);
- add_com ("apropos", class_support, apropos_command, "Search for commands matching a REGEXP");
+ add_com ("apropos", class_support, apropos_command,
+ _("Search for commands matching a REGEXP"));
deprecated_add_show_from_set
(add_set_cmd ("max-user-call-depth", no_class, var_integer,
diff --git a/gdb/cli/cli-dump.c b/gdb/cli/cli-dump.c
index e1abdc6..e2323d6 100644
--- a/gdb/cli/cli-dump.c
+++ b/gdb/cli/cli-dump.c
@@ -675,13 +675,13 @@ void
_initialize_cli_dump (void)
{
struct cmd_list_element *c;
- add_prefix_cmd ("dump", class_vars, dump_command, "\
-Dump target code/data to a local file.",
+ add_prefix_cmd ("dump", class_vars, dump_command, _("\
+Dump target code/data to a local file."),
&dump_cmdlist, "dump ",
0/*allow-unknown*/,
&cmdlist);
- add_prefix_cmd ("append", class_vars, append_command, "\
-Append target code/data to a local file.",
+ add_prefix_cmd ("append", class_vars, append_command, _("\
+Append target code/data to a local file."),
&append_cmdlist, "append ",
0/*allow-unknown*/,
&cmdlist);
@@ -696,32 +696,32 @@ Write the value of an expression to a raw binary file.\n\
Arguments are FILE EXPRESSION. Writes the value of EXPRESSION to\n\
the specified FILE in raw target ordered bytes.");
- add_prefix_cmd ("srec", all_commands, srec_dump_command, "\
-Write target code/data to an srec file.",
+ add_prefix_cmd ("srec", all_commands, srec_dump_command, _("\
+Write target code/data to an srec file."),
&srec_cmdlist, "dump srec ",
0 /*allow-unknown*/,
&dump_cmdlist);
- add_prefix_cmd ("ihex", all_commands, ihex_dump_command, "\
-Write target code/data to an intel hex file.",
+ add_prefix_cmd ("ihex", all_commands, ihex_dump_command, _("\
+Write target code/data to an intel hex file."),
&ihex_cmdlist, "dump ihex ",
0 /*allow-unknown*/,
&dump_cmdlist);
- add_prefix_cmd ("tekhex", all_commands, tekhex_dump_command, "\
-Write target code/data to a tekhex file.",
+ add_prefix_cmd ("tekhex", all_commands, tekhex_dump_command, _("\
+Write target code/data to a tekhex file."),
&tekhex_cmdlist, "dump tekhex ",
0 /*allow-unknown*/,
&dump_cmdlist);
- add_prefix_cmd ("binary", all_commands, binary_dump_command, "\
-Write target code/data to a raw binary file.",
+ add_prefix_cmd ("binary", all_commands, binary_dump_command, _("\
+Write target code/data to a raw binary file."),
&binary_dump_cmdlist, "dump binary ",
0 /*allow-unknown*/,
&dump_cmdlist);
- add_prefix_cmd ("binary", all_commands, binary_append_command, "\
-Append target code/data to a raw binary file.",
+ add_prefix_cmd ("binary", all_commands, binary_append_command, _("\
+Append target code/data to a raw binary file."),
&binary_append_cmdlist, "append binary ",
0 /*allow-unknown*/,
&append_cmdlist);
@@ -786,12 +786,12 @@ Arguments are FILE EXPRESSION. Writes the value of EXPRESSION\n\
to the specified FILE in raw target ordered bytes."),
&binary_append_cmdlist);
- c = add_com ("restore", class_vars, restore_command,
- "Restore the contents of FILE to target memory.\n\
+ c = add_com ("restore", class_vars, restore_command, _("\
+Restore the contents of FILE to target memory.\n\
Arguments are FILE OFFSET START END where all except FILE are optional.\n\
OFFSET will be added to the base address of the file (default zero).\n\
If START and END are given, only the file contents within that range\n\
-(file relative) will be restored to target memory.");
+(file relative) will be restored to target memory."));
c->completer = filename_completer;
/* FIXME: completers for other commands. */
}
diff --git a/gdb/cli/cli-logging.c b/gdb/cli/cli-logging.c
index 9b4d094..4e04bdf 100644
--- a/gdb/cli/cli-logging.c
+++ b/gdb/cli/cli-logging.c
@@ -170,10 +170,10 @@ _initialize_cli_logging (void)
add_prefix_cmd ("logging", class_support, set_logging_command,
- "Set logging options", &set_logging_cmdlist,
+ _("Set logging options"), &set_logging_cmdlist,
"set logging ", 0, &setlist);
add_prefix_cmd ("logging", class_support, show_logging_command,
- "Show logging options", &show_logging_cmdlist,
+ _("Show logging options"), &show_logging_cmdlist,
"show logging ", 0, &showlist);
add_setshow_boolean_cmd ("overwrite", class_support, &logging_overwrite, _("\
Set whether logging overwrites or appends to the log file."), _("\