diff options
author | Pedro Alves <palves@redhat.com> | 2009-08-13 14:56:19 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-08-13 14:56:19 +0000 |
commit | 5efd5804f7ba64dc4c42d8c3db2d4ab2eeebac75 (patch) | |
tree | fe02f5e8a7893f132d4726987987651c18dd3a29 /gdb/cli/cli-decode.c | |
parent | ef5e0cb158fe57480e963c022879ccf50bf1f335 (diff) | |
download | gdb-5efd5804f7ba64dc4c42d8c3db2d4ab2eeebac75.zip gdb-5efd5804f7ba64dc4c42d8c3db2d4ab2eeebac75.tar.gz gdb-5efd5804f7ba64dc4c42d8c3db2d4ab2eeebac75.tar.bz2 |
Revert 2009-08-07 changes for PR gdb/8869:
* language.c (set_language_command): Strip whitespace.
(set_type_command): Likewise.
(set_range_command): Likewise.
* language.c (language_completer): New function.
(range_or_type_completer): New function.
(case_completer): New function.
(_initialize_language): Set completers.
* cli/cli-decode.c (add_setshow_string_cmd): Return the "set"
command.
(add_setshow_string_noescape_cmd): Likewise.
(add_setshow_integer_cmd): Likewise.
(add_setshow_uinteger_cmd): Likewise.
(add_setshow_zinteger_cmd): Likewise.
(add_setshow_zuinteger_cmd): Likewise.
* command.h (add_setshow_string_cmd,
add_setshow_string_noescape_cmd, add_setshow_uinteger_cmd,
add_setshow_zinteger_cmd, add_setshow_zuinteger_cmd): Update.
Diffstat (limited to 'gdb/cli/cli-decode.c')
-rw-r--r-- | gdb/cli/cli-decode.c | 54 |
1 files changed, 18 insertions, 36 deletions
diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c index b547ba9..3e4f6f5 100644 --- a/gdb/cli/cli-decode.c +++ b/gdb/cli/cli-decode.c @@ -494,9 +494,8 @@ add_setshow_filename_cmd (char *name, enum command_class class, } /* Add element named NAME to both the set and show command LISTs (the - list for set/show or some sublist thereof). Return the new "set" - command. */ -struct cmd_list_element * + list for set/show or some sublist thereof). */ +void add_setshow_string_cmd (char *name, enum command_class class, char **var, const char *set_doc, const char *show_doc, @@ -506,19 +505,16 @@ add_setshow_string_cmd (char *name, enum command_class class, struct cmd_list_element **set_list, struct cmd_list_element **show_list) { - struct cmd_list_element *cmd; add_setshow_cmd_full (name, class, var_string, var, set_doc, show_doc, help_doc, set_func, show_func, set_list, show_list, - &cmd, NULL); - return cmd; + NULL, NULL); } /* Add element named NAME to both the set and show command LISTs (the - list for set/show or some sublist thereof). Return the new "set" - command. */ -struct cmd_list_element * + list for set/show or some sublist thereof). */ +void add_setshow_string_noescape_cmd (char *name, enum command_class class, char **var, const char *set_doc, const char *show_doc, @@ -528,13 +524,11 @@ add_setshow_string_noescape_cmd (char *name, enum command_class class, struct cmd_list_element **set_list, struct cmd_list_element **show_list) { - struct cmd_list_element *cmd; add_setshow_cmd_full (name, class, var_string_noescape, var, set_doc, show_doc, help_doc, set_func, show_func, set_list, show_list, - &cmd, NULL); - return cmd; + NULL, NULL); } /* Add element named NAME to both the set and show command LISTs (the @@ -564,9 +558,8 @@ add_setshow_optional_filename_cmd (char *name, enum command_class class, /* Add element named NAME to both the set and show command LISTs (the list for set/show or some sublist thereof). CLASS is as in add_cmd. VAR is address of the variable which will contain the - value. SET_DOC and SHOW_DOC are the documentation strings. Return - the new "set" command. */ -struct cmd_list_element * + value. SET_DOC and SHOW_DOC are the documentation strings. */ +void add_setshow_integer_cmd (char *name, enum command_class class, int *var, const char *set_doc, const char *show_doc, @@ -576,21 +569,18 @@ add_setshow_integer_cmd (char *name, enum command_class class, struct cmd_list_element **set_list, struct cmd_list_element **show_list) { - struct cmd_list_element *cmd; add_setshow_cmd_full (name, class, var_integer, var, set_doc, show_doc, help_doc, set_func, show_func, set_list, show_list, - &cmd, NULL); - return cmd; + NULL, NULL); } /* Add element named NAME to both the set and show command LISTs (the list for set/show or some sublist thereof). CLASS is as in add_cmd. VAR is address of the variable which will contain the - value. SET_DOC and SHOW_DOC are the documentation strings. Return - the new "set" command. */ -struct cmd_list_element * + value. SET_DOC and SHOW_DOC are the documentation strings. */ +void add_setshow_uinteger_cmd (char *name, enum command_class class, unsigned int *var, const char *set_doc, const char *show_doc, @@ -600,21 +590,18 @@ add_setshow_uinteger_cmd (char *name, enum command_class class, struct cmd_list_element **set_list, struct cmd_list_element **show_list) { - struct cmd_list_element *cmd; add_setshow_cmd_full (name, class, var_uinteger, var, set_doc, show_doc, help_doc, set_func, show_func, set_list, show_list, - &cmd, NULL); - return cmd; + NULL, NULL); } /* Add element named NAME to both the set and show command LISTs (the list for set/show or some sublist thereof). CLASS is as in add_cmd. VAR is address of the variable which will contain the - value. SET_DOC and SHOW_DOC are the documentation strings. Return - the new "set" command. */ -struct cmd_list_element * + value. SET_DOC and SHOW_DOC are the documentation strings. */ +void add_setshow_zinteger_cmd (char *name, enum command_class class, int *var, const char *set_doc, const char *show_doc, @@ -624,21 +611,18 @@ add_setshow_zinteger_cmd (char *name, enum command_class class, struct cmd_list_element **set_list, struct cmd_list_element **show_list) { - struct cmd_list_element *cmd; add_setshow_cmd_full (name, class, var_zinteger, var, set_doc, show_doc, help_doc, set_func, show_func, set_list, show_list, - &cmd, NULL); - return cmd; + NULL, NULL); } /* Add element named NAME to both the set and show command LISTs (the list for set/show or some sublist thereof). CLASS is as in add_cmd. VAR is address of the variable which will contain the - value. SET_DOC and SHOW_DOC are the documentation strings. Return - the new "set" command. */ -struct cmd_list_element * + value. SET_DOC and SHOW_DOC are the documentation strings. */ +void add_setshow_zuinteger_cmd (char *name, enum command_class class, unsigned int *var, const char *set_doc, const char *show_doc, @@ -648,13 +632,11 @@ add_setshow_zuinteger_cmd (char *name, enum command_class class, struct cmd_list_element **set_list, struct cmd_list_element **show_list) { - struct cmd_list_element *cmd; add_setshow_cmd_full (name, class, var_zuinteger, var, set_doc, show_doc, help_doc, set_func, show_func, set_list, show_list, - &cmd, NULL); - return cmd; + NULL, NULL); } /* Remove the command named NAME from the command list. Return the |