* ocd.c (ocd_open): Do not try to open the "ocd" device.
authorAndrew Cagney <cagney@redhat.com>
Sun, 24 Feb 2002 03:59:50 +0000 (03:59 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sun, 24 Feb 2002 03:59:50 +0000 (03:59 +0000)
* serial.c (serial_open): Delete check for "ocd".
Fix PR gdb/349.

gdb/ChangeLog
gdb/ocd.c
gdb/serial.c

index 4220695f73e42e928657b49026b0031bdf8a7c9c..71268f3118a032e8cba8d49a878dc47dda2ec759 100644 (file)
@@ -1,5 +1,9 @@
 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
 
+       * ocd.c (ocd_open): Do not try to open the "ocd" device.
+       * serial.c (serial_open): Delete check for "ocd".
+       Fix PR gdb/349.
+
        * Makefile.in (linux-thread.o): Delete target.
        * linux-thread.c: Delete file.
 
index 3364a912e765536c83d6ed1eeab17cefb9978f84..6834eea648f48c66a03c1689911727a1a66b46db 100644 (file)
--- a/gdb/ocd.c
+++ b/gdb/ocd.c
@@ -291,29 +291,9 @@ device the OCD device is attached to (e.g. /dev/ttya).");
 
   unpush_target (current_ops);
 
-  if (strncmp (name, "wiggler", 7) == 0)
-    {
-      ocd_desc = serial_open ("ocd");
-      if (!ocd_desc)
-       perror_with_name (name);
-
-      buf[0] = OCD_LOG_FILE;
-      buf[1] = 1;              /* open new or overwrite existing WIGGLERS.LOG */
-      ocd_put_packet (buf, 2);
-      p = ocd_get_packet (buf[0], &pktlen, remote_timeout);
-
-      buf[0] = OCD_SET_CONNECTION;
-      buf[1] = 0x01;           /* atoi (name[11]); */
-      ocd_put_packet (buf, 2);
-      p = ocd_get_packet (buf[0], &pktlen, remote_timeout);
-    }
-  else
-    /* not using Wigglers.dll */
-    {
-      ocd_desc = serial_open (name);
-      if (!ocd_desc)
-       perror_with_name (name);
-    }
+  ocd_desc = serial_open (name);
+  if (!ocd_desc)
+    perror_with_name (name);
 
   if (baud_rate != -1)
     {
index 0e349f78af4b4eb365d03c9622f50584aec0278a..22964eb3f98880a032c0cbaf79cbf9d06a601c8f 100644 (file)
@@ -185,9 +185,7 @@ serial_open (const char *name)
        return scb;
       }
 
-  if (strcmp (name, "ocd") == 0)
-    ops = serial_interface_lookup ("ocd");
-  else if (strcmp (name, "pc") == 0)
+  if (strcmp (name, "pc") == 0)
     ops = serial_interface_lookup ("pc");
   else if (strchr (name, ':'))
     ops = serial_interface_lookup ("tcp");