* Bringing over SKY PKE disassembler feature from sky branch.
[deliverable/binutils-gdb.git] / gdb / serial.c
index e9e682eb109e2080350c1dde52bdc965785bbea9..89a116e565c8223006e986f264488601206bcbb0 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");
@@ -515,7 +517,7 @@ by gdbserver.", &setlist),
   add_show_from_set (add_set_enum_cmd ("remotelogbase", no_class,
                                       logbase_enums,
                                       (char *)&serial_logbase,
-                                      "Set ...",
+                                      "Set numerical base for remote session logging",
                                       &setlist),
                           &showlist);
 }
This page took 0.024485 seconds and 4 git commands to generate.