This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] Use add_setshow_zinteger_cmd


FYI. In doing this a few set-with-out-show cases were fixed.

committed,
Andrew
2005-02-18  Andrew Cagney  <cagney@gnu.org>

	Use add_setshow_zinteger_cmd through out.  Re-sync gdbarch.sh
	and gdbarch.c.
	* breakpoint.c, frame.c, gdb-events.sh, gdbarch.sh: Update.
	* gdbtypes.c, infrun.c, linux-nat.c, maint.c, monitor.c: Update.
	* pa64solib.c, parse.c, remote-mips.c, ser-go32.c: Update.
	* serial.c, solib-frv.c, somsolib.c, target.c, top.c: Update.
	* varobj.c, cli/cli-cmds.c: Update.
	* gdbarch.c, gdb-events.c: Regenerate.
	
Index: breakpoint.c
===================================================================
RCS file: /cvs/src/src/gdb/breakpoint.c,v
retrieving revision 1.210
diff -p -u -r1.210 breakpoint.c
--- breakpoint.c	17 Feb 2005 13:49:48 -0000	1.210
+++ breakpoint.c	18 Feb 2005 17:46:55 -0000
@@ -7928,15 +7928,17 @@ an expression is either read or written.
 	    _("Synonym for ``info breakpoints''."));
 
 
-  c = add_set_cmd ("can-use-hw-watchpoints", class_support, var_zinteger,
-		   (char *) &can_use_hw_watchpoints,
-		   "Set debugger's willingness to use watchpoint hardware.\n\
+  add_setshow_zinteger_cmd ("can-use-hw-watchpoints", class_support,
+			    &can_use_hw_watchpoints, _("\
+Set debugger's willingness to use watchpoint hardware."), _("\
+Show debugger's willingness to use watchpoint hardware."), _("\
 If zero, gdb will not use hardware for new watchpoints, even if\n\
 such is available.  (However, any hardware watchpoints that were\n\
 created before setting this to nonzero, will continue to use watchpoint\n\
-hardware.)",
-		   &setlist);
-  deprecated_add_show_from_set (c, &showlist);
+hardware.)"),
+			    NULL,
+			    NULL, /* FIXME: i18n: */
+			    &setlist, &showlist);
 
   can_use_hw_watchpoints = 1;
 
Index: frame.c
===================================================================
RCS file: /cvs/src/src/gdb/frame.c,v
retrieving revision 1.205
diff -p -u -r1.205 frame.c
--- frame.c	17 Feb 2005 13:49:50 -0000	1.205
+++ frame.c	18 Feb 2005 17:46:55 -0000
@@ -1587,9 +1587,11 @@ Zero is unlimited."),
 			    &show_backtrace_cmdlist);
 
   /* Debug this files internals. */
-  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);
+  add_setshow_zinteger_cmd ("frame", class_maintenance, &frame_debug,  _("\
+Set frame debugging."), _("\
+Show frame debugging."), _("\
+When non-zero, frame specific internal debugging is enabled."),
+			    NULL,
+			    NULL, /* FIXME: i18n: */
+			    &setdebuglist, &showdebuglist);
 }
Index: gdb-events.sh
===================================================================
RCS file: /cvs/src/src/gdb/gdb-events.sh,v
retrieving revision 1.23
diff -p -u -r1.23 gdb-events.sh
--- gdb-events.sh	9 Feb 2005 21:56:11 -0000	1.23
+++ gdb-events.sh	18 Feb 2005 17:46:56 -0000
@@ -474,13 +474,14 @@ do
 done
 cat <<EOF
 
-  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);
+  add_setshow_zinteger_cmd ("event", class_maintenance,
+                            &gdb_events_debug, _("\\
+Set event debugging."), _("\\
+Show event debugging."), _("\\
+When non-zero, event/notify debugging is enabled."),
+                            NULL,
+                            NULL, /* FIXME: i18n: */
+                            &setdebuglist, &showdebuglist);
 }
 EOF
 
Index: gdbarch.sh
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.sh,v
retrieving revision 1.354
diff -p -u -r1.354 gdbarch.sh
--- gdbarch.sh	9 Feb 2005 21:56:11 -0000	1.354
+++ gdbarch.sh	18 Feb 2005 17:46:56 -0000
@@ -1462,7 +1462,7 @@ cat <<EOF
   make_cleanup (xfree, buf);
   if (strlen (buf) > 0)
     internal_error (__FILE__, __LINE__,
-                    "verify_gdbarch: the following are invalid ...%s",
+                    _("verify_gdbarch: the following are invalid ...%s"),
                     buf);
   do_cleanups (cleanups);
 }
@@ -1957,7 +1957,7 @@ gdbarch_printable_names (void)
       ap = bfd_lookup_arch (rego->bfd_architecture, 0);
       if (ap == NULL)
         internal_error (__FILE__, __LINE__,
-                        "gdbarch_architecture_names: multi-arch unknown");
+                        _("gdbarch_architecture_names: multi-arch unknown"));
       do
         {
           append_name (&arches, &nr_arches, ap->printable_name);
@@ -1982,7 +1982,7 @@ gdbarch_register (enum bfd_architecture 
   if (bfd_arch_info == NULL)
     {
       internal_error (__FILE__, __LINE__,
-                      "gdbarch: Attempt to register unknown architecture (%d)",
+                      _("gdbarch: Attempt to register unknown architecture (%d)"),
                       bfd_architecture);
     }
   /* Check that we haven't seen this architecture before */
@@ -1992,7 +1992,7 @@ gdbarch_register (enum bfd_architecture 
     {
       if (bfd_architecture == (*curr)->bfd_architecture)
 	internal_error (__FILE__, __LINE__,
-                        "gdbarch: Duplicate registraration of architecture (%s)",
+                        _("gdbarch: Duplicate registraration of architecture (%s)"),
 	                bfd_arch_info->printable_name);
     }
   /* log it */
@@ -2216,14 +2216,13 @@ _initialize_gdbarch (void)
 {
   struct cmd_list_element *c;
 
-  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);
+  add_setshow_zinteger_cmd ("arch", class_maintenance, &gdbarch_debug, _("\\
+Set architecture debugging."), _("\\
+Show architecture debugging."), _("\\
+When non-zero, architecture debugging is enabled."),
+                            NULL,
+                            NULL, /* FIXME: i18n: */
+                            &setdebuglist, &showdebuglist);
 }
 EOF
 
Index: gdbtypes.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtypes.c,v
retrieving revision 1.97
diff -p -u -r1.97 gdbtypes.c
--- gdbtypes.c	18 Feb 2005 15:25:25 -0000	1.97
+++ gdbtypes.c	18 Feb 2005 17:46:56 -0000
@@ -3707,9 +3707,11 @@ _initialize_gdbtypes (void)
 		 "builtin_type_ia64_quad_little",
 		 &floatformat_ia64_quad_little);
 
-  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);
+  add_setshow_zinteger_cmd ("overload", no_class, &overload_debug, _("\
+Set debugging of C++ overloading."), _("\
+Show debugging of C++ overloading."), _("\
+When enabled, ranking of the functions is displayed."),
+			    NULL,
+			    NULL, /* FIXME: i18n: */
+			    &setdebuglist, &showdebuglist);
 }
Index: infrun.c
===================================================================
RCS file: /cvs/src/src/gdb/infrun.c,v
retrieving revision 1.195
diff -p -u -r1.195 infrun.c
--- infrun.c	18 Feb 2005 15:25:25 -0000	1.195
+++ infrun.c	18 Feb 2005 17:46:57 -0000
@@ -3840,9 +3840,13 @@ There is no `stop' command, but you can 
 This allows you to set a list of commands to be run each time execution\n\
 of the program stops."), &cmdlist);
 
-  add_set_cmd ("infrun", class_maintenance, var_zinteger,
-	       &debug_infrun, "Set inferior debugging.\n\
-When non-zero, inferior specific debugging is enabled.", &setdebuglist);
+  add_setshow_zinteger_cmd ("infrun", class_maintenance, &debug_infrun, _("\
+Set inferior debugging."), _("\
+Show inferior debugging."), _("\
+When non-zero, inferior specific debugging is enabled."),
+			    NULL,
+			    NULL, /* FIXME: i18n: */
+			    &setdebuglist, &showdebuglist);
 
   numsigs = (int) TARGET_SIGNAL_LAST;
   signal_stop = (unsigned char *) xmalloc (sizeof (signal_stop[0]) * numsigs);
@@ -3892,15 +3896,16 @@ When non-zero, inferior specific debuggi
   signal_print[TARGET_SIGNAL_CANCEL] = 0;
 
 #ifdef SOLIB_ADD
-  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\
+  add_setshow_zinteger_cmd ("stop-on-solib-events", class_support,
+			    &stop_on_solib_events, _("\
+Set stopping for shared library events."), _("\
+Show stopping for shared library events."), _("\
 If nonzero, gdb will give control to the user when the dynamic linker\n\
 notifies gdb of shared library events.  The most common event of interest\n\
-to the user would be loading/unloading of a new library.\n", 
-		  &setlist), 
-     &showlist);
+to the user would be loading/unloading of a new library."),
+			    NULL,
+			    NULL, /* FIXME: i18n: */
+			    &setlist, &showlist);
 #endif
 
   c = add_set_enum_cmd ("follow-fork-mode",
Index: linux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/linux-nat.c,v
retrieving revision 1.23
diff -p -u -r1.23 linux-nat.c
--- linux-nat.c	15 Feb 2005 15:49:12 -0000	1.23
+++ linux-nat.c	18 Feb 2005 17:46:57 -0000
@@ -3084,11 +3084,13 @@ Specify any of the following keywords fo
 
   sigemptyset (&blocked_mask);
 
-  deprecated_add_show_from_set
-    (add_set_cmd ("lin-lwp", no_class, var_zinteger,
-		  (char *) &debug_linux_nat,
-		  "Set debugging of GNU/Linux lwp module.\n\
-Enables printf debugging output.\n", &setdebuglist), &showdebuglist);
+  add_setshow_zinteger_cmd ("lin-lwp", no_class, &debug_linux_nat, _("\
+Set debugging of GNU/Linux lwp module."), _("\
+Show debugging of GNU/Linux lwp module."), _("\
+Enables printf debugging output."),
+			    NULL,
+			    NULL, /* FIXME: i18n: */
+			    &setdebuglist, &showdebuglist);
 }
 
 
Index: maint.c
===================================================================
RCS file: /cvs/src/src/gdb/maint.c,v
retrieving revision 1.54
diff -p -u -r1.54 maint.c
--- maint.c	17 Feb 2005 13:49:53 -0000	1.54
+++ maint.c	18 Feb 2005 17:46:57 -0000
@@ -852,16 +852,15 @@ testsuite can check the comamnd deprecat
 If you decide you want to use it: maintenance undeprecate 'commandname'"),
 	   &maintenancelist);
 
-  deprecated_add_show_from_set
-    (add_set_cmd ("watchdog", class_maintenance, var_zinteger,
-		  (char *) &watchdog,
-		  "Set watchdog timer.\n\
+  add_setshow_zinteger_cmd ("watchdog", class_maintenance, &watchdog, _("\
+Set watchdog timer."), _("\
+Show watchdog timer."), _("\
 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);
-
+of time passes without a response from the target, an error occurs."),
+			    NULL,
+			    NULL, /* FIXME: i18n: */
+			    &setlist, &showlist);
 
   add_setshow_boolean_cmd ("profile", class_maintenance,
 			   &maintenance_profile_p, _("\
Index: monitor.c
===================================================================
RCS file: /cvs/src/src/gdb/monitor.c,v
retrieving revision 1.59
diff -p -u -r1.59 monitor.c
--- monitor.c	18 Feb 2005 15:25:26 -0000	1.59
+++ monitor.c	18 Feb 2005 17:46:57 -0000
@@ -2303,11 +2303,12 @@ When enabled, a hashmark \'#\' is displa
 			   NULL, /* FIXME: i18n: */
 			   &setlist, &showlist);
 
-  deprecated_add_show_from_set
-    (add_set_cmd ("monitor", no_class, var_zinteger,
-		  (char *) &monitor_debug_p,
-		  "Set debugging of remote monitor communication.\n\
+  add_setshow_zinteger_cmd ("monitor", no_class, &monitor_debug_p, _("\
+Set debugging of remote monitor communication."), _("\
+Show debugging of remote monitor communication."), _("\
 When enabled, communication between GDB and the remote monitor\n\
-is displayed.", &setdebuglist),
-     &showdebuglist);
+is displayed."),
+			    NULL,
+			    NULL, /* FIXME: i18n: */
+			    &setdebuglist, &showdebuglist);
 }
Index: pa64solib.c
===================================================================
RCS file: /cvs/src/src/gdb/pa64solib.c,v
retrieving revision 1.31
diff -p -u -r1.31 pa64solib.c
--- pa64solib.c	18 Feb 2005 15:25:26 -0000	1.31
+++ pa64solib.c	18 Feb 2005 17:46:57 -0000
@@ -901,15 +901,16 @@ inferior.  Otherwise, symbols must be lo
 			   NULL, /* FIXME: i18n: */
 			   &setlist, &showlist);
 
-  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\
+  add_setshow_zinteger_cmd ("auto-solib-limit", class_support,
+			    &auto_solib_limit, _("\
+Set threshold (in Mb) for autoloading shared library symbols."), _("\
+Show threshold (in Mb) for autoloading shared library symbols."), _("\
 When shared library autoloading is enabled, new libraries will be loaded\n\
 only until the total size of shared library symbols exceeds this\n\
-threshold in megabytes.  Is ignored when using `sharedlibrary'.",
-		  &setlist),
-     &showlist);
+threshold in megabytes.  Is ignored when using `sharedlibrary'."),
+			    NULL,
+			    NULL, /* FIXME: i18n: */
+			    &setlist, &showlist);
 
   /* ??rehrauer: On HP-UX, the kernel parameter MAXDSIZ limits how
      much data space a process can use.  We ought to be reading
Index: parse.c
===================================================================
RCS file: /cvs/src/src/gdb/parse.c,v
retrieving revision 1.46
diff -p -u -r1.46 parse.c
--- parse.c	11 Feb 2005 18:13:51 -0000	1.46
+++ parse.c	18 Feb 2005 17:46:57 -0000
@@ -1312,11 +1312,12 @@ _initialize_parse (void)
   DEPRECATED_REGISTER_GDBARCH_SWAP (msym_unknown_symbol_type);
   deprecated_register_gdbarch_swap (NULL, 0, build_parse);
 
-  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);
+  add_setshow_zinteger_cmd ("expression", class_maintenance,
+			    &expressiondebug, _("\
+Set expression debugging."), _("\
+Show expression debugging."), _("\
+When non-zero, the internal representation of expressions will be printed."),
+			    NULL,
+			    NULL, /* FIXME: i18n: */
+			    &setdebuglist, &showdebuglist);
 }
Index: remote-mips.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-mips.c,v
retrieving revision 1.63
diff -p -u -r1.63 remote-mips.c
--- remote-mips.c	18 Feb 2005 15:25:27 -0000	1.63
+++ remote-mips.c	18 Feb 2005 17:46:58 -0000
@@ -3370,31 +3370,34 @@ of the TFTP temporary file, if it differ
   add_target (&ddb_ops);
   add_target (&lsi_ops);
 
-  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\
+  add_setshow_zinteger_cmd ("timeout", no_class, &mips_receive_wait, _("\
+Set timeout in seconds for remote MIPS serial I/O."), _("\
+Show timeout in seconds for remote MIPS serial I/O."), NULL,
+			    NULL,
+			    NULL, /* FIXME: i18n: */
+			    &setlist, &showlist);
+
+  add_setshow_zinteger_cmd ("retransmit-timeout", no_class,
+			    &mips_retransmit_wait, _("\
+Set retransmit timeout in seconds for remote MIPS serial I/O."), _("\
+Show retransmit timeout in seconds for remote MIPS serial I/O."), _("\
 This is the number of seconds to wait for an acknowledgement to a packet\n\
-before resending the packet.", &setlist),
-     &showlist);
-
-  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\
+before resending the packet."),
+			    NULL,
+			    NULL, /* FIXME: i18n: */
+			    &setlist, &showlist);
+
+  add_setshow_zinteger_cmd ("syn-garbage-limit", no_class,
+			    &mips_syn_garbage,  _("\
+Set the maximum number of characters to ignore when scanning for a SYN."), _("\
+Show the maximum number of characters to ignore when scanning for a SYN."), _("\
 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\n\
 limit. (Note that these characters are printed out even though they are\n\
-ignored.)",
-		  &setlist),
-     &showlist);
+ignored.)"),
+			    NULL,
+			    NULL, /* FIXME: i18n: */
+			    &setlist, &showlist);
 
   deprecated_add_show_from_set
     (add_set_cmd ("monitor-prompt", class_obscure, var_string,
@@ -3403,14 +3406,14 @@ ignored.)",
 		  &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_setshow_zinteger_cmd ("monitor-warnings", class_obscure,
+			    &monitor_warnings, _("\
+Set printing of monitor warnings."), _("\
+Show printing of monitor warnings."), _("\
+When enabled, monitor warnings about hardware breakpoints will be displayed."),
+			    NULL,
+			    NULL, /* FIXME: i18n: */
+			    &setlist, &showlist);
 
   add_com ("pmon <command>", class_obscure, pmon_command,
 	   _("Send a packet to PMON (must be in debug mode)."));
Index: ser-go32.c
===================================================================
RCS file: /cvs/src/src/gdb/ser-go32.c,v
retrieving revision 1.15
diff -p -u -r1.15 ser-go32.c
--- ser-go32.c	15 Feb 2005 15:49:19 -0000	1.15
+++ ser-go32.c	18 Feb 2005 17:46:58 -0000
@@ -903,61 +903,61 @@ _initialize_ser_dos (void)
     intrupts[1].inuse =		/* keyboard */
     intrupts[2].inuse = 1;	/* slave icu */
 
-  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_setshow_zinteger_cmd ("com1base", class_obscure, &ports[0].base, _("\
+Set COM1 base i/o port address."), _("\
+Show COM1 base i/o port address."), NULL,
+			    NULL,
+			    NULL, /* FIXME: i18n: */
+			    &setlist, &showlist);
+
+  add_setshow_zinteger_cmd ("com1irq", class_obscure, &ports[0].irq, _("\
+Set COM1 interrupt request."), _("\
+Show COM1 interrupt request."), NULL,
+			    NULL,
+			    NULL, /* FIXME: i18n: */
+			    &setlist, &showlist);
+
+  add_setshow_zinteger_cmd ("com2base", class_obscure, &ports[1].base, _("\
+Set COM2 base i/o port address."), _("\
+Show COM2 base i/o port address."), NULL,
+			    NULL,
+			    NULL, /* FIXME: i18n: */
+			    &setlist, &showlist);
+
+  add_setshow_zinteger_cmd ("com2irq", class_obscure, &ports[1].irq, _("\
+Set COM2 interrupt request."), _("\
+Show COM2 interrupt request."), NULL,
+			    NULL,
+			    NULL, /* FIXME: i18n: */
+			    &setlist, &showlist);
+
+  add_setshow_zinteger_cmd ("com3base", class_obscure, &ports[2].base, _("\
+Set COM3 base i/o port address."), _("\
+Show COM3 base i/o port address."), NULL,
+			    NULL,
+			    NULL, /* FIXME: i18n: */
+			    &setlist, &showlist);
+
+  add_setshow_zinteger_cmd ("com3irq", class_obscure, &ports[2].irq, _("\
+Set COM3 interrupt request."), _("\
+Show COM3 interrupt request."), NULL,
+			    NULL,
+			    NULL, /* FIXME: i18n: */
+			    &setlist, &showlist);
+
+  add_setshow_zinteger_cmd ("com4base", class_obscure, &ports[3].base, _("\
+Set COM4 base i/o port address."), _("\
+Show COM4 base i/o port address."), NULL,
+			    NULL,
+			    NULL, /* FIXME: i18n: */
+			    &setlist, &showlist);
+
+  add_setshow_zinteger_cmd ("com4irq", class_obscure, &ports[3].irq, _("\
+Set COM4 interrupt request."), _("\
+Show COM4 interrupt request."), NULL,
+			    NULL,
+			    NULL, /* FIXME: i18n: */
+			    &setlist, &showlist);
 
   add_info ("serial", dos_info,
 	    _("Print DOS serial port status."));
Index: serial.c
===================================================================
RCS file: /cvs/src/src/gdb/serial.c,v
retrieving revision 1.20
diff -p -u -r1.20 serial.c
--- serial.c	17 Feb 2005 17:11:03 -0000	1.20
+++ serial.c	18 Feb 2005 17:46:58 -0000
@@ -702,12 +702,12 @@ by gdbserver."),
 		       &setlist),
      &showlist);
 
-  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);
+  add_setshow_zinteger_cmd ("serial", class_maintenance,
+			    &global_serial_debug_p, _("\
+Set serial debugging."), _("\
+Show serial debugging."), _("\
+When non-zero, serial port debugging is enabled."),
+			    NULL,
+			    NULL, /* FIXME: i18n: */
+			    &setdebuglist, &showdebuglist);
 }
Index: solib-frv.c
===================================================================
RCS file: /cvs/src/src/gdb/solib-frv.c,v
retrieving revision 1.6
diff -p -u -r1.6 solib-frv.c
--- solib-frv.c	11 Feb 2005 04:06:05 -0000	1.6
+++ solib-frv.c	18 Feb 2005 17:46:58 -0000
@@ -1218,11 +1218,12 @@ _initialize_frv_solib (void)
   current_target_so_ops = &frv_so_ops;
 
   /* Debug this file's internals.  */
-  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);
+  add_setshow_zinteger_cmd ("solib-frv", class_maintenance,
+			    &solib_frv_debug, _("\
+Set internal debugging of shared library code for FR-V."), _("\
+Show internal debugging of shared library code for FR-V."), _("\
+When non-zero, FR-V solib specific internal debugging is enabled."),
+			    NULL,
+			    NULL, /* FIXME: i18n: */
+			    &setdebuglist, &showdebuglist);
 }
Index: somsolib.c
===================================================================
RCS file: /cvs/src/src/gdb/somsolib.c,v
retrieving revision 1.44
diff -p -u -r1.44 somsolib.c
--- somsolib.c	18 Feb 2005 15:25:28 -0000	1.44
+++ somsolib.c	18 Feb 2005 17:46:58 -0000
@@ -1569,15 +1569,16 @@ inferior.  Otherwise, symbols must be lo
 			   NULL, /* FIXME: i18n: */
 			   &setlist, &showlist);
 
-  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\
+  add_setshow_zinteger_cmd ("auto-solib-limit", class_support,
+			    &auto_solib_limit, _("\
+Set threshold (in Mb) for autoloading shared library symbols."), _("\
+Show threshold (in Mb) for autoloading shared library symbols."), _("\
 When shared library autoloading is enabled, new libraries will be loaded\n\
 only until the total size of shared library symbols exceeds this\n\
-threshold in megabytes.  Is ignored when using `sharedlibrary'.",
-		  &setlist),
-     &showlist);
+threshold in megabytes.  Is ignored when using `sharedlibrary'."),
+			    NULL,
+			    NULL, /* FIXME: i18n: */
+			    &setlist, &showlist);
 
   /* ??rehrauer: On HP-UX, the kernel parameter MAXDSIZ limits how
      much data space a process can use.  We ought to be reading
Index: target.c
===================================================================
RCS file: /cvs/src/src/gdb/target.c,v
retrieving revision 1.99
diff -p -u -r1.99 target.c
--- target.c	17 Feb 2005 13:49:55 -0000	1.99
+++ target.c	18 Feb 2005 17:46:58 -0000
@@ -2552,14 +2552,15 @@ initialize_targets (void)
   add_info ("target", target_info, targ_desc);
   add_info ("files", target_info, targ_desc);
 
-  deprecated_add_show_from_set 
-    (add_set_cmd ("target", class_maintenance, var_zinteger,
-		  (char *) &targetdebug,
-		  "Set target debugging.\n\
+  add_setshow_zinteger_cmd ("target", class_maintenance, &targetdebug, _("\
+Set target debugging."), _("\
+Show target debugging."), _("\
 When non-zero, target debugging is enabled.  Higher numbers are more\n\
 verbose.  Changes do not take effect until the next \"run\" or \"target\"\n\
-command.", &setdebuglist),
-     &showdebuglist);
+command."),
+			    NULL,
+			    NULL, /* FIXME: i18n: */
+			    &setdebuglist, &showdebuglist);
 
   add_setshow_boolean_cmd ("trust-readonly-sections", class_support, 
 			   &trust_readonly, _("\
Index: top.c
===================================================================
RCS file: /cvs/src/src/gdb/top.c,v
retrieving revision 1.100
diff -p -u -r1.100 top.c
--- top.c	18 Feb 2005 15:25:29 -0000	1.100
+++ top.c	18 Feb 2005 17:46:58 -0000
@@ -1425,13 +1425,14 @@ Show whether to confirm potentially dang
 			   NULL, /* FIXME: i18n: */
 			   &setlist, &showlist);
 
-  c = add_set_cmd ("annotate", class_obscure, var_zinteger,
-		   (char *) &annotation_level, "Set annotation_level.\n\
+  add_setshow_zinteger_cmd ("annotate", class_obscure, &annotation_level, _("\
+Set annotation_level."), _("\
+Show annotation_level."), _("\
 0 == normal;     1 == fullname (for use when running under emacs)\n\
-2 == output annotated suitably for use by programs that control GDB.",
-		   &setlist);
-  deprecated_add_show_from_set (c, &showlist);
-  set_cmd_sfunc (c, set_async_annotation_level);
+2 == output annotated suitably for use by programs that control GDB."),
+			    set_async_annotation_level,
+			    NULL, /* FIXME: i18n: */
+			    &setlist, &showlist);
 
   add_setshow_boolean_cmd ("exec-done-display", class_support,
 			   &exec_done_display_p, _("\
Index: varobj.c
===================================================================
RCS file: /cvs/src/src/gdb/varobj.c,v
retrieving revision 1.48
diff -p -u -r1.48 varobj.c
--- varobj.c	11 Feb 2005 04:06:09 -0000	1.48
+++ varobj.c	18 Feb 2005 17:46:59 -0000
@@ -2559,7 +2559,12 @@ _initialize_varobj (void)
   varobj_table = xmalloc (sizeof_table);
   memset (varobj_table, 0, sizeof_table);
 
-  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);
+  add_setshow_zinteger_cmd ("debugvarobj", class_maintenance,
+			    &varobjdebug, _("\
+Set varobj debugging."), _("\
+Show varobj debugging."), _("\
+When non-zero, varobj debugging is enabled."),
+			    NULL,
+			    NULL, /* FIXME: i18n: */
+			    &setlist, &showlist);
 }
Index: cli/cli-cmds.c
===================================================================
RCS file: /cvs/src/src/gdb/cli/cli-cmds.c,v
retrieving revision 1.54
diff -p -u -r1.54 cli-cmds.c
--- cli/cli-cmds.c	18 Feb 2005 15:25:32 -0000	1.54
+++ cli/cli-cmds.c	18 Feb 2005 17:46:59 -0000
@@ -1181,21 +1181,23 @@ is used, the same rules apply to its nes
 
   /* If target is open when baud changes, it doesn't take effect until the
      next open (I think, not sure).  */
-  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\
+  add_setshow_zinteger_cmd ("remotebaud", no_class, &baud_rate, _("\
+Set baud rate for remote serial I/O."), _("\
+Show baud rate for remote serial I/O."), _("\
 This value is used to set the speed of the serial port when debugging\n\
-using remote targets.", &setlist),
-		     &showlist);
-
-  deprecated_add_show_from_set
-    (add_set_cmd ("remote", no_class, var_zinteger,
-		  (char *) &remote_debug,
-		  "Set debugging of remote protocol.\n\
+using remote targets."),
+			    NULL,
+			    NULL, /* FIXME: i18n: */
+			    &setlist, &showlist);
+
+  add_setshow_zinteger_cmd ("remote", no_class, &remote_debug, _("\
+Set debugging of remote protocol."), _("\
+Show debugging of remote protocol."), _("\
 When enabled, each packet sent or received with the remote target\n\
-is displayed.", &setdebuglist),
-		     &showdebuglist);
+is displayed."),
+			    NULL,
+			    NULL, /* FIXME: i18n: */
+			    &setdebuglist, &showdebuglist);
 
   deprecated_add_show_from_set
     (add_set_cmd ("remotetimeout", no_class, var_integer, (char *) &remote_timeout,

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]