diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-02-14 18:10:11 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-02-14 18:10:11 +0000 |
commit | 1a966eabdfe5d28f2e17f73988c9124cc5b76f31 (patch) | |
tree | 326d0cfbf97d88b2b9a3c31ab76328966afbef03 /gdb/cli | |
parent | 7915a72c7f0c255cfcf47c1b186d3739aeafe4da (diff) | |
download | gdb-1a966eabdfe5d28f2e17f73988c9124cc5b76f31.zip gdb-1a966eabdfe5d28f2e17f73988c9124cc5b76f31.tar.gz gdb-1a966eabdfe5d28f2e17f73988c9124cc5b76f31.tar.bz2 |
2005-02-14 Andrew Cagney <cagney@gnu.org>
Mark up add_cmd.
* arch-utils.c, avr-tdep.c, breakpoint.c, corefile.c: Update.
* cp-abi.c, cp-namespace.c, cp-support.c, dummy-frame.c: Update.
* exec.c, gnu-nat.c, go32-nat.c, hppa-tdep.c, infcmd.c: Update.
* infrun.c, interps.c, macrocmd.c, maint.c, memattr.c: Update.
* mips-tdep.c, ocd.c, osabi.c, printcmd.c, regcache.c: Update.
* reggroups.c, remote-fileio.c, remote-rdi.c, remote.c: Update.
* sol-thread.c, source.c, stack.c, symfile-mem.c: Update.
* symfile.c, thread.c, tracepoint.c, valprint.c, value.c: Update.
* win32-nat.c, cli/cli-cmds.c, cli/cli-dump.c: Update.
* cli/cli-logging.c, tui/tui-regs.c: Update.
Diffstat (limited to 'gdb/cli')
-rw-r--r-- | gdb/cli/cli-cmds.c | 60 | ||||
-rw-r--r-- | gdb/cli/cli-dump.c | 40 | ||||
-rw-r--r-- | gdb/cli/cli-logging.c | 4 |
3 files changed, 54 insertions, 50 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index ca09332..4fa6a5f 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -1048,41 +1048,45 @@ init_cli_cmds (void) /* Define the classes of commands. They will appear in the help list in the reverse of this order. */ - add_cmd ("internals", class_maintenance, NULL, - "Maintenance commands.\n\ + add_cmd ("internals", class_maintenance, NULL, _("\ +Maintenance commands.\n\ Some gdb commands are provided just for use by gdb maintainers.\n\ These commands are subject to frequent change, and may not be as\n\ -well documented as user commands.", +well documented as user commands."), &cmdlist); - add_cmd ("obscure", class_obscure, NULL, "Obscure features.", &cmdlist); - add_cmd ("aliases", class_alias, NULL, "Aliases of other commands.", &cmdlist); - add_cmd ("user-defined", class_user, NULL, "User-defined commands.\n\ + add_cmd ("obscure", class_obscure, NULL, _("Obscure features."), &cmdlist); + add_cmd ("aliases", class_alias, NULL, _("Aliases of other commands."), &cmdlist); + add_cmd ("user-defined", class_user, NULL, _("\ +User-defined commands.\n\ The commands in this class are those defined by the user.\n\ -Use the \"define\" command to define a command.", &cmdlist); - add_cmd ("support", class_support, NULL, "Support facilities.", &cmdlist); +Use the \"define\" command to define a command."), &cmdlist); + add_cmd ("support", class_support, NULL, _("Support facilities."), &cmdlist); if (!dbx_commands) - add_cmd ("status", class_info, NULL, "Status inquiries.", &cmdlist); - add_cmd ("files", class_files, NULL, "Specifying and examining files.", &cmdlist); - add_cmd ("breakpoints", class_breakpoint, NULL, "Making program stop at certain points.", &cmdlist); - add_cmd ("data", class_vars, NULL, "Examining data.", &cmdlist); - add_cmd ("stack", class_stack, NULL, "Examining the stack.\n\ + add_cmd ("status", class_info, NULL, _("Status inquiries."), &cmdlist); + add_cmd ("files", class_files, NULL, _("Specifying and examining files."), + &cmdlist); + add_cmd ("breakpoints", class_breakpoint, NULL, + _("Making program stop at certain points."), &cmdlist); + add_cmd ("data", class_vars, NULL, _("Examining data."), &cmdlist); + add_cmd ("stack", class_stack, NULL, _("\ +Examining the stack.\n\ The stack is made up of stack frames. Gdb assigns numbers to stack frames\n\ counting from zero for the innermost (currently executing) frame.\n\n\ At any time gdb identifies one frame as the \"selected\" frame.\n\ Variable lookups are done with respect to the selected frame.\n\ When the program being debugged stops, gdb selects the innermost frame.\n\ -The commands below can be used to select other frames by number or address.", +The commands below can be used to select other frames by number or address."), &cmdlist); - add_cmd ("running", class_run, NULL, "Running the program.", &cmdlist); + add_cmd ("running", class_run, NULL, _("Running the program."), &cmdlist); /* Define general commands. */ 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\ + 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); +until the next time it is started."), &cmdlist); set_cmd_completer (c, filename_completer); add_com ("echo", class_support, echo_command, @@ -1104,10 +1108,10 @@ 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."); - c = add_cmd ("source", class_support, source_command, - "Read commands from a file named FILE.\n\ + c = add_cmd ("source", class_support, source_command, _("\ +Read commands from a file named FILE.\n\ Note that the file \"" GDBINIT_FILENAME "\" is read automatically in this way\n\ -when gdb is started.", &cmdlist); +when gdb is started."), &cmdlist); set_cmd_completer (c, filename_completer); add_com ("quit", class_support, quit_command, "Exit gdb."); @@ -1150,14 +1154,14 @@ Without an argument, history expansion is enabled.", &sethistlist), /* Another way to get at the same thing. */ add_info ("set", show_command, "Show all GDB settings."); - add_cmd ("commands", no_class, show_commands, - "Show the history of commands you typed.\n\ + add_cmd ("commands", no_class, show_commands, _("\ +Show the history of commands you typed.\n\ You can supply a command number to start with, or a `+' to start after\n\ -the previous command number shown.", +the previous command number shown."), &showlist); add_cmd ("version", no_class, show_version, - "Show what version of GDB this is.", &showlist); + _("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\ @@ -1267,10 +1271,10 @@ Two arguments are taken as a range of memory to dump."); 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\ + 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); +With no argument, show definitions of all user defined commands."), &showlist); add_com ("apropos", class_support, apropos_command, "Search for commands matching a REGEXP"); deprecated_add_show_from_set diff --git a/gdb/cli/cli-dump.c b/gdb/cli/cli-dump.c index 3a44698..e1abdc6 100644 --- a/gdb/cli/cli-dump.c +++ b/gdb/cli/cli-dump.c @@ -726,64 +726,64 @@ Append target code/data to a raw binary file.", 0 /*allow-unknown*/, &append_cmdlist); - add_cmd ("memory", all_commands, dump_srec_memory, "\ + add_cmd ("memory", all_commands, dump_srec_memory, _("\ Write contents of memory to an srec file.\n\ Arguments are FILE START STOP. Writes the contents of memory\n\ -within the range [START .. STOP) to the specifed FILE in srec format.", +within the range [START .. STOP) to the specifed FILE in srec format."), &srec_cmdlist); - add_cmd ("value", all_commands, dump_srec_value, "\ + add_cmd ("value", all_commands, dump_srec_value, _("\ Write the value of an expression to an srec file.\n\ Arguments are FILE EXPRESSION. Writes the value of EXPRESSION\n\ -to the specified FILE in srec format.", +to the specified FILE in srec format."), &srec_cmdlist); - add_cmd ("memory", all_commands, dump_ihex_memory, "\ + add_cmd ("memory", all_commands, dump_ihex_memory, _("\ Write contents of memory to an ihex file.\n\ Arguments are FILE START STOP. Writes the contents of memory within\n\ -the range [START .. STOP) to the specifed FILE in intel hex format.", +the range [START .. STOP) to the specifed FILE in intel hex format."), &ihex_cmdlist); - add_cmd ("value", all_commands, dump_ihex_value, "\ + add_cmd ("value", all_commands, dump_ihex_value, _("\ Write the value of an expression to an ihex file.\n\ Arguments are FILE EXPRESSION. Writes the value of EXPRESSION\n\ -to the specified FILE in intel hex format.", +to the specified FILE in intel hex format."), &ihex_cmdlist); - add_cmd ("memory", all_commands, dump_tekhex_memory, "\ + add_cmd ("memory", all_commands, dump_tekhex_memory, _("\ Write contents of memory to a tekhex file.\n\ Arguments are FILE START STOP. Writes the contents of memory\n\ -within the range [START .. STOP) to the specifed FILE in tekhex format.", +within the range [START .. STOP) to the specifed FILE in tekhex format."), &tekhex_cmdlist); - add_cmd ("value", all_commands, dump_tekhex_value, "\ + add_cmd ("value", all_commands, dump_tekhex_value, _("\ Write the value of an expression to a tekhex file.\n\ Arguments are FILE EXPRESSION. Writes the value of EXPRESSION\n\ -to the specified FILE in tekhex format.", +to the specified FILE in tekhex format."), &tekhex_cmdlist); - add_cmd ("memory", all_commands, dump_binary_memory, "\ + add_cmd ("memory", all_commands, dump_binary_memory, _("\ Write contents of memory to a raw binary file.\n\ Arguments are FILE START STOP. Writes the contents of memory\n\ -within the range [START .. STOP) to the specifed FILE in binary format.", +within the range [START .. STOP) to the specifed FILE in binary format."), &binary_dump_cmdlist); - add_cmd ("value", all_commands, dump_binary_value, "\ + add_cmd ("value", all_commands, dump_binary_value, _("\ Write the value of an expression to a raw binary file.\n\ Arguments are FILE EXPRESSION. Writes the value of EXPRESSION\n\ -to the specified FILE in raw target ordered bytes.", +to the specified FILE in raw target ordered bytes."), &binary_dump_cmdlist); - add_cmd ("memory", all_commands, append_binary_memory, "\ + add_cmd ("memory", all_commands, append_binary_memory, _("\ Append contents of memory to a raw binary file.\n\ Arguments are FILE START STOP. Writes the contents of memory within the\n\ -range [START .. STOP) to the specifed FILE in raw target ordered bytes.", +range [START .. STOP) to the specifed FILE in raw target ordered bytes."), &binary_append_cmdlist); - add_cmd ("value", all_commands, append_binary_value, "\ + add_cmd ("value", all_commands, append_binary_value, _("\ Append the value of an expression to a raw binary file.\n\ Arguments are FILE EXPRESSION. Writes the value of EXPRESSION\n\ -to the specified FILE in raw target ordered bytes.", +to the specified FILE in raw target ordered bytes."), &binary_append_cmdlist); c = add_com ("restore", class_vars, restore_command, diff --git a/gdb/cli/cli-logging.c b/gdb/cli/cli-logging.c index 47e24b3..9b4d094 100644 --- a/gdb/cli/cli-logging.c +++ b/gdb/cli/cli-logging.c @@ -196,9 +196,9 @@ The logfile is used when directing GDB's output."), NULL, NULL, &set_logging_cmdlist, &show_logging_cmdlist); add_cmd ("on", class_support, set_logging_on, - "Enable logging.", &set_logging_cmdlist); + _("Enable logging."), &set_logging_cmdlist); add_cmd ("off", class_support, set_logging_off, - "Disable logging.", &set_logging_cmdlist); + _("Disable logging."), &set_logging_cmdlist); logging_filename = xstrdup ("gdb.txt"); } |