2005-01-05 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
[deliverable/binutils-gdb.git] / gdb / cli / cli-decode.c
index 4c6c89c599b899b8e3131db28d2cf17aa470bab6..df70019d9210bc44a6b8ed0e9999ed88f70f468b 100644 (file)
@@ -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;
This page took 0.023164 seconds and 4 git commands to generate.