]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2004-07-26 Andrew Cagney <cagney@gnu.org>
authorAndrew Cagney <cagney@redhat.com>
Mon, 26 Jul 2004 14:53:06 +0000 (14:53 +0000)
committerAndrew Cagney <cagney@redhat.com>
Mon, 26 Jul 2004 14:53:06 +0000 (14:53 +0000)
* cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
* xcoffsolib.c (_initialize_xcoffsolib): Update.
* wince.c (_initialize_wince): Update.
* win32-nat.c (_initialize_win32_nat): Update.
* varobj.c (_initialize_varobj): Update.
* valops.c (_initialize_valops): Update.
* utils.c (initialize_utils, initialize_utils): Update.
* tui/tui-win.c (_initialize_tui_win): Update.
* top.c (init_main): Update.
* symfile.c (_initialize_symfile): Update.
* source.c (_initialize_source): Update.
* somsolib.c (_initialize_som_solib): Update.
* solib.c (_initialize_solib): Update.
* solib-frv.c (_initialize_frv_solib): Update.
* serial.c (_initialize_serial): Update.
* ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
* remote.c (_initialize_remote, _initialize_remote): Update.
* remote-vx.c (_initialize_vx): Update.
* remote-utils.c (_initialize_sr_support): Update.
* remote-sds.c (_initialize_remote_sds): Update.
* remote-mips.c (_initialize_remote_mips): Update.
* remote-e7000.c (_initialize_remote_e7000): Update.
* proc-api.c (_initialize_proc_api): Update.
* printcmd.c: Update.
* parse.c (_initialize_parse): Update.
* pa64solib.c (_initialize_pa64_solib): Update.
* p-valprint.c (_initialize_pascal_valprint): Update.
* monitor.c (_initialize_remote_monitors): Update.
* mips-tdep.c (_initialize_mips_tdep): Update.
* mcore-tdep.c (_initialize_mcore_tdep): Update.
* maint.c (_initialize_maint_cmds): Update.
* lin-lwp.c (_initialize_lin_lwp): Update.
* language.c (_initialize_language): Update.
* kod.c (_initialize_kod): Update.
* infrun.c (set_schedlock_func, _initialize_infrun): Update.
* i386-tdep.c (_initialize_i386_tdep): Update.
* gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
* gdbarch.sh: Update.
* gdbarch.c: Re-generate.
* gdb-events.sh: Update.
* gdb-events.c: Re-generate.
* frame.c (_initialize_frame): Update.
* exec.c: Update.
* demangle.c (_initialize_demangler): Update.
* dcache.c (_initialize_dcache): Update.
* cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
* cp-valprint.c (_initialize_cp_valprint): Update.
* corefile.c (_initialize_core): Update.
* command.h: Update.
* cli/cli-decode.h: Update.
* cli/cli-cmds.c (init_cli_cmds): Update.
* charset.c (_initialize_charset): Update.
* breakpoint.c (_initialize_breakpoint): Update.
* arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
* alpha-tdep.c (_initialize_alpha_tdep): Update.
* aix-thread.c (_initialize_aix_thread): Update.

64 files changed:
gdb/ChangeLog
gdb/aix-thread.c
gdb/alpha-tdep.c
gdb/arm-tdep.c
gdb/breakpoint.c
gdb/charset.c
gdb/cli/cli-cmds.c
gdb/cli/cli-decode.c
gdb/cli/cli-decode.h
gdb/cli/cli-dump.c
gdb/command.h
gdb/corefile.c
gdb/cp-valprint.c
gdb/cris-tdep.c
gdb/dcache.c
gdb/demangle.c
gdb/exec.c
gdb/frame.c
gdb/gdb-events.c
gdb/gdb-events.sh
gdb/gdbarch.c
gdb/gdbarch.sh
gdb/gdbtypes.c
gdb/hppa-tdep.c
gdb/i386-tdep.c
gdb/infcmd.c
gdb/infrun.c
gdb/kod.c
gdb/language.c
gdb/lin-lwp.c
gdb/maint.c
gdb/mcore-tdep.c
gdb/mips-tdep.c
gdb/monitor.c
gdb/ocd.c
gdb/p-valprint.c
gdb/pa64solib.c
gdb/parse.c
gdb/printcmd.c
gdb/proc-api.c
gdb/remote-e7000.c
gdb/remote-mips.c
gdb/remote-sds.c
gdb/remote-utils.c
gdb/remote-vx.c
gdb/remote.c
gdb/ser-go32.c
gdb/serial.c
gdb/solib-frv.c
gdb/solib.c
gdb/somsolib.c
gdb/source.c
gdb/symfile.c
gdb/target.c
gdb/top.c
gdb/tui/tui-win.c
gdb/utils.c
gdb/valops.c
gdb/valprint.c
gdb/varobj.c
gdb/win32-nat.c
gdb/wince.c
gdb/windows-nat.c
gdb/xcoffsolib.c

index 26c6c8474c61586791b5b95a3883f1b51d122b66..3cb6e68e2ef4f191a1d5a1e10ba9eeeaea83977f 100644 (file)
@@ -1,3 +1,62 @@
+2004-07-26  Andrew Cagney  <cagney@gnu.org>
+
+       * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
+       * xcoffsolib.c (_initialize_xcoffsolib): Update.
+       * wince.c (_initialize_wince): Update.
+       * win32-nat.c (_initialize_win32_nat): Update.
+       * varobj.c (_initialize_varobj): Update.
+       * valops.c (_initialize_valops): Update.
+       * utils.c (initialize_utils, initialize_utils): Update.
+       * tui/tui-win.c (_initialize_tui_win): Update.
+       * top.c (init_main): Update.
+       * symfile.c (_initialize_symfile): Update.
+       * source.c (_initialize_source): Update.
+       * somsolib.c (_initialize_som_solib): Update.
+       * solib.c (_initialize_solib): Update.
+       * solib-frv.c (_initialize_frv_solib): Update.
+       * serial.c (_initialize_serial): Update.
+       * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
+       * remote.c (_initialize_remote, _initialize_remote): Update.
+       * remote-vx.c (_initialize_vx): Update.
+       * remote-utils.c (_initialize_sr_support): Update.
+       * remote-sds.c (_initialize_remote_sds): Update.
+       * remote-mips.c (_initialize_remote_mips): Update.
+       * remote-e7000.c (_initialize_remote_e7000): Update.
+       * proc-api.c (_initialize_proc_api): Update.
+       * printcmd.c: Update.
+       * parse.c (_initialize_parse): Update.
+       * pa64solib.c (_initialize_pa64_solib): Update.
+       * p-valprint.c (_initialize_pascal_valprint): Update.
+       * monitor.c (_initialize_remote_monitors): Update.
+       * mips-tdep.c (_initialize_mips_tdep): Update.
+       * mcore-tdep.c (_initialize_mcore_tdep): Update.
+       * maint.c (_initialize_maint_cmds): Update.
+       * lin-lwp.c (_initialize_lin_lwp): Update.
+       * language.c (_initialize_language): Update.
+       * kod.c (_initialize_kod): Update.
+       * infrun.c (set_schedlock_func, _initialize_infrun): Update.
+       * i386-tdep.c (_initialize_i386_tdep): Update.
+       * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
+       * gdbarch.sh: Update.
+       * gdbarch.c: Re-generate.
+       * gdb-events.sh: Update.
+       * gdb-events.c: Re-generate.
+       * frame.c (_initialize_frame): Update.
+       * exec.c: Update.
+       * demangle.c (_initialize_demangler): Update.
+       * dcache.c (_initialize_dcache): Update.
+       * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
+       * cp-valprint.c (_initialize_cp_valprint): Update.
+       * corefile.c (_initialize_core): Update.
+       * command.h: Update.
+       * cli/cli-decode.h: Update.
+       * cli/cli-cmds.c (init_cli_cmds): Update.
+       * charset.c (_initialize_charset): Update.
+       * breakpoint.c (_initialize_breakpoint): Update.
+       * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
+       * alpha-tdep.c (_initialize_alpha_tdep): Update.
+       * aix-thread.c (_initialize_aix_thread): Update.
+
 2004-07-24  Mark Kettenis  <kettenis@gnu.org>
 
        Partial fix for PR backtrace/1718.
index 1b625bd3be9579423135d3a3facce17c0e0ab7f3..32c67c5cc8b705e0ed7cfd3f53c769b5eb362476 100644 (file)
@@ -1743,10 +1743,11 @@ _initialize_aix_thread (void)
   target_new_objfile_chain = deprecated_target_new_objfile_hook;
   deprecated_target_new_objfile_hook = new_objfile;
 
-  add_show_from_set (add_set_cmd ("aix-thread", no_class, var_zinteger,
-                                 (char *) &debug_aix_thread, 
-                                 "Set debugging of AIX thread module.\n"
-                                  "Enables printf debugging output.\n",
-                                 &setdebuglist),
-                                 &showdebuglist);
+  deprecated_add_show_from_set
+    (add_set_cmd ("aix-thread", no_class, var_zinteger,
+                 (char *) &debug_aix_thread, 
+                 "Set debugging of AIX thread module.\n"
+                 "Enables printf debugging output.\n",
+                 &setdebuglist),
+     &showdebuglist);
 }
index b5edce1bced01f0eab6a84aa6e2c5fae692e4efd..12c7a50284a2f1cf39b20bd83796ef6e1575d80e 100644 (file)
@@ -1621,5 +1621,5 @@ search.  The only need to set it is when debugging a stripped executable.",
   /* We need to throw away the frame cache when we set this, since it
      might change our ability to get backtraces.  */
   set_cmd_sfunc (c, reinit_frame_cache_sfunc);
-  add_show_from_set (c, &showlist);
+  deprecated_add_show_from_set (c, &showlist);
 }
index 93678982036e204ba497c482f5b07509ecad6f0b..b44768cdaad1425427223a486b372c1b71c1e016 100644 (file)
@@ -2930,7 +2930,7 @@ _initialize_arm_tdep (void)
                              &setlist);
   set_cmd_sfunc (new_set, set_disassembly_style_sfunc);
   deprecate_cmd (new_set, "set arm disassembly");
-  deprecate_cmd (add_show_from_set (new_set, &showlist),
+  deprecate_cmd (deprecated_add_show_from_set (new_set, &showlist),
                 "show arm disassembly");
 
   /* And now add the new interface.  */
@@ -2939,7 +2939,7 @@ _initialize_arm_tdep (void)
                              helptext, &setarmcmdlist);
 
   set_cmd_sfunc (new_set, set_disassembly_style_sfunc);
-  add_show_from_set (new_set, &showarmcmdlist);
+  deprecated_add_show_from_set (new_set, &showarmcmdlist);
 
   add_setshow_cmd_full ("apcs32", no_class,
                        var_boolean, (char *) &arm_apcs_32,
@@ -2969,7 +2969,8 @@ _initialize_arm_tdep (void)
      "vfp - VFP co-processor.",
      &setarmcmdlist);
   set_cmd_sfunc (new_set, set_fp_model_sfunc);
-  set_cmd_sfunc (add_show_from_set (new_set, &showarmcmdlist), show_fp_model);
+  set_cmd_sfunc (deprecated_add_show_from_set (new_set, &showarmcmdlist),
+                show_fp_model);
 
   /* Add the deprecated "othernames" command.  */
   deprecate_cmd (add_com ("othernames", class_obscure, arm_othernames,
index 94665bcb46aec69b4487675631fe98d7f879d268..eeb4544f11d0aecf9af96682787b969a51d51a75 100644 (file)
@@ -8068,7 +8068,7 @@ such is available.  (However, any hardware watchpoints that were\n\
 created before setting this to nonzero, will continue to use watchpoint\n\
 hardware.)",
                   &setlist);
-  add_show_from_set (c, &showlist);
+  deprecated_add_show_from_set (c, &showlist);
 
   can_use_hw_watchpoints = 1;
 
index 2005a49e00917aff0432075cb0589be60af8e0b7..89e3b75d63396b75e641e7354f32334254fe0f3f 100644 (file)
@@ -1257,7 +1257,7 @@ _initialize_charset (void)
 
   set_cmd_sfunc (new_cmd, set_host_charset_sfunc);
 
-  add_show_from_set (new_cmd, &showlist);
+  deprecated_add_show_from_set (new_cmd, &showlist);
 
 
 
@@ -1273,5 +1273,5 @@ _initialize_charset (void)
                              &setlist);
 
   set_cmd_sfunc (new_cmd, set_target_charset_sfunc);
-  add_show_from_set (new_cmd, &showlist);
+  deprecated_add_show_from_set (new_cmd, &showlist);
 }
index 3dfb303913bc8c13ebe7c5dfe92098a785af5440..ffb2cd8b6ebe9392c3bc8b633897a213e53711d3 100644 (file)
@@ -1119,7 +1119,7 @@ when gdb is started.", &cmdlist);
   c = add_set_cmd ("verbose", class_support, var_boolean, (char *) &info_verbose,
                   "Set ",
                   &setlist),
-    add_show_from_set (c, &showlist);
+    deprecated_add_show_from_set (c, &showlist);
   set_cmd_sfunc (c, set_verbose);
   set_verbose (NULL, 0, c);
 
@@ -1130,7 +1130,7 @@ when gdb is started.", &cmdlist);
                  "Generic command for showing command history parameters.",
                  &showhistlist, "show history ", 0, &showlist);
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("expansion", no_class, var_boolean, (char *) &history_expansion_p,
                  "Set history expansion on command input.\n\
 Without an argument, history expansion is enabled.", &sethistlist),
@@ -1174,9 +1174,10 @@ is used, the same rules apply to its nested commands as to the first ones.");
 
   /* If target is open when baud changes, it doesn't take effect until the
      next open (I think, not sure).  */
-  add_show_from_set (add_set_cmd ("remotebaud", no_class,
-                                 var_zinteger, (char *) &baud_rate,
-                                 "Set baud rate for remote serial I/O.\n\
+  deprecated_add_show_from_set
+    (add_set_cmd ("remotebaud", no_class,
+                 var_zinteger, (char *) &baud_rate,
+                 "Set baud rate for remote serial I/O.\n\
 This value is used to set the speed of the serial port when debugging\n\
 using remote targets.", &setlist),
                     &showlist);
@@ -1187,21 +1188,23 @@ using remote targets.", &setlist),
 When enabled, each packet sent or received with the remote target\n\
 is displayed.", &setlist);
   deprecate_cmd (c, "set debug remote");
-  deprecate_cmd (add_show_from_set (c, &showlist), "show debug remote");
+  deprecate_cmd (deprecated_add_show_from_set (c, &showlist),
+                "show debug remote");
 
-  add_show_from_set (add_set_cmd ("remote", no_class, var_zinteger,
-                                 (char *) &remote_debug,
-                                 "Set debugging of remote protocol.\n\
+  deprecated_add_show_from_set
+    (add_set_cmd ("remote", no_class, var_zinteger,
+                 (char *) &remote_debug,
+                 "Set debugging of remote protocol.\n\
 When enabled, each packet sent or received with the remote target\n\
 is displayed.", &setdebuglist),
                     &showdebuglist);
 
-  add_show_from_set (
-                     add_set_cmd ("remotetimeout", no_class, var_integer, (char *) &remote_timeout,
-                                  "Set timeout limit to wait for target to respond.\n\
+  deprecated_add_show_from_set
+    (add_set_cmd ("remotetimeout", no_class, var_integer, (char *) &remote_timeout,
+                 "Set timeout limit to wait for target to respond.\n\
 This value is used to set the time limit for gdb to wait for a response\n\
 from the target.", &setlist),
-                     &showlist);
+     &showlist);
 
   add_prefix_cmd ("debug", no_class, set_debug,
                  "Generic command for setting gdb debugging flags",
@@ -1279,10 +1282,10 @@ Argument is the name of the user defined command.\n\
 With no argument, show definitions of all user defined commands.", &showlist);
   add_com ("apropos", class_support, apropos_command, "Search for commands matching a REGEXP");
 
-  add_show_from_set (
-                     add_set_cmd ("max-user-call-depth", no_class, var_integer, 
-                                  (char *) &max_user_call_depth,
-                                  "Set the max call depth for user-defined commands.\n", 
-                                  &setlist),
-                     &showlist);
+  deprecated_add_show_from_set
+    (add_set_cmd ("max-user-call-depth", no_class, var_integer, 
+                 (char *) &max_user_call_depth,
+                 "Set the max call depth for user-defined commands.\n", 
+                 &setlist),
+     &showlist);
 }
index 2b5d68b30d580361544ee78c82f21cf46c5c2433..fb755a6c438c792ab581b80ed31059a89a67559f 100644 (file)
@@ -495,16 +495,16 @@ add_setshow_zinteger_cmd (char *name,
 /* Where SETCMD has already been added, add the corresponding show
    command to LIST and return a pointer to the added command (not
    necessarily the head of LIST).  */
-/* NOTE: cagney/2002-03-17: The original version of add_show_from_set
-   used memcpy() to clone `set' into `show'.  This meant that in
-   addition to all the needed fields (var, name, et.al.) some
-   unnecessary fields were copied (namely the callback function).  The
-   function explictly copies relevant fields.  For a `set' and `show'
-   command to share the same callback, the caller must set both
-   explicitly.  */
+/* NOTE: cagney/2002-03-17: The original version of
+   deprecated_add_show_from_set used memcpy() to clone `set' into
+   `show'.  This meant that in addition to all the needed fields (var,
+   name, et.al.) some unnecessary fields were copied (namely the
+   callback function).  The function explictly copies relevant fields.
+   For a `set' and `show' command to share the same callback, the
+   caller must set both explicitly.  */
 struct cmd_list_element *
-add_show_from_set (struct cmd_list_element *setcmd,
-                  struct cmd_list_element **list)
+deprecated_add_show_from_set (struct cmd_list_element *setcmd,
+                             struct cmd_list_element **list)
 {
   char *doc;
   const static char setstring[] = "Set ";
index d8ab67d49f043b1a1aee194145c416c852f3e295..97e71063973b27ba5a51d234347c09d8fb2eb961 100644 (file)
@@ -295,9 +295,8 @@ extern struct cmd_list_element *add_set_enum_cmd (char *name,
                                                  char *doc,
                                                  struct cmd_list_element **list);
 
-extern struct cmd_list_element *add_show_from_set (struct cmd_list_element *,
-                                                  struct cmd_list_element
-                                                  **);
+extern struct cmd_list_element *deprecated_add_show_from_set (struct cmd_list_element *,
+                                                             struct cmd_list_element **);
 
 /* Functions that implement commands about CLI commands. */
 
index ac54aa675b9fc2499f1a7caf8bfed1f43aff6fb3..84b4a6d469ad00b5e6c74d7d10a9192027212277 100644 (file)
@@ -427,8 +427,8 @@ add_dump_command (char *name, void (*func) (char *args, char *mode),
   set_cmd_context (c, d);
   c->func = call_dump_func;
 
-  /* Replace "Dump " at start of docstring with "Append "
-     (borrowed from add_show_from_set).  */
+  /* Replace "Dump " at start of docstring with "Append " (borrowed
+     from deprecated_add_show_from_set).  */
   if (   c->doc[0] == 'W' 
       && c->doc[1] == 'r' 
       && c->doc[2] == 'i'
index d441a7f481f593539a228d1a10263d19a71527af..e2a44b2a033ce3bf0d5e7f1801ba9633b02ed2fc 100644 (file)
@@ -153,14 +153,15 @@ extern void execute_cmd_pre_hook (struct cmd_list_element *cmd);
 extern void execute_cmd_post_hook (struct cmd_list_element *cmd);
 
 /* Return the type of the command.  */
-/* NOTE: cagney/2002-03-17: The add_show_from_set() function clones
-   the set command passed as a parameter.  The clone operation will
-   include (BUG?) any ``set'' command callback, if present.  Commands
-   like ``info set'' call all the ``show'' command callbacks.
-   Unfortunately, for ``show'' commands cloned from ``set'', this
-   includes callbacks belonging to ``set'' commands.  Making this
-   worse, this only occures if add_show_from_set() is called after
-   add_cmd_sfunc() (BUG?).  */
+/* NOTE: cagney/2002-03-17: The deprecated_add_show_from_set()
+   function clones the set command passed as a parameter.  The clone
+   operation will include (BUG?) any ``set'' command callback, if
+   present.  Commands like ``info set'' call all the ``show'' command
+   callbacks.  Unfortunately, for ``show'' commands cloned from
+   ``set'', this includes callbacks belonging to ``set'' commands.
+   Making this worse, this only occures if
+   deprecated_add_show_from_set() is called after add_cmd_sfunc()
+   (BUG?).  */
 extern enum cmd_types cmd_type (struct cmd_list_element *cmd);
 
 
@@ -282,9 +283,8 @@ extern void add_setshow_zinteger_cmd (char *name,
                                      struct cmd_list_element **set_list,
                                      struct cmd_list_element **show_list);
 
-extern struct cmd_list_element *add_show_from_set (struct cmd_list_element *,
-                                                  struct cmd_list_element
-                                                  **);
+extern struct cmd_list_element *deprecated_add_show_from_set (struct cmd_list_element *,
+                                                             struct cmd_list_element **);
 
 /* Do a "show" command for each thing on a command list.  */
 
index 0ca469b693746fbd05b97ddb7a91fb4545cd2446..91519b97f631d22f36880c50939f5fc0ec3fdc3b 100644 (file)
@@ -450,7 +450,7 @@ No arg means have no core file.  This command has been superseded by the\n\
 Use `set gnutarget auto' to specify automatic detection.",
                   &setlist);
   set_cmd_sfunc (c, set_gnutarget_command);
-  add_show_from_set (c, &showlist);
+  deprecated_add_show_from_set (c, &showlist);
 
   if (getenv ("GNUTARGET"))
     set_gnutarget (getenv ("GNUTARGET"));
index 53e3ce9b2ec64eee9fb345144a3b1914e0d9f515..6f9bb353f5f26b00fe82d74b5301d7e894c4182d 100644 (file)
@@ -804,7 +804,7 @@ cp_print_hpacc_virtual_table_entries (struct type *type, int *vfuncs,
 void
 _initialize_cp_valprint (void)
 {
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("static-members", class_support, var_boolean,
                  (char *) &static_field_print,
                  "Set printing of C++ static members.",
@@ -813,13 +813,13 @@ _initialize_cp_valprint (void)
   /* Turn on printing of static fields.  */
   static_field_print = 1;
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("vtbl", class_support, var_boolean, (char *) &vtblprint,
                  "Set printing of C++ virtual function tables.",
                  &setprintlist),
      &showprintlist);
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("object", class_support, var_boolean, (char *) &objectprint,
              "Set printing of object's derived type based on vtable info.",
                  &setprintlist),
index 12f33a823613774dee02899e543c07215cc105fd..029dc4623c15c66740078d0abf3407e424c691dc 100644 (file)
@@ -3632,13 +3632,13 @@ _initialize_cris_tdep (void)
                    (char *) &usr_cmd_cris_version, 
                    "Set the current CRIS version.", &setlist);
   set_cmd_sfunc (c, cris_version_update);
-  add_show_from_set (c, &showlist);
+  deprecated_add_show_from_set (c, &showlist);
   
   c = add_set_enum_cmd ("cris-mode", class_support, cris_mode_enums, 
                         &usr_cmd_cris_mode, 
                         "Set the current CRIS mode.", &setlist);
   set_cmd_sfunc (c, cris_mode_update);
-  add_show_from_set (c, &showlist);
+  deprecated_add_show_from_set (c, &showlist);
 
   c = add_cmd ("cris-fpless-backtrace", class_support, cris_fpless_backtrace, 
                "Display call chain using the subroutine return pointer.\n"
@@ -3670,14 +3670,15 @@ cris_version_update (char *ignore_args, int from_tty,
 {
   struct gdbarch_info info;
 
-  /* NOTE: cagney/2002-03-17: The add_show_from_set() function clones
-     the set command passed as a parameter.  The clone operation will
-     include (BUG?) any ``set'' command callback, if present.
-     Commands like ``info set'' call all the ``show'' command
-     callbacks.  Unfortunately, for ``show'' commands cloned from
-     ``set'', this includes callbacks belonging to ``set'' commands.
-     Making this worse, this only occures if add_show_from_set() is
-     called after add_cmd_sfunc() (BUG?).  */
+  /* NOTE: cagney/2002-03-17: The deprecated_add_show_from_set()
+     function clones the set command passed as a parameter.  The clone
+     operation will include (BUG?) any ``set'' command callback, if
+     present.  Commands like ``info set'' call all the ``show''
+     command callbacks.  Unfortunately, for ``show'' commands cloned
+     from ``set'', this includes callbacks belonging to ``set''
+     commands.  Making this worse, this only occures if
+     deprecated_add_show_from_set() is called after add_cmd_sfunc()
+     (BUG?).  */
 
   /* From here on, trust the user's CRIS version setting.  */
   if (cmd_type (c) == set_cmd)
@@ -3697,14 +3698,15 @@ cris_mode_update (char *ignore_args, int from_tty,
 {
   struct gdbarch_info info;
   
-  /* NOTE: cagney/2002-03-17: The add_show_from_set() function clones
-     the set command passed as a parameter.  The clone operation will
-     include (BUG?) any ``set'' command callback, if present.
-     Commands like ``info set'' call all the ``show'' command
-     callbacks.  Unfortunately, for ``show'' commands cloned from
-     ``set'', this includes callbacks belonging to ``set'' commands.
-     Making this worse, this only occures if add_show_from_set() is
-     called after add_cmd_sfunc() (BUG?).  */
+  /* NOTE: cagney/2002-03-17: The deprecated_add_show_from_set()
+     function clones the set command passed as a parameter.  The clone
+     operation will include (BUG?) any ``set'' command callback, if
+     present.  Commands like ``info set'' call all the ``show''
+     command callbacks.  Unfortunately, for ``show'' commands cloned
+     from ``set'', this includes callbacks belonging to ``set''
+     commands.  Making this worse, this only occures if
+     deprecated_add_show_from_set() is called after add_cmd_sfunc()
+     (BUG?).  */
 
   /* From here on, trust the user's CRIS mode setting.  */
   if (cmd_type (c) == set_cmd)
index ee690948fdc0bdf9617015fa7050632385338ca7..e3ffa4a9d18de44d7d4a4cf34f1a5bc4c66e2f21 100644 (file)
@@ -585,7 +585,7 @@ dcache_info (char *exp, int tty)
 void
 _initialize_dcache (void)
 {
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("remotecache", class_support, var_boolean,
                  (char *) &dcache_enabled_p,
                  "\
index bcf9b77de5104714d52a5ecdc4ac7d0deb97073e..423ae7c7e8c184e1af53a1851a51c4b07f9cc630 100644 (file)
@@ -195,7 +195,7 @@ _initialize_demangler (void)
                          "Set the current C++ demangling style.\n\
 Use `set demangle-style' without arguments for a list of demangling styles.",
                          &setlist);
-  show = add_show_from_set (set, &showlist);
+  show = deprecated_add_show_from_set (set, &showlist);
   set_cmd_sfunc (set, set_demangling_command);
 
   /* Set the default demangling style chosen at compilation time. */
index 4b43808e2467b149d51da3f8212001e5f9f33f81..b1f4f359b39a8f2883675f1f6a36ccd39912a594 100644 (file)
@@ -745,7 +745,7 @@ This can be used if the exec file does not contain section addresses,\n\
 file itself are wrong.  Each section must be changed separately.  The\n\
 ``info files'' command lists all the sections and their addresses.");
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("write", class_support, var_boolean, (char *) &write_files,
                  "Set writing into executable and core files.",
                  &setlist),
index dc65a4d8f071e0a526a4ed267c137c411cbe2c90..bfc5ae84155a7504ac01e8ae0eb3db32c10f4641 100644 (file)
@@ -2254,8 +2254,9 @@ Show the upper bound on the number of backtrace levels.",
                            &show_backtrace_cmdlist);
 
   /* Debug this files internals. */
-  add_show_from_set (add_set_cmd ("frame", class_maintenance, var_zinteger,
-                                 &frame_debug, "Set frame debugging.\n\
+  deprecated_add_show_from_set
+    (add_set_cmd ("frame", class_maintenance, var_zinteger,
+                 &frame_debug, "Set frame debugging.\n\
 When non-zero, frame specific internal debugging is enabled.", &setdebuglist),
-                    &showdebuglist);
+     &showdebuglist);
 }
index e0916d8706f5c9919564bf20d943a51ff50e91b7..42d93bfb0203d88a8743b4759881e405cafb0c1e 100644 (file)
@@ -335,13 +335,15 @@ _initialize_gdb_events (void)
                   (char *) (&gdb_events_debug), "Set event debugging.\n\
 When non-zero, event/notify debugging is enabled.", &setlist);
   deprecate_cmd (c, "set debug event");
-  deprecate_cmd (add_show_from_set (c, &showlist), "show debug event");
-
-  add_show_from_set (add_set_cmd ("event",
-                                 class_maintenance,
-                                 var_zinteger,
-                                 (char *) (&gdb_events_debug),
-                                 "Set event debugging.\n\
+  deprecate_cmd (deprecated_add_show_from_set (c, &showlist),
+                "show debug event");
+
+  deprecated_add_show_from_set
+    (add_set_cmd ("event",
+                 class_maintenance,
+                 var_zinteger,
+                 (char *) (&gdb_events_debug),
+                 "Set event debugging.\n\
 When non-zero, event/notify debugging is enabled.", &setdebuglist),
-                    &showdebuglist);
+     &showdebuglist);
 }
index 5be1e54cdfd03e284c874a8b7a5f58d47c233260..4da00a5a0596033a7c5b801b620a6dff86f14069 100755 (executable)
@@ -474,15 +474,17 @@ cat <<EOF
                   (char *) (&gdb_events_debug), "Set event debugging.\n\\
 When non-zero, event/notify debugging is enabled.", &setlist);
   deprecate_cmd (c, "set debug event");
-  deprecate_cmd (add_show_from_set (c, &showlist), "show debug event");
-
-  add_show_from_set (add_set_cmd ("event",
-                                  class_maintenance,
-                                  var_zinteger,
-                                  (char *) (&gdb_events_debug),
-                                  "Set event debugging.\n\\
+  deprecate_cmd (deprecated_add_show_from_set (c, &showlist),
+                 "show debug event");
+
+  deprecated_add_show_from_set
+    (add_set_cmd ("event",
+                 class_maintenance,
+                 var_zinteger,
+                 (char *) (&gdb_events_debug),
+                 "Set event debugging.\n\\
 When non-zero, event/notify debugging is enabled.", &setdebuglist),
-                    &showdebuglist);
+     &showdebuglist);
 }
 EOF
 
index 6e3d091833df224f7db01df64467ea80fef2cbc0..af6b0a3d63864b6af25f42f8b9c692fe87d9892c 100644 (file)
@@ -5075,13 +5075,14 @@ _initialize_gdbarch (void)
 {
   struct cmd_list_element *c;
 
-  add_show_from_set (add_set_cmd ("arch",
-                                 class_maintenance,
-                                 var_zinteger,
-                                 (char *)&gdbarch_debug,
-                                 "Set architecture debugging.\n\
+  deprecated_add_show_from_set
+    (add_set_cmd ("arch",
+                 class_maintenance,
+                 var_zinteger,
+                 (char *)&gdbarch_debug,
+                 "Set architecture debugging.\n\
 When non-zero, architecture debugging is enabled.", &setdebuglist),
-                    &showdebuglist);
+     &showdebuglist);
   c = add_set_cmd ("archdebug",
                   class_maintenance,
                   var_zinteger,
@@ -5090,5 +5091,5 @@ When non-zero, architecture debugging is enabled.", &setdebuglist),
 When non-zero, architecture debugging is enabled.", &setlist);
 
   deprecate_cmd (c, "set debug arch");
-  deprecate_cmd (add_show_from_set (c, &showlist), "show debug arch");
+  deprecate_cmd (deprecated_add_show_from_set (c, &showlist), "show debug arch");
 }
index 0183fae0a35eb93fe196af400b2b82b6c24d6673..be18fb8d5c277d657fe32468d232aa734eed6a59 100755 (executable)
@@ -2257,13 +2257,14 @@ _initialize_gdbarch (void)
 {
   struct cmd_list_element *c;
 
-  add_show_from_set (add_set_cmd ("arch",
-                                 class_maintenance,
-                                 var_zinteger,
-                                 (char *)&gdbarch_debug,
-                                 "Set architecture debugging.\\n\\
+  deprecated_add_show_from_set
+    (add_set_cmd ("arch",
+                 class_maintenance,
+                 var_zinteger,
+                 (char *)&gdbarch_debug,
+                 "Set architecture debugging.\\n\\
 When non-zero, architecture debugging is enabled.", &setdebuglist),
-                    &showdebuglist);
+     &showdebuglist);
   c = add_set_cmd ("archdebug",
                   class_maintenance,
                   var_zinteger,
@@ -2272,7 +2273,7 @@ When non-zero, architecture debugging is enabled.", &setdebuglist),
 When non-zero, architecture debugging is enabled.", &setlist);
 
   deprecate_cmd (c, "set debug arch");
-  deprecate_cmd (add_show_from_set (c, &showlist), "show debug arch");
+  deprecate_cmd (deprecated_add_show_from_set (c, &showlist), "show debug arch");
 }
 EOF
 
index 1349ffbbe19aceb8eaa4e616bb1805981d040cb7..baba3483e5aaa35f0d54bfa1fd1010eef8194ac4 100644 (file)
@@ -3277,7 +3277,7 @@ build_gdbtypes (void)
               "bool", (struct objfile *) NULL);
 
   /* Add user knob for controlling resolution of opaque types */
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("opaque-type-resolution", class_support, var_boolean, (char *) &opaque_type_resolution,
                  "Set resolution of opaque struct/class/union types (if set before loading symbols).",
                  &setlist),
@@ -3490,10 +3490,9 @@ _initialize_gdbtypes (void)
               0, "builtin_type_ia64_quad_little", NULL);
   TYPE_FLOATFORMAT (builtin_type_ia64_quad_little) = &floatformat_ia64_quad_little;
 
-  add_show_from_set (
-                    add_set_cmd ("overload", no_class, var_zinteger, (char *) &overload_debug,
-                                 "Set debugging of C++ overloading.\n\
-                         When enabled, ranking of the functions\n\
-                         is displayed.", &setdebuglist),
-                    &showdebuglist);
+  deprecated_add_show_from_set
+    (add_set_cmd ("overload", no_class, var_zinteger, (char *) &overload_debug,
+                 "Set debugging of C++ overloading.\n\
+When enabled, ranking of the functions is displayed.", &setdebuglist),
+     &showdebuglist);
 }
index 221f73984cef9568fb9e121535f5be39302e2e2f..d41fc218b42a15ef389b702a0562c84d4f2700dc 100644 (file)
@@ -2589,7 +2589,9 @@ be no argument or the argument must be a depth.\n"), NULL);
 be no argument or the argument must be a depth.\n"), NULL);
 
   /* Debug this files internals. */
-  add_show_from_set (add_set_cmd ("hppa", class_maintenance, var_zinteger,
-                                 &hppa_debug, "Set hppa debugging.\n\
-When non-zero, hppa specific debugging is enabled.", &setdebuglist), &showdebuglist);
+  deprecated_add_show_from_set
+    (add_set_cmd ("hppa", class_maintenance, var_zinteger,
+                 &hppa_debug, "Set hppa debugging.\n\
+When non-zero, hppa specific debugging is enabled.", &setdebuglist),
+     &showdebuglist);
 }
index d51e162dcc4e55a5d513901239052a2b4050e562..2744b40b72e9af0d1a8438aac8596b3a378ab121 100644 (file)
@@ -2215,7 +2215,7 @@ _initialize_i386_tdep (void)
 Set the disassembly flavor, the valid values are \"att\" and \"intel\", \
 and the default value is \"att\".",
                                &setlist);
-    add_show_from_set (new_cmd, &showlist);
+    deprecated_add_show_from_set (new_cmd, &showlist);
   }
 
   /* Add the variable that controls the convention for returning
@@ -2229,7 +2229,7 @@ and the default value is \"att\".",
 Set the convention for returning small structs, valid values \
 are \"default\", \"pcc\" and \"reg\", and the default value is \"default\".",
                                 &setlist);
-    add_show_from_set (new_cmd, &showlist);
+    deprecated_add_show_from_set (new_cmd, &showlist);
   }
 
   gdbarch_register_osabi_sniffer (bfd_arch_i386, bfd_target_coff_flavour,
index 58875d3b229c3ea970628c53236f06c209b7c4eb..3c846059bfdef77c17ea78d9d746d93883bd39d5 100644 (file)
@@ -1970,7 +1970,7 @@ Follow this command with any number of args, to be passed to the program.",
                   &setlist);
   set_cmd_completer (c, filename_completer);
   set_cmd_sfunc (c, notice_args_set);
-  c = add_show_from_set (c, &showlist);
+  c = deprecated_add_show_from_set (c, &showlist);
   set_cmd_sfunc (c, notice_args_read);
 
   c = add_cmd
index 47ab1064b5f38f8f5878d98ea156954997008772..38d5df0cd3ab6413fbdd6d4167a59dadf759da2c 100644 (file)
@@ -484,14 +484,15 @@ static const char *scheduler_enums[] = {
 static void
 set_schedlock_func (char *args, int from_tty, struct cmd_list_element *c)
 {
-  /* NOTE: cagney/2002-03-17: The add_show_from_set() function clones
-     the set command passed as a parameter.  The clone operation will
-     include (BUG?) any ``set'' command callback, if present.
-     Commands like ``info set'' call all the ``show'' command
-     callbacks.  Unfortunately, for ``show'' commands cloned from
-     ``set'', this includes callbacks belonging to ``set'' commands.
-     Making this worse, this only occures if add_show_from_set() is
-     called after add_cmd_sfunc() (BUG?).  */
+  /* NOTE: cagney/2002-03-17: The deprecated_add_show_from_set()
+     function clones the set command passed as a parameter.  The clone
+     operation will include (BUG?) any ``set'' command callback, if
+     present.  Commands like ``info set'' call all the ``show''
+     command callbacks.  Unfortunately, for ``show'' commands cloned
+     from ``set'', this includes callbacks belonging to ``set''
+     commands.  Making this worse, this only occures if
+     deprecated_add_show_from_set() is called after add_cmd_sfunc()
+     (BUG?).  */
   if (cmd_type (c) == set_cmd)
     if (!target_can_lock_scheduler)
       {
@@ -3884,7 +3885,7 @@ of the program stops.", &cmdlist);
   signal_print[TARGET_SIGNAL_CANCEL] = 0;
 
 #ifdef SOLIB_ADD
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("stop-on-solib-events", class_support, var_zinteger,
                  (char *) &stop_on_solib_events,
                  "Set stopping for shared library events.\n\
@@ -3903,7 +3904,7 @@ A fork or vfork creates a new process.  follow-fork-mode can be:\n\
   child   - the new process is debugged after a fork\n\
 The unfollowed process will continue to run.\n\
 By default, the debugger will follow the parent process.", &setlist);
-  add_show_from_set (c, &showlist);
+  deprecated_add_show_from_set (c, &showlist);
 
   c = add_set_enum_cmd ("scheduler-locking", class_run, scheduler_enums,       /* array of string names */
                        &scheduler_mode,        /* current mode  */
@@ -3915,7 +3916,7 @@ step == scheduler locked during every single-step operation.\n\
        Other threads may run while stepping over a function call ('next').", &setlist);
 
   set_cmd_sfunc (c, set_schedlock_func);       /* traps on target vector */
-  add_show_from_set (c, &showlist);
+  deprecated_add_show_from_set (c, &showlist);
 
   c = add_set_cmd ("step-mode", class_run,
                   var_boolean, (char *) &step_stop_if_no_debug,
@@ -3923,7 +3924,7 @@ step == scheduler locked during every single-step operation.\n\
 function without debug line information will stop at the first\n\
 instruction of that function. Otherwise, the function is skipped and\n\
 the step command stops at a different source line.", &setlist);
-  add_show_from_set (c, &showlist);
+  deprecated_add_show_from_set (c, &showlist);
 
   /* ptid initializations */
   null_ptid = ptid_build (0, 0, 0);
index 6cb3622f87a81b6fdcc2a966d24b663306e7ca28..15db43055ce439e2a53188f704e2bf2d6d9542be 100644 (file)
--- a/gdb/kod.c
+++ b/gdb/kod.c
@@ -134,14 +134,15 @@ kod_set_os (char *arg, int from_tty, struct cmd_list_element *command)
 {
   char *p;
 
-  /* NOTE: cagney/2002-03-17: The add_show_from_set() function clones
-     the set command passed as a parameter.  The clone operation will
-     include (BUG?) any ``set'' command callback, if present.
-     Commands like ``info set'' call all the ``show'' command
-     callbacks.  Unfortunately, for ``show'' commands cloned from
-     ``set'', this includes callbacks belonging to ``set'' commands.
-     Making this worse, this only occures if add_show_from_set() is
-     called after add_cmd_sfunc() (BUG?).  */
+  /* NOTE: cagney/2002-03-17: The deprecated_add_show_from_set()
+     function clones the set command passed as a parameter.  The clone
+     operation will include (BUG?) any ``set'' command callback, if
+     present.  Commands like ``info set'' call all the ``show''
+     command callbacks.  Unfortunately, for ``show'' commands cloned
+     from ``set'', this includes callbacks belonging to ``set''
+     commands.  Making this worse, this only occures if
+     deprecated_add_show_from_set() is called after add_cmd_sfunc()
+     (BUG?).  */
 
   if (cmd_type (command) != set_cmd)
     return;
@@ -237,5 +238,5 @@ _initialize_kod (void)
                   "Set operating system",
                   &setlist);
   set_cmd_sfunc (c, kod_set_os);
-  add_show_from_set (c, &showlist);
+  deprecated_add_show_from_set (c, &showlist);
 }
index dae3e809a4b36a3d60239e6929c9cc33a8af6d08..ec03a47879c9238dc5900cfe1110c9bbec78d8a3 100644 (file)
@@ -1407,7 +1407,7 @@ _initialize_language (void)
                     (char *) &language,
                     "Set the current source language.",
                     &setlist);
-  show = add_show_from_set (set, &showlist);
+  show = deprecated_add_show_from_set (set, &showlist);
   set_cmd_cfunc (set, set_language_command);
   set_cmd_cfunc (show, show_language_command);
 
@@ -1427,7 +1427,7 @@ _initialize_language (void)
                     (char *) &type,
                     "Set type checking.  (on/warn/off/auto)",
                     &setchecklist);
-  show = add_show_from_set (set, &showchecklist);
+  show = deprecated_add_show_from_set (set, &showchecklist);
   set_cmd_cfunc (set, set_type_command);
   set_cmd_cfunc (show, show_type_command);
 
@@ -1435,7 +1435,7 @@ _initialize_language (void)
                     (char *) &range,
                     "Set range checking.  (on/warn/off/auto)",
                     &setchecklist);
-  show = add_show_from_set (set, &showchecklist);
+  show = deprecated_add_show_from_set (set, &showchecklist);
   set_cmd_cfunc (set, set_range_command);
   set_cmd_cfunc (show, show_range_command);
 
@@ -1444,7 +1444,7 @@ _initialize_language (void)
                      "Set case sensitivity in name search.  (on/off/auto)\n\
 For Fortran the default is off; for other languages the default is on.",
                      &setlist);
-  show = add_show_from_set (set, &showlist);
+  show = deprecated_add_show_from_set (set, &showlist);
   set_cmd_cfunc (set, set_case_command);
   set_cmd_cfunc (show, show_case_command);
 
index 4d04d62167e7661dc9db192383a2f554145563ef..10ee38024bc5a1e5a118a250286c04e61117705e 100644 (file)
@@ -1896,9 +1896,10 @@ _initialize_lin_lwp (void)
 
   sigemptyset (&blocked_mask);
 
-  add_show_from_set (add_set_cmd ("lin-lwp", no_class, var_zinteger,
-                                 (char *) &debug_lin_lwp,
-                                 "Set debugging of GNU/Linux lwp module.\n\
+  deprecated_add_show_from_set
+    (add_set_cmd ("lin-lwp", no_class, var_zinteger,
+                 (char *) &debug_lin_lwp,
+                 "Set debugging of GNU/Linux lwp module.\n\
 Enables printf debugging output.\n", &setdebuglist), &showdebuglist);
 }
 \f
index f105afa601d58268d02beb549f889146c8ca3f3f..6522456af21151b10802d150c48350c2048f95bb 100644 (file)
@@ -848,13 +848,15 @@ testsuite can check the comamnd deprecator. You probably shouldn't use this,\n\
 If you decide you want to use it: maintenance undeprecate 'commandname'",
           &maintenancelist);
 
-  add_show_from_set (
-                     add_set_cmd ("watchdog", class_maintenance, var_zinteger, (char *) &watchdog,
-                                  "Set watchdog timer.\n\
-When non-zero, this timeout is used instead of waiting forever for a target to\n\
-finish a low-level step or continue operation.  If the specified amount of time\n\
-passes without a response from the target, an error occurs.", &setlist),
-                     &showlist);
+  deprecated_add_show_from_set
+    (add_set_cmd ("watchdog", class_maintenance, var_zinteger,
+                 (char *) &watchdog,
+                 "Set watchdog timer.\n\
+When non-zero, this timeout is used instead of waiting forever for a target\n\
+to finish a low-level step or continue operation.  If the specified amount\n\
+of time passes without a response from the target, an error occurs.",
+                 &setlist),
+     &showlist);
 
 
   add_setshow_boolean_cmd ("profile", class_maintenance,
index d73b3cfe3f5f893a2ac814a15d215b870132ab76..0313a6cfa6eea34a6324a423e78ab36331cc8a78 100644 (file)
@@ -1103,9 +1103,10 @@ _initialize_mcore_tdep (void)
   gdbarch_register (bfd_arch_mcore, mcore_gdbarch_init, mcore_dump_tdep);
 
 #ifdef MCORE_DEBUG
-  add_show_from_set (add_set_cmd ("mcoredebug", no_class,
-                                 var_boolean, (char *) &mcore_debug,
-                                 "Set mcore debugging.\n", &setlist),
-                    &showlist);
+  deprecated_add_show_from_set
+    (add_set_cmd ("mcoredebug", no_class,
+                 var_boolean, (char *) &mcore_debug,
+                 "Set mcore debugging.\n", &setlist),
+     &showlist);
 #endif
 }
index c19977f4832eee1c125210691d26a0edd58c4668..8ed63d66b8a4958825fff6ad8b3b63fb7984505b 100644 (file)
@@ -6104,10 +6104,10 @@ _initialize_mips_tdep (void)
                  &showmipscmdlist, "show mips ", 0, &showlist);
 
   /* Allow the user to override the saved register size. */
-  add_show_from_set (add_set_enum_cmd ("saved-gpreg-size",
-                                      class_obscure,
-                                      size_enums,
-                                      &mips_abi_regsize_string, "\
+  deprecated_add_show_from_set (add_set_enum_cmd ("saved-gpreg-size",
+                                                 class_obscure,
+                                                 size_enums,
+                                                 &mips_abi_regsize_string, "\
 Set size of general purpose registers saved on the stack.\n\
 This option can be set to one of:\n\
   32    - Force GDB to treat saved GP registers as 32-bit\n\
@@ -6117,16 +6117,18 @@ This option can be set to one of:\n\
           (default: auto)", &setmipscmdlist), &showmipscmdlist);
 
   /* Allow the user to override the argument stack size. */
-  add_show_from_set (add_set_enum_cmd ("stack-arg-size",
-                                      class_obscure,
-                                      size_enums,
-                                      &mips_stack_argsize_string, "\
+  deprecated_add_show_from_set
+    (add_set_enum_cmd ("stack-arg-size",
+                      class_obscure,
+                      size_enums,
+                      &mips_stack_argsize_string, "\
 Set the amount of stack space reserved for each argument.\n\
 This option can be set to one of:\n\
   32    - Force GDB to allocate 32-bit chunks per argument\n\
   64    - Force GDB to allocate 64-bit chunks per argument\n\
   auto  - Allow GDB to determine the correct setting from the current\n\
-          target and executable (default)", &setmipscmdlist), &showmipscmdlist);
+          target and executable (default)", &setmipscmdlist),
+     &showmipscmdlist);
 
   /* Allow the user to override the ABI. */
   c = add_set_enum_cmd
@@ -6179,7 +6181,7 @@ search.  The only need to set it is when debugging a stripped executable.", &set
   /* We need to throw away the frame cache when we set this, since it
      might change our ability to get backtraces.  */
   set_cmd_sfunc (c, reinit_frame_cache_sfunc);
-  add_show_from_set (c, &showlist);
+  deprecated_add_show_from_set (c, &showlist);
 
   /* Allow the user to control whether the upper bits of 64-bit
      addresses should be zeroed.  */
@@ -6204,7 +6206,9 @@ that would transfer 32 bits for some registers (e.g. SR, FSR) and\n\
 64 bits for others.  Use \"off\" to disable compatibility mode", set_mips64_transfers_32bit_regs, NULL, &setlist, &showlist);
 
   /* Debug this files internals. */
-  add_show_from_set (add_set_cmd ("mips", class_maintenance, var_zinteger,
-                                 &mips_debug, "Set mips debugging.\n\
-When non-zero, mips specific debugging is enabled.", &setdebuglist), &showdebuglist);
+  deprecated_add_show_from_set
+    (add_set_cmd ("mips", class_maintenance, var_zinteger,
+                 &mips_debug, "Set mips debugging.\n\
+When non-zero, mips specific debugging is enabled.", &setdebuglist),
+     &showdebuglist);
 }
index db76f4159ff2ade642de72d042649a70a22bb948..18927d8120b17d23ce41f349ba72a0a17529fce4 100644 (file)
@@ -2294,14 +2294,15 @@ void
 _initialize_remote_monitors (void)
 {
   init_base_monitor_ops ();
-  add_show_from_set (add_set_cmd ("hash", no_class, var_boolean,
-                                 (char *) &hashmark,
-                                 "Set display of activity while downloading a file.\n\
+  deprecated_add_show_from_set
+    (add_set_cmd ("hash", no_class, var_boolean,
+                 (char *) &hashmark,
+                 "Set display of activity while downloading a file.\n\
 When enabled, a hashmark \'#\' is displayed.",
-                                 &setlist),
-                    &showlist);
+                 &setlist),
+     &showlist);
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("monitor", no_class, var_zinteger,
                  (char *) &monitor_debug_p,
                  "Set debugging of remote monitor communication.\n\
index 8ea727d3e4cd39245459463682e9dc631d024780..dffc176688ad0a0a605f8d29d3fa84c77ab7213c 100644 (file)
--- a/gdb/ocd.c
+++ b/gdb/ocd.c
@@ -1155,10 +1155,11 @@ _initialize_remote_ocd (void)
   extern struct cmd_list_element *cmdlist;
   static struct cmd_list_element *ocd_cmd_list = NULL;
 
-  add_show_from_set (add_set_cmd ("remotetimeout", no_class,
-                                 var_integer, (char *) &remote_timeout,
-                         "Set timeout value for remote read.\n", &setlist),
-                    &showlist);
+  deprecated_add_show_from_set
+    (add_set_cmd ("remotetimeout", no_class,
+                 var_integer, (char *) &remote_timeout,
+                 "Set timeout value for remote read.\n", &setlist),
+     &showlist);
 
   add_prefix_cmd ("ocd", class_obscure, bdm_command, "", &ocd_cmd_list, "ocd ",
                  0, &cmdlist);
index eb92f77591cbdfa1ce0822231eb7fbd6463573c8..e24d6566619bf918560247af1bc84a5e5ea6b7a0 100644 (file)
@@ -1102,7 +1102,7 @@ extern initialize_file_ftype _initialize_pascal_valprint; /* -Wmissing-prototype
 void
 _initialize_pascal_valprint (void)
 {
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("pascal_static-members", class_support, var_boolean,
                  (char *) &pascal_static_field_print,
                  "Set printing of pascal static members.",
index 0bb3de8c8a31e07b414753f471709bac7d9fc63b..b74cd5a9255d8cf462139c1ab3ace8d7e568663f 100644 (file)
@@ -892,7 +892,7 @@ _initialize_pa64_solib (void)
   add_info ("sharedlibrary", pa64_sharedlibrary_info_command,
            "Status of loaded shared object libraries.");
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("auto-solib-add", class_support, var_boolean,
                  (char *) &auto_solib_add,
                  "Set autoloading of shared library symbols.\n\
@@ -903,7 +903,7 @@ inferior.  Otherwise, symbols must be loaded manually, using `sharedlibrary'.",
                  &setlist),
      &showlist);
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("auto-solib-limit", class_support, var_zinteger,
                  (char *) &auto_solib_limit,
                  "Set threshold (in Mb) for autoloading shared library symbols.\n\
index 6bf55fef6a264cac5964722ce81b2000e71422d7..61d28f706635fd8b65e0378c4ba44145f35c4c13 100644 (file)
@@ -1334,11 +1334,11 @@ _initialize_parse (void)
   DEPRECATED_REGISTER_GDBARCH_SWAP (msym_unknown_symbol_type);
   deprecated_register_gdbarch_swap (NULL, 0, build_parse);
 
-  add_show_from_set (
-           add_set_cmd ("expression", class_maintenance, var_zinteger,
-                        (char *) &expressiondebug,
-                        "Set expression debugging.\n\
+  deprecated_add_show_from_set
+    (add_set_cmd ("expression", class_maintenance, var_zinteger,
+                 (char *) &expressiondebug,
+                 "Set expression debugging.\n\
 When non-zero, the internal representation of expressions will be printed.",
-                        &setdebuglist),
-                     &showdebuglist);
+                 &setdebuglist),
+     &showdebuglist);
 }
index 9734ec12ed6262de16a5bf982eaeb179295e43e6..c167cc46bc09f88ab3ca5aea43b5270ee0329c24 100644 (file)
@@ -2146,18 +2146,18 @@ but no count or size letter (see \"x\" command).", NULL));
 environment, the value is printed in its own window.");
   set_cmd_completer (c, location_completer);
 
-  add_show_from_set (
-                add_set_cmd ("max-symbolic-offset", no_class, var_uinteger,
-                             (char *) &max_symbolic_offset,
+  deprecated_add_show_from_set
+    (add_set_cmd ("max-symbolic-offset", no_class, var_uinteger,
+                 (char *) &max_symbolic_offset,
        "Set the largest offset that will be printed in <symbol+1234> form.",
-                             &setprintlist),
-                     &showprintlist);
-  add_show_from_set (
-                     add_set_cmd ("symbol-filename", no_class, var_boolean,
-                                  (char *) &print_symbol_filename,
-          "Set printing of source filename and line number with <symbol>.",
-                                  &setprintlist),
-                     &showprintlist);
+                 &setprintlist),
+     &showprintlist);
+  deprecated_add_show_from_set
+    (add_set_cmd ("symbol-filename", no_class, var_boolean,
+                 (char *) &print_symbol_filename, "\
+Set printing of source filename and line number with <symbol>.",
+                 &setprintlist),
+     &showprintlist);
 
   /* For examine/instruction a single byte quantity is specified as
      the data.  This avoids problems with value_at_lazy() requiring a
index e6d30ea01fe2e99dffca8d4c883f5376b8451171..ec8060ce2bbe3a051771b5dd0d438d5921f3249d 100644 (file)
@@ -784,7 +784,7 @@ _initialize_proc_api (void)
                   var_boolean, (char *) &procfs_trace, 
                   "Set tracing for /proc api calls.\n", &setlist);
 
-  add_show_from_set (c, &showlist);
+  deprecated_add_show_from_set (c, &showlist);
   set_cmd_sfunc (c, set_procfs_trace_cmd);
   set_cmd_completer (c, filename_completer);
 
@@ -792,6 +792,6 @@ _initialize_proc_api (void)
                   (char *) &procfs_filename, 
                   "Set filename for /proc tracefile.\n", &setlist);
 
-  add_show_from_set (c, &showlist);
+  deprecated_add_show_from_set (c, &showlist);
   set_cmd_sfunc (c, set_procfs_file_cmd);
 }
index be283473a783188c68fecb33b5ea4cccc8f74b07..c186381fc3882cf5cbbfe8194ce925c99a29d1aa 100644 (file)
@@ -2188,8 +2188,9 @@ _initialize_remote_e7000 (void)
   add_com ("drain", class_obscure, e7000_drain_command,
           "Drain pending e7000 text buffers.");
 
-  add_show_from_set (add_set_cmd ("usehardbreakpoints", no_class,
-                               var_integer, (char *) &use_hard_breakpoints,
-       "Set use of hardware breakpoints for all breakpoints.\n", &setlist),
-                    &showlist);
+  deprecated_add_show_from_set
+    (add_set_cmd ("usehardbreakpoints", no_class,
+                 var_integer, (char *) &use_hard_breakpoints, "\
+Set use of hardware breakpoints for all breakpoints.\n", &setlist),
+     &showlist);
 }
index 3742bf67dc160cb2453630b2c20851ca20163b32..ae54df9321df815438c65819b2ca4104a411b0e1 100644 (file)
@@ -3368,54 +3368,56 @@ of the TFTP temporary file, if it differs from the filename seen by the board.";
   add_target (&ddb_ops);
   add_target (&lsi_ops);
 
-  add_show_from_set (
-                     add_set_cmd ("timeout", no_class, var_zinteger,
-                                  (char *) &mips_receive_wait,
-                      "Set timeout in seconds for remote MIPS serial I/O.",
-                                  &setlist),
-                     &showlist);
-
-  add_show_from_set (
-                 add_set_cmd ("retransmit-timeout", no_class, var_zinteger,
-                              (char *) &mips_retransmit_wait,
-                              "Set retransmit timeout in seconds for remote MIPS serial I/O.\n\
+  deprecated_add_show_from_set
+    (add_set_cmd ("timeout", no_class, var_zinteger,
+                 (char *) &mips_receive_wait,
+                 "Set timeout in seconds for remote MIPS serial I/O.",
+                 &setlist),
+     &showlist);
+
+  deprecated_add_show_from_set
+    (add_set_cmd ("retransmit-timeout", no_class, var_zinteger,
+                 (char *) &mips_retransmit_wait, "\
+Set retransmit timeout in seconds for remote MIPS serial I/O.\n\
 This is the number of seconds to wait for an acknowledgement to a packet\n\
 before resending the packet.", &setlist),
-                     &showlist);
+     &showlist);
 
-  add_show_from_set (
-                  add_set_cmd ("syn-garbage-limit", no_class, var_zinteger,
-                               (char *) &mips_syn_garbage,
-                               "Set the maximum number of characters to ignore when scanning for a SYN.\n\
+  deprecated_add_show_from_set
+    (add_set_cmd ("syn-garbage-limit", no_class, var_zinteger,
+                 (char *) &mips_syn_garbage, "\
+Set the maximum number of characters to ignore when scanning for a SYN.\n\
 This is the maximum number of characters GDB will ignore when trying to\n\
-synchronize with the remote system.  A value of -1 means that there is no limit\n\
-(Note that these characters are printed out even though they are ignored.)",
-                               &setlist),
-                     &showlist);
+synchronize with the remote system.  A value of -1 means that there is no\n\
+limit. (Note that these characters are printed out even though they are\n\
+ignored.)",
+                 &setlist),
+     &showlist);
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("monitor-prompt", class_obscure, var_string,
                  (char *) &mips_monitor_prompt,
                  "Set the prompt that GDB expects from the monitor.",
                  &setlist),
      &showlist);
 
-  add_show_from_set (
-              add_set_cmd ("monitor-warnings", class_obscure, var_zinteger,
-                           (char *) &monitor_warnings,
-                           "Set printing of monitor warnings.\n"
-               "When enabled, monitor warnings about hardware breakpoints "
-                           "will be displayed.",
-                           &setlist),
-                     &showlist);
+  deprecated_add_show_from_set
+    (add_set_cmd ("monitor-warnings", class_obscure, var_zinteger,
+                 (char *) &monitor_warnings,
+                 "Set printing of monitor warnings.\n"
+                 "When enabled, monitor warnings about hardware breakpoints "
+                 "will be displayed.",
+                 &setlist),
+     &showlist);
 
   add_com ("pmon <command>", class_obscure, pmon_command,
           "Send a packet to PMON (must be in debug mode).");
 
-  add_show_from_set (add_set_cmd ("mask-address", no_class,
-                                 var_boolean, &mask_address_p,
-                                 "Set zeroing of upper 32 bits of 64-bit addresses when talking to PMON targets.\n\
+  deprecated_add_show_from_set
+    (add_set_cmd ("mask-address", no_class,
+                 var_boolean, &mask_address_p, "\
+Set zeroing of upper 32 bits of 64-bit addresses when talking to PMON targets.\n\
 Use \"on\" to enable the masking and \"off\" to disable it.\n",
-                                 &setlist),
-                    &showlist);
+                 &setlist),
+     &showlist);
 }
index 01861f076af06ba9f3930bc833b2e760edcdac90..967ad3ef3f9b167049d5b9302c65d49f844b16aa 100644 (file)
@@ -1119,10 +1119,11 @@ _initialize_remote_sds (void)
   init_sds_ops ();
   add_target (&sds_ops);
 
-  add_show_from_set (add_set_cmd ("sdstimeout", no_class,
-                                 var_integer, (char *) &sds_timeout,
-                            "Set timeout value for sds read.\n", &setlist),
-                    &showlist);
+  deprecated_add_show_from_set
+    (add_set_cmd ("sdstimeout", no_class,
+                 var_integer, (char *) &sds_timeout,
+                 "Set timeout value for sds read.\n", &setlist),
+     &showlist);
 
   add_com ("sds", class_obscure, sds_command,
           "Send a command to the SDS monitor.");
index ba150e34d5d9b13d82ebe416d9eb4056962f07a8..2f3032c7e0d8436d090c5ca9fd2bd2eef2368f98 100644 (file)
@@ -596,12 +596,13 @@ void
 _initialize_sr_support (void)
 {
 /* FIXME-now: if target is open... */
-  add_show_from_set (add_set_cmd ("remotedevice", no_class,
-                                 var_filename, (char *) &sr_settings.device,
-                                 "Set device for remote serial I/O.\n\
+  deprecated_add_show_from_set
+    (add_set_cmd ("remotedevice", no_class,
+                 var_filename, (char *) &sr_settings.device,
+                 "Set device for remote serial I/O.\n\
 This device is used as the serial port when debugging using remote\n\
 targets.", &setlist),
-                    &showlist);
+     &showlist);
 
   add_com ("remote <command>", class_obscure, sr_com,
           "Send a command to the remote monitor.");
index 7895a97e352c640fe3422f37bfb1d56512d04826..a121bedc5cd59d19f06e4e45137c962ce0ad4fbb 100644 (file)
@@ -1391,7 +1391,7 @@ _initialize_vx (void)
   init_vx_run_ops ();
   add_target (&vx_run_ops);
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("vxworks-timeout", class_support, var_uinteger,
                  (char *) &rpcTimeout.tv_sec,
                  "Set seconds to wait for rpc calls to return.\n\
index 80798ee915e07193f7ffd4f122cfa853a1ec56f8..ad85c0721945e3d92a3fe0e2a77f9eab4aed2816 100644 (file)
@@ -5475,7 +5475,7 @@ Specify a negative limit for unlimited.", "\
 Show the maximum number of target hardware breakpoints.\n",
                   NULL, NULL, &remote_set_cmdlist, &remote_show_cmdlist);
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("remoteaddresssize", class_obscure,
                  var_integer, (char *) &remote_address_size,
                  "Set the maximum size of the address (in bits) \
@@ -5492,7 +5492,7 @@ in a memory packet.\n",
 #if 0
   /* XXXX - should ``set remotebinarydownload'' be retained for
      compatibility. */
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("remotebinarydownload", no_class,
                  var_boolean, (char *) &remote_binary_download,
                  "Set binary downloads.\n", &setlist),
index cea01cdf2214425dcbec5902c7708258f264c279..f9299941976e602a4987fe50b6351554cd5983a4 100644 (file)
@@ -903,61 +903,61 @@ _initialize_ser_dos (void)
     intrupts[1].inuse =                /* keyboard */
     intrupts[2].inuse = 1;     /* slave icu */
 
-  add_show_from_set (
-                     add_set_cmd ("com1base", class_obscure, var_zinteger,
-                                  (char *) &ports[0].base,
-                                  "Set COM1 base i/o port address.",
-                                  &setlist),
-                     &showlist);
-
-  add_show_from_set (
-                     add_set_cmd ("com1irq", class_obscure, var_zinteger,
-                                  (char *) &ports[0].irq,
-                                  "Set COM1 interrupt request.",
-                                  &setlist),
-                     &showlist);
-
-  add_show_from_set (
-                     add_set_cmd ("com2base", class_obscure, var_zinteger,
-                                  (char *) &ports[1].base,
-                                  "Set COM2 base i/o port address.",
-                                  &setlist),
-                     &showlist);
-
-  add_show_from_set (
-                     add_set_cmd ("com2irq", class_obscure, var_zinteger,
-                                  (char *) &ports[1].irq,
-                                  "Set COM2 interrupt request.",
-                                  &setlist),
-                     &showlist);
-
-  add_show_from_set (
-                     add_set_cmd ("com3base", class_obscure, var_zinteger,
-                                  (char *) &ports[2].base,
-                                  "Set COM3 base i/o port address.",
-                                  &setlist),
-                     &showlist);
-
-  add_show_from_set (
-                     add_set_cmd ("com3irq", class_obscure, var_zinteger,
-                                  (char *) &ports[2].irq,
-                                  "Set COM3 interrupt request.",
-                                  &setlist),
-                     &showlist);
-
-  add_show_from_set (
-                     add_set_cmd ("com4base", class_obscure, var_zinteger,
-                                  (char *) &ports[3].base,
-                                  "Set COM4 base i/o port address.",
-                                  &setlist),
-                     &showlist);
-
-  add_show_from_set (
-                     add_set_cmd ("com4irq", class_obscure, var_zinteger,
-                                  (char *) &ports[3].irq,
-                                  "Set COM4 interrupt request.",
-                                  &setlist),
-                     &showlist);
+  deprecated_add_show_from_set
+    (add_set_cmd ("com1base", class_obscure, var_zinteger,
+                 (char *) &ports[0].base,
+                 "Set COM1 base i/o port address.",
+                 &setlist),
+     &showlist);
+
+  deprecated_add_show_from_set
+    (add_set_cmd ("com1irq", class_obscure, var_zinteger,
+                 (char *) &ports[0].irq,
+                 "Set COM1 interrupt request.",
+                 &setlist),
+     &showlist);
+
+  deprecated_add_show_from_set
+    (add_set_cmd ("com2base", class_obscure, var_zinteger,
+                 (char *) &ports[1].base,
+                 "Set COM2 base i/o port address.",
+                 &setlist),
+     &showlist);
+
+  deprecated_add_show_from_set
+    (add_set_cmd ("com2irq", class_obscure, var_zinteger,
+                 (char *) &ports[1].irq,
+                 "Set COM2 interrupt request.",
+                 &setlist),
+     &showlist);
+
+  deprecated_add_show_from_set
+    (add_set_cmd ("com3base", class_obscure, var_zinteger,
+                 (char *) &ports[2].base,
+                 "Set COM3 base i/o port address.",
+                 &setlist),
+     &showlist);
+
+  deprecated_add_show_from_set
+    (add_set_cmd ("com3irq", class_obscure, var_zinteger,
+                 (char *) &ports[2].irq,
+                 "Set COM3 interrupt request.",
+                 &setlist),
+     &showlist);
+
+  deprecated_add_show_from_set
+    (add_set_cmd ("com4base", class_obscure, var_zinteger,
+                 (char *) &ports[3].base,
+                 "Set COM4 base i/o port address.",
+                 &setlist),
+     &showlist);
+
+  deprecated_add_show_from_set
+    (add_set_cmd ("com4irq", class_obscure, var_zinteger,
+                 (char *) &ports[3].irq,
+                 "Set COM4 interrupt request.",
+                 &setlist),
+     &showlist);
 
   add_info ("serial", dos_info,
            "Print DOS serial port status.");
index 72f02beb59384b4c7cb2eed30c2a8930b5da7469..7311dd8d60d9f1d00d5b61c08e3a9080f2db4b51 100644 (file)
@@ -686,7 +686,7 @@ Show default serial/parallel port configuration.",
                  0/*allow-unknown*/,
                  &showlist);
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("remotelogfile", no_class,
                  var_filename, (char *) &serial_logfile,
                  "Set filename for remote session recording.\n\
@@ -695,18 +695,19 @@ by gdbserver.",
                  &setlist),
      &showlist);
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_enum_cmd ("remotelogbase", no_class,
                       logbase_enums, &serial_logbase,
                       "Set numerical base for remote session logging",
                       &setlist),
      &showlist);
 
-  add_show_from_set (add_set_cmd ("serial",
-                                 class_maintenance,
-                                 var_zinteger,
-                                 (char *)&global_serial_debug_p,
-                                 "Set serial debugging.\n\
+  deprecated_add_show_from_set
+    (add_set_cmd ("serial",
+                 class_maintenance,
+                 var_zinteger,
+                 (char *)&global_serial_debug_p,
+                 "Set serial debugging.\n\
 When non-zero, serial port debugging is enabled.", &setdebuglist),
-                    &showdebuglist);
+     &showdebuglist);
 }
index 1784f73b2d232e81442969ecbf9132827e172660..efdfc86f678c2c4fad66d662cf0e94b28a7b698b 100644 (file)
@@ -1221,10 +1221,11 @@ _initialize_frv_solib (void)
   current_target_so_ops = &frv_so_ops;
 
   /* Debug this file's internals.  */
-  add_show_from_set (add_set_cmd ("solib-frv", class_maintenance, var_zinteger,
-                                 &solib_frv_debug,
+  deprecated_add_show_from_set
+    (add_set_cmd ("solib-frv", class_maintenance, var_zinteger,
+                 &solib_frv_debug,
 "Set internal debugging of shared library code for FR-V.\n"
 "When non-zero, FR-V solib specific internal debugging is enabled.",
-                                  &setdebuglist),
-                    &showdebuglist);
+                 &setdebuglist),
+     &showdebuglist);
 }
index 137fc709fd4a23f438f11db449f746acdc3a2842..76d782df59ed8860c435a771c524902c10a89d07 100644 (file)
@@ -885,7 +885,7 @@ _initialize_solib (void)
   add_com ("nosharedlibrary", class_files, no_shared_libraries,
           "Unload all shared object library symbols.");
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("auto-solib-add", class_support, var_boolean,
                  (char *) &auto_solib_add,
                  "Set autoloading of shared library symbols.\n\
@@ -901,7 +901,7 @@ inferior.  Otherwise, symbols must be loaded manually, using `sharedlibrary'.",
                   "Set prefix for loading absolute shared library symbol files.\n\
 For other (relative) files, you can add values using `set solib-search-path'.",
                   &setlist);
-  add_show_from_set (c, &showlist);
+  deprecated_add_show_from_set (c, &showlist);
   set_cmd_cfunc (c, reload_shared_libraries);
   set_cmd_completer (c, filename_completer);
 
@@ -914,7 +914,7 @@ For other (relative) files, you can add values using `set solib-search-path'.",
                   "Set the search path for loading non-absolute shared library symbol files.\n\
 This takes precedence over the environment variables PATH and LD_LIBRARY_PATH.",
                   &setlist);
-  add_show_from_set (c, &showlist);
+  deprecated_add_show_from_set (c, &showlist);
   set_cmd_cfunc (c, reload_shared_libraries);
   set_cmd_completer (c, filename_completer);
 }
index 00812804a96401466e74ea2887a13f47a9260bbe..4db13a96a519eb2a9758a82de2a590fd3823c355 100644 (file)
@@ -1583,7 +1583,7 @@ _initialize_som_solib (void)
   add_info ("sharedlibrary", som_sharedlibrary_info_command,
            "Status of loaded shared object libraries.");
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("auto-solib-add", class_support, var_boolean,
                  (char *) &auto_solib_add,
                  "Set autoloading of shared library symbols.\n\
@@ -1594,7 +1594,7 @@ inferior.  Otherwise, symbols must be loaded manually, using `sharedlibrary'.",
                  &setlist),
      &showlist);
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("auto-solib-limit", class_support, var_zinteger,
                  (char *) &auto_solib_limit,
                  "Set threshold (in Mb) for autoloading shared library symbols.\n\
index 6a91c6c688767c91143dfca587fa0358d8644a01..443421cfff477bfad0644890565f0524d4c1a1eb 100644 (file)
@@ -1647,7 +1647,7 @@ The matching line number is also stored as the value of \"$_\".");
       add_com_alias ("?", "reverse-search", class_files, 0);
     }
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("listsize", class_support, var_uinteger,
                  (char *) &lines_to_list,
                  "Set number of source lines gdb will list by default.",
index 31de4ba60173dce3eb8b79fd56bdaa7e229945e1..4f499c1fd413f0e43b9091fd2894c9b7d6a05d89 100644 (file)
@@ -3533,7 +3533,7 @@ with the text.  SECT is a section name to be loaded at SECT_ADDR.",
 for access from GDB.", &cmdlist);
   set_cmd_completer (c, filename_completer);
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("symbol-reloading", class_support, var_boolean,
                  (char *) &symbol_reloading,
            "Set dynamic symbol table reloading multiple times in one run.",
@@ -3577,7 +3577,7 @@ Usage: set extension-language .foo bar",
   add_info ("extensions", info_ext_lang_command,
            "All filename extensions associated with a source language.");
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("download-write-size", class_obscure,
                  var_integer, (char *) &download_write_size,
                  "Set the write size used when downloading a program.\n"
@@ -3600,6 +3600,6 @@ Usage: set extension-language .foo bar",
         "and lastly at the path of the directory of the binary with\n"
         "the global debug-file directory prepended\n",
         &setlist));
-  add_show_from_set (c, &showlist);
+  deprecated_add_show_from_set (c, &showlist);
   set_cmd_completer (c, filename_completer);
 }
index 75f81f3191ad64e80fa51224b9e7b0aa7a9d2e8e..70787603b2bcf43563720f98999512f4a6ee0fef 100644 (file)
@@ -2419,7 +2419,7 @@ initialize_targets (void)
   add_info ("target", target_info, targ_desc);
   add_info ("files", target_info, targ_desc);
 
-  add_show_from_set 
+  deprecated_add_show_from_set 
     (add_set_cmd ("target", class_maintenance, var_zinteger,
                  (char *) &targetdebug,
                  "Set target debugging.\n\
index 98e50100228b4982dd2d2d05b8cdf2d96625496b..e282b2edf16f65c6a9f21cca518b05190269adfc 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1762,7 +1762,7 @@ init_main (void)
      gdb. */
   if (!event_loop_p)
     {
-      add_show_from_set
+      deprecated_add_show_from_set
        (add_set_cmd ("prompt", class_support, var_string,
                      (char *) &gdb_prompt_string, "Set gdb's prompt",
                      &setlist),
@@ -1773,7 +1773,7 @@ init_main (void)
       c = add_set_cmd ("prompt", class_support, var_string,
                       (char *) &new_async_prompt, "Set gdb's prompt",
                       &setlist);
-      add_show_from_set (c, &showlist);
+      deprecated_add_show_from_set (c, &showlist);
       set_cmd_sfunc (c, set_async_prompt);
     }
 
@@ -1786,7 +1786,7 @@ hitting return.");
      as we make the event loop be the default engine of gdb. */
   if (!event_loop_p)
     {
-      add_show_from_set
+      deprecated_add_show_from_set
        (add_set_cmd ("editing", class_support, var_boolean, (char *) &command_editing_p,
                      "Set editing of command lines as they are typed.\n\
 Use \"on\" to enable the editing, and \"off\" to disable it.\n\
@@ -1802,11 +1802,11 @@ Use \"on\" to enable the editing, and \"off\" to disable it.\n\
 Without an argument, command line editing is enabled.  To edit, use\n\
 EMACS-like or VI-like commands like control-P or ESC.", &setlist);
 
-      add_show_from_set (c, &showlist);
+      deprecated_add_show_from_set (c, &showlist);
       set_cmd_sfunc (c, set_async_editing_command);
     }
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("save", no_class, var_boolean, (char *) &write_history_p,
                  "Set saving of the history record on exit.\n\
 Use \"on\" to enable the saving, and \"off\" to disable it.\n\
@@ -1816,7 +1816,7 @@ Without an argument, saving is enabled.", &sethistlist),
   c = add_set_cmd ("size", no_class, var_integer, (char *) &history_size,
                   "Set the size of the command history,\n\
 ie. the number of previous commands to keep a record of.", &sethistlist);
-  add_show_from_set (c, &showhistlist);
+  deprecated_add_show_from_set (c, &showhistlist);
   set_cmd_sfunc (c, set_history_size_command);
 
   c = add_set_cmd ("filename", no_class, var_filename,
@@ -1824,9 +1824,9 @@ ie. the number of previous commands to keep a record of.", &sethistlist);
                   "Set the filename in which to record the command history\n\
 (the list of previous commands of which a record is kept).", &sethistlist);
   set_cmd_completer (c, filename_completer);
-  add_show_from_set (c, &showhistlist);
+  deprecated_add_show_from_set (c, &showhistlist);
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("confirm", class_support, var_boolean,
                  (char *) &caution,
                  "Set whether to confirm potentially dangerous operations.",
@@ -1844,7 +1844,7 @@ ie. the number of previous commands to keep a record of.", &sethistlist);
 0 == normal;     1 == fullname (for use when running under emacs)\n\
 2 == output annotated suitably for use by programs that control GDB.",
                       &setlist);
-      c = add_show_from_set (c, &showlist);
+      c = deprecated_add_show_from_set (c, &showlist);
     }
   else
     {
@@ -1853,12 +1853,12 @@ ie. the number of previous commands to keep a record of.", &sethistlist);
 0 == normal;     1 == fullname (for use when running under emacs)\n\
 2 == output annotated suitably for use by programs that control GDB.",
                       &setlist);
-      add_show_from_set (c, &showlist);
+      deprecated_add_show_from_set (c, &showlist);
       set_cmd_sfunc (c, set_async_annotation_level);
     }
   if (event_loop_p)
     {
-      add_show_from_set
+      deprecated_add_show_from_set
        (add_set_cmd ("exec-done-display", class_support, var_boolean, (char *) &exec_done_display_p,
                      "Set notification of completion for asynchronous execution commands.\n\
 Use \"on\" to enable the notification, and \"off\" to disable it.", &setlist),
index 0be63b66339821e5f3138c08c36aea11fc7ae0ab..a646a5a24f72d3426fdbbd55c310662b0d235192 100644 (file)
@@ -379,7 +379,7 @@ Usage: w <#lines>\n");
      "ascii           use ascii characters + - | for the border\n"
      "acs             use the Alternate Character Set\n",
      &tui_setlist);
-  add_show_from_set (c, &tui_showlist);
+  deprecated_add_show_from_set (c, &tui_showlist);
 
   c = add_set_enum_cmd
     ("border-mode", no_class,
@@ -394,7 +394,7 @@ Usage: w <#lines>\n");
      "bold            use extra bright or bold\n"
      "bold-standout   use extra bright or bold with standout mode\n",
      &tui_setlist);
-  add_show_from_set (c, &tui_showlist);
+  deprecated_add_show_from_set (c, &tui_showlist);
 
   c = add_set_enum_cmd
     ("active-border-mode", no_class,
@@ -409,7 +409,7 @@ Usage: w <#lines>\n");
      "bold            use extra bright or bold\n"
      "bold-standout   use extra bright or bold with standout mode\n",
      &tui_setlist);
-  add_show_from_set (c, &tui_showlist);
+  deprecated_add_show_from_set (c, &tui_showlist);
 }
 
 /* Update gdb's knowledge of the terminal size.  */
index 10dddeb9afcb6403a293eda8b9af06955f6e00db..aea58f04b0105bab700543626dbff23fcd7f0cbe 100644 (file)
@@ -2615,23 +2615,23 @@ initialize_utils (void)
   c = add_set_cmd ("width", class_support, var_uinteger, &chars_per_line,
                   "Set number of characters gdb thinks are in a line.",
                   &setlist);
-  add_show_from_set (c, &showlist);
+  deprecated_add_show_from_set (c, &showlist);
   set_cmd_sfunc (c, set_width_command);
 
   c = add_set_cmd ("height", class_support, var_uinteger, &lines_per_page,
                   "Set number of lines gdb thinks are in a page.", &setlist);
-  add_show_from_set (c, &showlist);
+  deprecated_add_show_from_set (c, &showlist);
   set_cmd_sfunc (c, set_height_command);
 
   init_page_info ();
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("demangle", class_support, var_boolean,
                  (char *) &demangle,
                  "Set demangling of encoded C++/ObjC names when displaying symbols.",
                  &setprintlist), &showprintlist);
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("pagination", class_support,
                  var_boolean, (char *) &pagination_enabled,
                  "Set state of pagination.", &setlist), &showlist);
@@ -2644,13 +2644,13 @@ initialize_utils (void)
               "Disable pagination");
     }
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("sevenbit-strings", class_support, var_boolean,
                  (char *) &sevenbit_strings,
                  "Set printing of 8-bit characters in strings as \\nnn.",
                  &setprintlist), &showprintlist);
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("asm-demangle", class_support, var_boolean,
                  (char *) &asm_demangle,
                  "Set demangling of C++/ObjC names in disassembly listings.",
index de6a8ddf4c5d5b8a4bf16e827a6ce03ffdcd6e3f..57e5d842dc2d0276b0a22c82d83ff1fe136277fb 100644 (file)
@@ -2860,14 +2860,14 @@ void
 _initialize_valops (void)
 {
 #if 0
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("abandon", class_support, var_boolean, (char *) &auto_abandon,
                  "Set automatic abandonment of expressions upon failure.",
                  &setlist),
      &showlist);
 #endif
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("overload-resolution", class_support, var_boolean, (char *) &overload_resolution,
                  "Set overload resolution in evaluating C++ functions.",
                  &setlist),
index 294e09f58aba4dafa8ca2e7caa1c58bf15a5fe66..16c46b8beefe99fe69ed791d31ff8a814b88a02e 100644 (file)
@@ -1359,21 +1359,21 @@ _initialize_valprint (void)
   add_alias_cmd ("p", "print", no_class, 1, &showlist);
   add_alias_cmd ("pr", "print", no_class, 1, &showlist);
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("elements", no_class, var_uinteger, (char *) &print_max,
                  "Set limit on string chars or array elements to print.\n\
 \"set print elements 0\" causes there to be no limit.",
                  &setprintlist),
      &showprintlist);
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("null-stop", no_class, var_boolean,
                  (char *) &stop_print_at_null,
                  "Set printing of char arrays to stop at first null char.",
                  &setprintlist),
      &showprintlist);
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("repeats", no_class, var_uinteger,
                  (char *) &repeat_count_threshold,
                  "Set threshold for repeated print elements.\n\
@@ -1381,27 +1381,27 @@ _initialize_valprint (void)
                  &setprintlist),
      &showprintlist);
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("pretty", class_support, var_boolean,
                  (char *) &prettyprint_structs,
                  "Set prettyprinting of structures.",
                  &setprintlist),
      &showprintlist);
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("union", class_support, var_boolean, (char *) &unionprint,
                  "Set printing of unions interior to structures.",
                  &setprintlist),
      &showprintlist);
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("array", class_support, var_boolean,
                  (char *) &prettyprint_arrays,
                  "Set prettyprinting of arrays.",
                  &setprintlist),
      &showprintlist);
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("address", class_support, var_boolean, (char *) &addressprint,
                  "Set printing of addresses.",
                  &setprintlist),
@@ -1411,21 +1411,21 @@ _initialize_valprint (void)
                   (char *) &input_radix,
                   "Set default input radix for entering numbers.",
                   &setlist);
-  add_show_from_set (c, &showlist);
+  deprecated_add_show_from_set (c, &showlist);
   set_cmd_sfunc (c, set_input_radix);
 
   c = add_set_cmd ("output-radix", class_support, var_uinteger,
                   (char *) &output_radix,
                   "Set default output radix for printing of values.",
                   &setlist);
-  add_show_from_set (c, &showlist);
+  deprecated_add_show_from_set (c, &showlist);
   set_cmd_sfunc (c, set_output_radix);
 
-  /* The "set radix" and "show radix" commands are special in that they are
-     like normal set and show commands but allow two normally independent
-     variables to be either set or shown with a single command.  So the
-     usual add_set_cmd() and add_show_from_set() commands aren't really
-     appropriate. */
+  /* The "set radix" and "show radix" commands are special in that
+     they are like normal set and show commands but allow two normally
+     independent variables to be either set or shown with a single
+     command.  So the usual deprecated_add_set_cmd() and
+     add_show_from_set() commands aren't really appropriate. */
   add_cmd ("radix", class_support, set_radix,
           "Set default input and output number radices.\n\
 Use 'set input-radix' or 'set output-radix' to independently set each.\n\
index ea4fa0118c124b2e6d92621a77c37956adc21c04..8c1cd5729ecb5de158a10dc257945dc9b1e9fbdc 100644 (file)
@@ -2558,7 +2558,7 @@ _initialize_varobj (void)
   varobj_table = xmalloc (sizeof_table);
   memset (varobj_table, 0, sizeof_table);
 
-  add_show_from_set (add_set_cmd ("debugvarobj", class_maintenance, var_zinteger, (char *) &varobjdebug, "Set varobj debugging.\n\
+  deprecated_add_show_from_set (add_set_cmd ("debugvarobj", class_maintenance, var_zinteger, (char *) &varobjdebug, "Set varobj debugging.\n\
 When non-zero, varobj debugging is enabled.", &setlist),
                     &showlist);
 }
index 376a760e939a8236d48211452315e293c092bcec..601f28bf1294b0e140574aa5ca516c5fa621a4ca 100644 (file)
@@ -2125,47 +2125,54 @@ _initialize_win32_nat (void)
 
   add_com_alias ("sharedlibrary", "dll-symbols", class_alias, 1);
 
-  add_show_from_set (add_set_cmd ("shell", class_support, var_boolean,
-                                 (char *) &useshell,
-                "Set use of shell to start subprocess.",
-                                 &setlist),
-                    &showlist);
-
-  add_show_from_set (add_set_cmd ("new-console", class_support, var_boolean,
-                                 (char *) &new_console,
-                "Set creation of new console when creating child process.",
-                                 &setlist),
-                    &showlist);
-
-  add_show_from_set (add_set_cmd ("new-group", class_support, var_boolean,
-                                 (char *) &new_group,
-                  "Set creation of new group when creating child process.",
-                                 &setlist),
-                    &showlist);
-
-  add_show_from_set (add_set_cmd ("debugexec", class_support, var_boolean,
-                                 (char *) &debug_exec,
-                      "Set whether to display execution in child process.",
-                                 &setlist),
-                    &showlist);
-
-  add_show_from_set (add_set_cmd ("debugevents", class_support, var_boolean,
-                                 (char *) &debug_events,
-                  "Set whether to display kernel events in child process.",
-                                 &setlist),
-                    &showlist);
-
-  add_show_from_set (add_set_cmd ("debugmemory", class_support, var_boolean,
-                                 (char *) &debug_memory,
-                "Set whether to display memory accesses in child process.",
-                                 &setlist),
-                    &showlist);
-
-  add_show_from_set (add_set_cmd ("debugexceptions", class_support, var_boolean,
-                                 (char *) &debug_exceptions,
-              "Set whether to display kernel exceptions in child process.",
-                                 &setlist),
-                    &showlist);
+  deprecated_add_show_from_set
+    (add_set_cmd ("shell", class_support, var_boolean,
+                 (char *) &useshell,
+                 "Set use of shell to start subprocess.",
+                 &setlist),
+     &showlist);
+
+  deprecated_add_show_from_set
+    (add_set_cmd ("new-console", class_support, var_boolean,
+                 (char *) &new_console,
+                 "Set creation of new console when creating child process.",
+                 &setlist),
+     &showlist);
+
+  deprecated_add_show_from_set
+    (add_set_cmd ("new-group", class_support, var_boolean,
+                 (char *) &new_group,
+                 "Set creation of new group when creating child process.",
+                 &setlist),
+     &showlist);
+
+  deprecated_add_show_from_set
+    (add_set_cmd ("debugexec", class_support, var_boolean,
+                 (char *) &debug_exec,
+                 "Set whether to display execution in child process.",
+                 &setlist),
+     &showlist);
+
+  deprecated_add_show_from_set
+    (add_set_cmd ("debugevents", class_support, var_boolean,
+                 (char *) &debug_events,
+                 "Set whether to display kernel events in child process.",
+                 &setlist),
+     &showlist);
+
+  deprecated_add_show_from_set
+    (add_set_cmd ("debugmemory", class_support, var_boolean,
+                 (char *) &debug_memory,
+                 "Set whether to display memory accesses in child process.",
+                 &setlist),
+     &showlist);
+
+  deprecated_add_show_from_set
+    (add_set_cmd ("debugexceptions", class_support, var_boolean,
+                 (char *) &debug_exceptions,
+                 "Set whether to display kernel exceptions in child process.",
+                 &setlist),
+     &showlist);
 
   add_info ("dll", info_dll_command, "Status of loaded DLLs.");
   add_info_alias ("sharedlibrary", "dll", 1);
index e8361bfe96076c09e5a2fe80a83256bd1d4215b7..b70e5b9fee69f1a2336206c62287565431cbcb30 100644 (file)
@@ -1970,7 +1970,7 @@ _initialize_wince (void)
   struct cmd_list_element *set;
   init_child_ops ();
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ((char *) "remotedirectory", no_class,
                  var_string_noescape, (char *) &remote_directory,
                  (char *) "Set directory for remote upload.\n",
@@ -1982,18 +1982,18 @@ _initialize_wince (void)
                     var_string_noescape, (char *) &remote_upload,
               (char *) "Set how to upload executables to remote device.\n",
                     &setlist);
-  add_show_from_set (set, &showlist);
+  deprecated_add_show_from_set (set, &showlist);
   set_cmd_cfunc (set, set_upload_type);
   set_upload_type (NULL, 0);
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ((char *) "debugexec", class_support, var_boolean,
                  (char *) &debug_exec,
              (char *) "Set whether to display execution in child process.",
                  &setlist),
      &showlist);
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ((char *) "remoteaddhost", class_support, var_boolean,
                  (char *) &remote_add_host,
                  (char *) "\
@@ -2001,21 +2001,21 @@ Set whether to add this host to remote stub arguments for\n\
 debugging over a network.", &setlist),
      &showlist);
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ((char *) "debugevents", class_support, var_boolean,
                  (char *) &debug_events,
          (char *) "Set whether to display kernel events in child process.",
                  &setlist),
      &showlist);
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ((char *) "debugmemory", class_support, var_boolean,
                  (char *) &debug_memory,
        (char *) "Set whether to display memory accesses in child process.",
                  &setlist),
      &showlist);
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ((char *) "debugexceptions", class_support, var_boolean,
                  (char *) &debug_exceptions,
       (char *) "Set whether to display kernel exceptions in child process.",
index 376a760e939a8236d48211452315e293c092bcec..601f28bf1294b0e140574aa5ca516c5fa621a4ca 100644 (file)
@@ -2125,47 +2125,54 @@ _initialize_win32_nat (void)
 
   add_com_alias ("sharedlibrary", "dll-symbols", class_alias, 1);
 
-  add_show_from_set (add_set_cmd ("shell", class_support, var_boolean,
-                                 (char *) &useshell,
-                "Set use of shell to start subprocess.",
-                                 &setlist),
-                    &showlist);
-
-  add_show_from_set (add_set_cmd ("new-console", class_support, var_boolean,
-                                 (char *) &new_console,
-                "Set creation of new console when creating child process.",
-                                 &setlist),
-                    &showlist);
-
-  add_show_from_set (add_set_cmd ("new-group", class_support, var_boolean,
-                                 (char *) &new_group,
-                  "Set creation of new group when creating child process.",
-                                 &setlist),
-                    &showlist);
-
-  add_show_from_set (add_set_cmd ("debugexec", class_support, var_boolean,
-                                 (char *) &debug_exec,
-                      "Set whether to display execution in child process.",
-                                 &setlist),
-                    &showlist);
-
-  add_show_from_set (add_set_cmd ("debugevents", class_support, var_boolean,
-                                 (char *) &debug_events,
-                  "Set whether to display kernel events in child process.",
-                                 &setlist),
-                    &showlist);
-
-  add_show_from_set (add_set_cmd ("debugmemory", class_support, var_boolean,
-                                 (char *) &debug_memory,
-                "Set whether to display memory accesses in child process.",
-                                 &setlist),
-                    &showlist);
-
-  add_show_from_set (add_set_cmd ("debugexceptions", class_support, var_boolean,
-                                 (char *) &debug_exceptions,
-              "Set whether to display kernel exceptions in child process.",
-                                 &setlist),
-                    &showlist);
+  deprecated_add_show_from_set
+    (add_set_cmd ("shell", class_support, var_boolean,
+                 (char *) &useshell,
+                 "Set use of shell to start subprocess.",
+                 &setlist),
+     &showlist);
+
+  deprecated_add_show_from_set
+    (add_set_cmd ("new-console", class_support, var_boolean,
+                 (char *) &new_console,
+                 "Set creation of new console when creating child process.",
+                 &setlist),
+     &showlist);
+
+  deprecated_add_show_from_set
+    (add_set_cmd ("new-group", class_support, var_boolean,
+                 (char *) &new_group,
+                 "Set creation of new group when creating child process.",
+                 &setlist),
+     &showlist);
+
+  deprecated_add_show_from_set
+    (add_set_cmd ("debugexec", class_support, var_boolean,
+                 (char *) &debug_exec,
+                 "Set whether to display execution in child process.",
+                 &setlist),
+     &showlist);
+
+  deprecated_add_show_from_set
+    (add_set_cmd ("debugevents", class_support, var_boolean,
+                 (char *) &debug_events,
+                 "Set whether to display kernel events in child process.",
+                 &setlist),
+     &showlist);
+
+  deprecated_add_show_from_set
+    (add_set_cmd ("debugmemory", class_support, var_boolean,
+                 (char *) &debug_memory,
+                 "Set whether to display memory accesses in child process.",
+                 &setlist),
+     &showlist);
+
+  deprecated_add_show_from_set
+    (add_set_cmd ("debugexceptions", class_support, var_boolean,
+                 (char *) &debug_exceptions,
+                 "Set whether to display kernel exceptions in child process.",
+                 &setlist),
+     &showlist);
 
   add_info ("dll", info_dll_command, "Status of loaded DLLs.");
   add_info_alias ("sharedlibrary", "dll", 1);
index 62426c92fb07398e70bde869e7bb137d63a0fa5c..9dcc3c4f715c0a0c2ca91a2d42e4e00f0e77390a 100644 (file)
@@ -183,7 +183,7 @@ _initialize_xcoffsolib (void)
   add_info ("sharedlibrary", solib_info,
            "Status of loaded shared object libraries");
 
-  add_show_from_set
+  deprecated_add_show_from_set
     (add_set_cmd ("auto-solib-add", class_support, var_boolean,
                  (char *) &auto_solib_add,
                  "Set autoloading of shared library symbols.\n\