diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-07-28 17:26:27 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-07-28 17:26:27 +0000 |
commit | 3b64bf9877bc5cfacd10117a1a0656c464545995 (patch) | |
tree | 8083bfb73b0053da51316ca45794ef24073e0671 /gdb/cli/cli-logging.c | |
parent | 54a5b07d668e9320efb1ada27582f859ccfaaaf3 (diff) | |
download | gdb-3b64bf9877bc5cfacd10117a1a0656c464545995.zip gdb-3b64bf9877bc5cfacd10117a1a0656c464545995.tar.gz gdb-3b64bf9877bc5cfacd10117a1a0656c464545995.tar.bz2 |
2004-07-28 Andrew Cagney <cagney@gnu.org>
* cli/cli-decode.c (add_setshow_zinteger_cmd)
(add_setshow_cmd, add_setshow_auto_boolean_cmd)
(add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
print parameters. Make string parameters constant.
* command.h: Update. Update copyright.
* remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
* observer.c (_initialize_observer): Ditto.
* frame.c (_initialize_frame): Ditto.
* complaints.c (_initialize_complaints): Ditto.
* maint.c (_initialize_maint_cmds): Ditto.
* target.c (initialize_targets): Ditto.
* cli/cli-logging.c (_initialize_cli_logging): Ditto.
* infcall.c (_initialize_infcall): Ditto.
* arm-tdep.c (_initialize_arm_tdep): Ditto.
* m32r-rom.c (_initialize_m32r_rom): Ditto.
* remote-rdi.c (_initialize_remote_rdi): Ditto.
* d10v-tdep.c (_initialize_d10v_tdep): Ditto.
* mips-tdep.c (_initialize_mips_tdep): Ditto.
Diffstat (limited to 'gdb/cli/cli-logging.c')
-rw-r--r-- | gdb/cli/cli-logging.c | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/gdb/cli/cli-logging.c b/gdb/cli/cli-logging.c index db34b0d..ec362e3 100644 --- a/gdb/cli/cli-logging.c +++ b/gdb/cli/cli-logging.c @@ -1,7 +1,6 @@ /* Command-line output logging for GDB, the GNU debugger. - Copyright 2003 - Free Software Foundation, Inc. + Copyright 2003, 2004 Free Software Foundation, Inc. This file is part of GDB. @@ -175,26 +174,24 @@ _initialize_cli_logging (void) add_prefix_cmd ("logging", class_support, show_logging_command, "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.\n", - "Show whether logging overwrites or appends " - "to the log file.\n", + add_setshow_boolean_cmd ("overwrite", class_support, &logging_overwrite, "\ +Set whether logging overwrites or appends to the log file.", "\ +Show whether logging overwrites or appends to the log file.", "\ +If set, logging overrides the log file.", "\ +Whether logging overwrites or appends to the log file is %s.", NULL, NULL, &set_logging_cmdlist, &show_logging_cmdlist); - add_setshow_boolean_cmd ("redirect", class_support, &logging_redirect, - "Set the logging output mode.\n" - "If redirect is off, output will go to both the " - "screen and the log file.\n" - "If redirect is on, output will go only to the log " - "file.", - "Show the logging output mode.\n" - "If redirect is off, output will go to both the " - "screen and the log file.\n" - "If redirect is on, output will go only to the log " - "file.", + add_setshow_boolean_cmd ("redirect", class_support, &logging_redirect, "\ +Set the logging output mode.", "\ +Show the logging output mode.", "\ +If redirect is off, output will go to both the screen and the log file.\n\ +If redirect is on, output will go only to the log file.", "\ +The logging output mode is %s.", NULL, NULL, &set_logging_cmdlist, &show_logging_cmdlist); - add_setshow_cmd ("file", class_support, var_filename, &logging_filename, - "Set the current logfile.", "Show the current logfile.", + add_setshow_cmd ("file", class_support, var_filename, &logging_filename, "\ +Set the current logfile.", "\ +Show the current logfile.", "\ +The logfile is used when directing GDB's output.", "\ +The current logfile is %s.", NULL, NULL, &set_logging_cmdlist, &show_logging_cmdlist); add_cmd ("on", class_support, set_logging_on, "Enable logging.", &set_logging_cmdlist); |