Remove "set/show remotebaud" (deprecated) commands.
authorJoel Brobecker <brobecker@adacore.com>
Mon, 19 May 2014 18:46:19 +0000 (11:46 -0700)
committerJoel Brobecker <brobecker@adacore.com>
Wed, 28 May 2014 19:58:59 +0000 (12:58 -0700)
This patch removes support for the "set/show remotebaud" command,
which were deprecated in GDB 7.7, and should be now be removed
ahead of cutting the GDB 7.8 branch.

gdb/ChangeLog:

        * serial.c (_initialize_serial): Remove support for
        the "set remotebaud" and "show remotebaud" commands.
        * NEWS: Add entry documenting the removal of that command.

gdb/testsuite/ChangeLog:

        * config/monitor.exp (gdb_target_monitor): Replace use of
        "set remotebaud" by "set serial baud".

gdb/ChangeLog
gdb/NEWS
gdb/serial.c
gdb/testsuite/ChangeLog
gdb/testsuite/config/monitor.exp

index 0caf79b43b36b1aaa0a5262869a2beb319b6608c..06d23e03adee231122ce452fddcaeade4421bb33 100644 (file)
@@ -1,3 +1,9 @@
+2014-05-28  Joel Brobecker  <brobecker@adacore.com>
+
+       * serial.c (_initialize_serial): Remove support for
+       the "set remotebaud" and "show remotebaud" commands.
+       * NEWS: Add entry documenting the removal of that command.
+
 2014-05-28  Yao Qi  <yao@codesourcery.com>
 
        * charset.c: Fix typo in comments.
index 5a0a76e2ffe5fb7731429adab59b4e7df0045270..6683bc0e969d0a0a8d68c32f68919f4a85d5c8a0 100644 (file)
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -141,6 +141,10 @@ PowerPC64 GNU/Linux little-endian  powerpc64le-*-linux*
   and "assf"), have been deprecated.  Use the "sharedlibrary" command, or
   its alias "share", instead.
 
+* The commands "set remotebaud" and "show remotebaud" are no longer
+  supported.  Use "set serial baud" and "show serial baud" (respectively)
+  instead.
+
 *** Changes in GDB 7.7
 
 * Improved support for process record-replay and reverse debugging on
index 7471a6b5ab53073f5b6ff63a1e6f17c3ee2e6ab4..e780bbe2b823689d103e7c08c1ebe5603a9e8507 100644 (file)
@@ -671,34 +671,6 @@ using remote targets."),
                            serial_baud_show_cmd,
                            &serial_set_cmdlist, &serial_show_cmdlist);
 
-  /* The commands "set/show serial baud" used to have a different name.
-     Add aliases to those names to facilitate the transition, and mark
-     them as deprecated, in order to make users aware of the fact that
-     the command names have been changed.  */
-    {
-      const char *cmd_name;
-      struct cmd_list_element *cmd;
-
-      /* FIXME: There is a limitation in the deprecation mechanism,
-        and the warning ends up not being displayed for prefixed
-        aliases.  So use a real command instead of an alias.  */
-      add_setshow_zinteger_cmd ("remotebaud", class_alias, &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."),
-                               NULL,
-                               serial_baud_show_cmd,
-                               &setlist, &showlist);
-      cmd_name = "remotebaud";
-      cmd = lookup_cmd (&cmd_name, setlist, "", -1, 1);
-      deprecate_cmd (cmd, "set serial baud");
-      cmd_name
-       = "remotebaud"; /* needed because lookup_cmd updates the pointer */
-      cmd = lookup_cmd (&cmd_name, showlist, "", -1, 1);
-      deprecate_cmd (cmd, "show serial baud");
-    }
-
   add_setshow_filename_cmd ("remotelogfile", no_class, &serial_logfile, _("\
 Set filename for remote session recording."), _("\
 Show filename for remote session recording."), _("\
index dc9cff0c720e579b766091371a32c5e6a07cfed6..4d9c597926288ea366f7534a62b1c03002e7200d 100644 (file)
@@ -1,3 +1,8 @@
+2014-05-28  Joel Brobecker  <brobecker@adacore.com>
+
+       * config/monitor.exp (gdb_target_monitor): Replace use of
+       "set remotebaud" by "set serial baud".
+
 2014-05-26  Andy Wingo  <wingo@igalia.com>
 
        * gdb.guile/scm-breakpoint.exp:
index bddcdd5febaaf031b6890d0b6ed793533e4dc49c..a85aaeeab53b76927242a7a64563e5f5c1ec0980 100644 (file)
@@ -86,7 +86,7 @@ proc gdb_target_monitor { exec_file } {
        return -1
     }
     if [target_info exists baud] {
-       gdb_test "set remotebaud [target_info baud]" "" ""
+       gdb_test "set serial baud [target_info baud]" "" ""
     }
     if [target_info exists binarydownload] {
        gdb_test "set remotebinarydownload [target_info binarydownload]" "" ""
This page took 0.036403 seconds and 4 git commands to generate.