aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-decode.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-02-09 23:15:01 +0000
committerAndrew Cagney <cagney@redhat.com>2005-02-09 23:15:01 +0000
commit7376b4c200a1d6e249a3b35d54f5a05068f966b2 (patch)
tree92d254be21abc207e3367ddde681cf5c47f4beb4 /gdb/cli/cli-decode.c
parent96f6015419297f1a6114e8619d70c449b8841846 (diff)
downloadgdb-7376b4c200a1d6e249a3b35d54f5a05068f966b2.zip
gdb-7376b4c200a1d6e249a3b35d54f5a05068f966b2.tar.gz
gdb-7376b4c200a1d6e249a3b35d54f5a05068f966b2.tar.bz2
2005-02-09 Andrew Cagney <cagney@gnu.org>
* cli/cli-decode.c (add_setshow_enum_cmd): Drop set_result and show_result parameters. * mips-tdep.c (_initialize_mips_tdep): Update calls. * command.h: Update declaration. * arm-tdep.c (_initialize_arm_tdep, _initialize_arm_tdep): Update calls.
Diffstat (limited to 'gdb/cli/cli-decode.c')
-rw-r--r--gdb/cli/cli-decode.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c
index df70019..1e91572 100644
--- a/gdb/cli/cli-decode.c
+++ b/gdb/cli/cli-decode.c
@@ -419,19 +419,15 @@ 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 **set_result,
- struct cmd_list_element **show_result)
+ struct cmd_list_element **show_list)
{
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, show_result);
+ &c, NULL);
c->enums = enumlist;
- if (set_result)
- *set_result = c;
}
/* Add an auto-boolean command named NAME to both the set and show