This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Problem with COM1 port from with GDB 5.3 under Cygwin 1.5.3-1
- From: Eli Zaretskii <eliz at elta dot co dot il>
- To: Creighton MacDonnell <creighton at macdonnell dot ca>
- Cc: gdb-patches at sources dot redhat dot com, gdb at sources dot redhat dot com
- Date: 24 Sep 2003 08:25:18 +0200
- Subject: Re: Problem with COM1 port from with GDB 5.3 under Cygwin 1.5.3-1
- References: <3F7099F4.1010405@macdonnell.ca>
- Reply-to: Eli Zaretskii <eliz at elta dot co dot il>
> Date: Tue, 23 Sep 2003 13:07:32 -0600
> From: Creighton MacDonnell <creighton@macdonnell.ca>
>
> This patch avoids the Cygwin 1.5.* problem with "com*" port names, while
> still allowing "com*" names to be used in GDB scripts (they get
> translated to "/dev/com?"), and also allows "/dev/ttyS*" and "/dev/com*"
> device names to be used.
>
>
> --- ./gdb/rdi-share/unixcomm.c~ 2002-06-08 14:34:41.000000000 -0600
> +++ ./gdb/rdi-share/unixcomm.c 2003-09-23 12:12:43.703125000 -0600
> @@ -96,7 +96,15 @@
> #define PARPORT2 "/dev/par1"
> #endif
>
> -#if defined(_WIN32) || defined (__CYGWIN__)
> +#if defined (__CYGWIN__)
> +#define SERIAL_PREFIX "/dev/com"
> +#define SERPORT1 "/dev/com1"
> +#define SERPORT2 "/dev/com2"
> +#define PARPORT1 "lpt1"
> +#define PARPORT2 "lpt2"
> +#endif
If Cygwin wants /dev/com1 instead of com1, are you sure it won't want
/dev/lpt1 instead of lpt1 as well?
Anyway, is this a Cygwin bug or what? IIRC, Windows supports both
com1 and /dev/com1, so why doesn't Cygwin do that as well?
Also, what happens with versions of Cygwin other than 1.5.x? Could
they be broken by this change?