gdb/
authorCarlos O'Donell <carlos@codesourcery.com>
Fri, 28 Mar 2008 17:30:45 +0000 (17:30 +0000)
committerCarlos O'Donell <carlos@codesourcery.com>
Fri, 28 Mar 2008 17:30:45 +0000 (17:30 +0000)
2008-03-28  Carlos O'Donell  <carlos@codesourcery.com>

* ser-mingw.c (ser_windows_open): Open requested name.

gdb/ChangeLog
gdb/ser-mingw.c

index 9552facae9664986a08c2a19c230be4d2f1dc81d..d36d4ce5e63bb0d45e90c8c456ba858e11d9d079 100644 (file)
@@ -1,3 +1,7 @@
+2008-03-28  Carlos O'Donell  <carlos@codesourcery.com>
+
+       * ser-mingw.c (ser_windows_open): Open requested name.
+
 2008-03-28  Aleksandar Ristovski  <aristovski@qnx.com>
 
        * MAINTAINERS: Added myself.
index 27a2ce836f7aaaab46d34b168db159164425bb82..a4d5752ba448809a01534379cb4a570ace2acba3 100644 (file)
@@ -51,13 +51,6 @@ ser_windows_open (struct serial *scb, const char *name)
   struct ser_windows_state *state;
   COMMTIMEOUTS timeouts;
 
-  /* Only allow COM ports.  */
-  if (strncmp (name, "COM", 3) != 0)
-    {
-      errno = ENOENT;
-      return -1;
-    }
-
   h = CreateFile (name, GENERIC_READ | GENERIC_WRITE, 0, NULL,
                  OPEN_EXISTING, FILE_FLAG_OVERLAPPED, NULL);
   if (h == INVALID_HANDLE_VALUE)