diff options
author | Michael Snyder <msnyder@vmware.com> | 2010-12-29 02:11:04 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2010-12-29 02:11:04 +0000 |
commit | ebcd3b23ee08bb41a5492dce554c810eb59f895d (patch) | |
tree | 0f968b9cd53b78a3cb7c2674e91cc901aef7db23 /gdb/cli/cli-setshow.c | |
parent | 3458c4521e012446279ea868e54757247940a16c (diff) | |
download | gdb-ebcd3b23ee08bb41a5492dce554c810eb59f895d.zip gdb-ebcd3b23ee08bb41a5492dce554c810eb59f895d.tar.gz gdb-ebcd3b23ee08bb41a5492dce554c810eb59f895d.tar.bz2 |
2010-12-28 Michael Snyder <msnyder@vmware.com>
* command.h: Comment clean-up.
* cli/cli-cmds.c: Ditto.
* cli/cli-cmds.h: Ditto.
* cli/cli-decode.c: Ditto.
* cli/cli-decode.h: Ditto.
* cli/cli-dump.c: Ditto.
* cli/cli-interp.c: Ditto.
* cli/cli-logging.c: Ditto.
* cli/cli-script.c: Ditto.
* cli/cli-setshow.c: Ditto.
* cli/cli-setshow.h: Ditto.
Diffstat (limited to 'gdb/cli/cli-setshow.c')
-rw-r--r-- | gdb/cli/cli-setshow.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/gdb/cli/cli-setshow.c b/gdb/cli/cli-setshow.c index 37f7918..c54ae8f 100644 --- a/gdb/cli/cli-setshow.c +++ b/gdb/cli/cli-setshow.c @@ -29,7 +29,7 @@ #include "cli/cli-cmds.h" #include "cli/cli-setshow.h" -/* Prototypes for local functions */ +/* Prototypes for local functions. */ static int parse_binary_operation (char *); @@ -58,7 +58,7 @@ parse_auto_binary_operation (const char *arg) return AUTO_BOOLEAN_AUTO; } error (_("\"on\", \"off\" or \"auto\" expected.")); - return AUTO_BOOLEAN_AUTO; /* pacify GCC */ + return AUTO_BOOLEAN_AUTO; /* Pacify GCC. */ } static int @@ -117,10 +117,10 @@ deprecated_show_value_hack (struct ui_file *ignore_file, } } -/* Do a "set" or "show" command. ARG is NULL if no argument, or the text - of the argument, and FROM_TTY is nonzero if this command is being entered - directly by the user (i.e. these are just like any other - command). C is the command list element for the command. */ +/* Do a "set" or "show" command. ARG is NULL if no argument, or the + text of the argument, and FROM_TTY is nonzero if this command is + being entered directly by the user (i.e. these are just like any + other command). C is the command list element for the command. */ void do_setshow_command (char *arg, int from_tty, struct cmd_list_element *c) @@ -249,7 +249,8 @@ do_setshow_command (char *arg, int from_tty, struct cmd_list_element *c) const char *match = NULL; char *p; - /* if no argument was supplied, print an informative error message */ + /* If no argument was supplied, print an informative error + message. */ if (arg == NULL) { char *msg; @@ -268,7 +269,8 @@ do_setshow_command (char *arg, int from_tty, struct cmd_list_element *c) strcat (msg, ", "); strcat (msg, c->enums[i]); } - error (_("Requires an argument. Valid arguments are %s."), msg); + error (_("Requires an argument. Valid arguments are %s."), + msg); } p = strchr (arg, ' '); @@ -286,7 +288,7 @@ do_setshow_command (char *arg, int from_tty, struct cmd_list_element *c) { match = c->enums[i]; nmatches = 1; - break; /* exact match. */ + break; /* Exact match. */ } else { |