diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-01-05 15:43:50 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-01-05 15:43:50 +0000 |
commit | edefbb7cc7b16bbfb0c831344d8edcdf483ec5a4 (patch) | |
tree | 366c8d346fc499acb175fa2c03235dac3e11eaeb /gdb/cli/cli-decode.c | |
parent | 8af139b3f9d848a998f4b41ffdfe8b3723b39412 (diff) | |
download | gdb-edefbb7cc7b16bbfb0c831344d8edcdf483ec5a4.zip gdb-edefbb7cc7b16bbfb0c831344d8edcdf483ec5a4.tar.gz gdb-edefbb7cc7b16bbfb0c831344d8edcdf483ec5a4.tar.bz2 |
2005-01-05 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
Committed by Andrew Cagney.
* ada-valprint.c, aix-thread.c, alpha-nat.c: I18n markup.
* alphabsd-nat.c, alphanbsd-tdep.c, amd64-linux-nat.c: I18n markup.
* amd64-tdep.c, amd64bsd-nat.c, amd64fbsd-nat.c: I18n markup.
* arch-utils.c, arm-linux-nat.c, arm-tdep.c: I18n markup.
* armnbsd-nat.c, armnbsd-tdep.c, auxv.c, avr-tdep.c: I18n markup.
* aix-thread.c (_initialize_aix_thread): Get rid of the
deprecated_add_show_from_set call.
* alpha-tdep.c (_initialize_alpha_tdep): Ditto.
* arm-tdep.c (_initialize_arm_tdep): Ditto.
* command.h (add_setshow_enum_cmd): Add arguments for returning
new list elements.
* cli/cli-decode.c (add_setshow_enum_cmd): Ditto.
* mips-tdep.c (_initialize_mips_tdep): Modify calls to
add_setshow_enum_cmd.
Diffstat (limited to 'gdb/cli/cli-decode.c')
-rw-r--r-- | gdb/cli/cli-decode.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c index 4c6c89c..df70019 100644 --- a/gdb/cli/cli-decode.c +++ b/gdb/cli/cli-decode.c @@ -419,15 +419,19 @@ add_setshow_enum_cmd (char *name, cmd_sfunc_ftype *set_func, cmd_sfunc_ftype *show_func, struct cmd_list_element **set_list, - struct cmd_list_element **show_list) + struct cmd_list_element **show_list, + struct cmd_list_element **set_result, + struct cmd_list_element **show_result) { struct cmd_list_element *c; add_setshow_cmd_full (name, class, var_enum, var, set_doc, show_doc, help_doc, print, set_func, show_func, set_list, show_list, - &c, NULL); + &c, show_result); c->enums = enumlist; + if (set_result) + *set_result = c; } /* Add an auto-boolean command named NAME to both the set and show @@ -1295,7 +1299,7 @@ deprecated_cmd_warning (char **text) struct cmd_list_element *cmd = NULL; struct cmd_list_element *c; char *type; - + if (!lookup_cmd_composition (*text, &alias, &prefix_cmd, &cmd)) /* return if text doesn't evaluate to a command */ return; |