2005-02-15 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / serial.c
index ada5631dce939fc0bb2e5f2c40215716afc68660..0c58806aa0987c8cb04f75904eb82f168f5211f8 100644 (file)
@@ -347,7 +347,7 @@ serial_readchar (struct serial *scb, int timeout)
      code is finished. */
   if (0 && serial_is_async_p (scb) && timeout < 0)
     internal_error (__FILE__, __LINE__,
-                   "serial_readchar: blocking read in async mode");
+                   _("serial_readchar: blocking read in async mode"));
 
   ch = scb->ops->readchar (scb, timeout);
   if (serial_logfp != NULL)
@@ -394,7 +394,7 @@ serial_printf (struct serial *desc, const char *format,...)
   char *buf;
   va_start (args, format);
 
-  xvasprintf (&buf, format, args);
+  buf = xstrvprintf (format, args);
   serial_write (desc, buf, strlen (buf));
 
   xfree (buf);
@@ -507,7 +507,7 @@ deprecated_serial_fd (struct serial *scb)
   if (scb->fd < 0)
     {
       internal_error (__FILE__, __LINE__,
-                     "serial: FD not valid");
+                     _("serial: FD not valid"));
     }
   return scb->fd; /* sigh */
 }
@@ -597,7 +597,7 @@ connect_command (char *args, int fromtty)
                break;
 
              if (c < 0)
-               perror_with_name ("connect");
+               perror_with_name (_("connect"));
 
              cx = c;
              serial_write (port_desc, &cx, 1);
@@ -635,7 +635,7 @@ connect_command (char *args, int fromtty)
                break;
 
              if (c < 0)
-               perror_with_name ("connect");
+               perror_with_name (_("connect"));
 
              cx = c;
 
@@ -669,24 +669,24 @@ void
 _initialize_serial (void)
 {
 #if 0
-  add_com ("connect", class_obscure, connect_command,
-          "Connect the terminal directly up to the command monitor.\n\
-Use <CR>~. or <CR>~^D to break out.");
+  add_com ("connect", class_obscure, connect_command, _("\
+Connect the terminal directly up to the command monitor.\n\
+Use <CR>~. or <CR>~^D to break out."));
 #endif /* 0 */
 
-  add_prefix_cmd ("serial", class_maintenance, serial_set_cmd, "\
-Set default serial/parallel port configuration.",
+  add_prefix_cmd ("serial", class_maintenance, serial_set_cmd, _("\
+Set default serial/parallel port configuration."),
                  &serial_set_cmdlist, "set serial ",
                  0/*allow-unknown*/,
                  &setlist);
 
-  add_prefix_cmd ("serial", class_maintenance, serial_show_cmd, "\
-Show default serial/parallel port configuration.",
+  add_prefix_cmd ("serial", class_maintenance, serial_show_cmd, _("\
+Show default serial/parallel port configuration."),
                  &serial_show_cmdlist, "show serial ",
                  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);
 }
This page took 0.026036 seconds and 4 git commands to generate.