aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos O'Donell <carlos@codesourcery.com>2008-03-28 17:30:45 +0000
committerCarlos O'Donell <carlos@codesourcery.com>2008-03-28 17:30:45 +0000
commitdf3ac6063598d164bad5c3775c792c0d7b375f09 (patch)
tree78f3ec473c69ffc48b15dfad5b41b1ff1f2e97c4
parentca9334856c810a277fcc70835ee02634bdec5bdd (diff)
downloadgdb-df3ac6063598d164bad5c3775c792c0d7b375f09.zip
gdb-df3ac6063598d164bad5c3775c792c0d7b375f09.tar.gz
gdb-df3ac6063598d164bad5c3775c792c0d7b375f09.tar.bz2
gdb/
2008-03-28 Carlos O'Donell <carlos@codesourcery.com> * ser-mingw.c (ser_windows_open): Open requested name.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/ser-mingw.c7
2 files changed, 4 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9552fac..d36d4ce 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/ser-mingw.c b/gdb/ser-mingw.c
index 27a2ce8..a4d5752 100644
--- a/gdb/ser-mingw.c
+++ b/gdb/ser-mingw.c
@@ -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)