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/command.h | |
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/command.h')
-rw-r--r-- | gdb/command.h | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/gdb/command.h b/gdb/command.h index e2a44b2..348adab 100644 --- a/gdb/command.h +++ b/gdb/command.h @@ -1,7 +1,7 @@ /* Header file for command-reading library command.c. Copyright 1986, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1999, - 2000, 2002 Free Software Foundation, Inc. + 2000, 2002, 2004 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -214,7 +214,8 @@ extern void help_cmd_list (struct cmd_list_element *, enum command_class, extern void add_setshow_cmd (char *name, enum command_class class, var_types var_type, void *var, - char *set_doc, char *show_doc, + const char *set_doc, const char *show_doc, + const char *help_doc, const char *print, cmd_sfunc_ftype *set_func, cmd_sfunc_ftype *show_func, struct cmd_list_element **set_list, @@ -223,7 +224,8 @@ extern void add_setshow_cmd (char *name, extern void add_setshow_cmd_full (char *name, enum command_class class, var_types var_type, void *var, - char *set_doc, char *show_doc, + const char *set_doc, const char *show_doc, + const char *help_doc, const char *print, cmd_sfunc_ftype *set_func, cmd_sfunc_ftype *show_func, struct cmd_list_element **set_list, @@ -247,7 +249,10 @@ extern struct cmd_list_element *add_set_enum_cmd (char *name, extern void add_setshow_auto_boolean_cmd (char *name, enum command_class class, enum auto_boolean *var, - char *set_doc, char *show_doc, + const char *set_doc, + const char *show_doc, + const char *help_doc, + const char *print, cmd_sfunc_ftype *set_func, cmd_sfunc_ftype *show_func, struct cmd_list_element **set_list, @@ -256,8 +261,8 @@ extern void add_setshow_auto_boolean_cmd (char *name, extern void add_setshow_boolean_cmd (char *name, enum command_class class, int *var, - char *set_doc, - char *show_doc, + const char *set_doc, const char *show_doc, + const char *help_doc, const char *print, cmd_sfunc_ftype *set_func, cmd_sfunc_ftype *show_func, struct cmd_list_element **set_list, @@ -266,8 +271,10 @@ extern void add_setshow_boolean_cmd (char *name, extern void add_setshow_uinteger_cmd (char *name, enum command_class class, unsigned int *var, - char *set_doc, - char *show_doc, + const char *set_doc, + const char *show_doc, + const char *help_doc, + const char *print, cmd_sfunc_ftype *set_func, cmd_sfunc_ftype *show_func, struct cmd_list_element **set_list, @@ -276,8 +283,10 @@ extern void add_setshow_uinteger_cmd (char *name, extern void add_setshow_zinteger_cmd (char *name, enum command_class class, int *var, - char *set_doc, - char *show_doc, + const char *set_doc, + const char *show_doc, + const char *help_doc, + const char *print, cmd_sfunc_ftype *set_func, cmd_sfunc_ftype *show_func, struct cmd_list_element **set_list, |