Minor comment fix.
[deliverable/binutils-gdb.git] / gdb / serial.c
index e9e682eb109e2080350c1dde52bdc965785bbea9..4bbc22dc43ab25889eb10dc2bd63cc9ca74766a0 100644 (file)
@@ -1,5 +1,5 @@
 /* Generic serial interface routines
-   Copyright 1992, 1993, 1996 Free Software Foundation, Inc.
+   Copyright 1992, 1993, 1996, 1997 Free Software Foundation, Inc.
 
 This file is part of GDB.
 
@@ -116,8 +116,8 @@ serial_log_command (cmd)
 
   serial_current_type = 'c';
 
-  fputs_unfiltered (serial_logfp, "\nc ");
-  fputs_unfiltered (serial_logfp, cmd);
+  fputs_unfiltered ("\nc ", serial_logfp);
+  fputs_unfiltered (cmd, serial_logfp);
 
   /* Make sure that the log file is as up-to-date as possible,
      in case we are getting ready to dump core or something. */
@@ -212,7 +212,9 @@ serial_open (name)
        return scb;
       }
 
-  if (strcmp (name, "pc") == 0)
+  if (strcmp (name, "ocd") == 0)
+    ops = serial_interface_lookup ("ocd");
+  else if (strcmp (name, "pc") == 0)
     ops = serial_interface_lookup ("pc");
   else if (strchr (name, ':'))
     ops = serial_interface_lookup ("tcp");
This page took 0.038002 seconds and 4 git commands to generate.