From: Creighton MacDonnell <creighton@macdonnell.ca>
To: gdb-patches@sources.redhat.com
Cc: gdb@sources.redhat.com
Subject: Re: Problem with COM1 port with GDB 5.3 under Cygwin 1.5.*
Date: Wed, 24 Sep 2003 18:09:00 -0000 [thread overview]
Message-ID: <3F71C7A8.7070200@macdonnell.ca> (raw)
In-Reply-To: <ud6dq66up.fsf@elta.co.il>
I hope CC-ing gdb@sources.redhat.com is the correct thing to do for
these posts.
I have inserted comments.
Eli Zaretskii wrote:
>>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.
>>
>>
>If Cygwin wants /dev/com1 instead of com1, are you sure it won't want
>/dev/lpt1 instead of lpt1 as well?
>
Under either Cygwin 1.3.* or Cygwin 1.5.*:
$ ls -l /dev/lpt1
ls: /dev/lpt1: No such file or directory
$ ls -l /dev/lpt2
ls: /dev/lpt2: No such file or directory
$ ls -l lpt1
---------- 0 ???????? ???????? 0 Dec 31 1969 lpt1
$ ls -l lpt2
---------- 1 ???????? ???????? 0 Dec 31 1969 lpt2
So it would have to be "lpt1" and "lpt2" if anything.
The Cygwin user guide seems to say that you should be able to use the
standard DOS device names from Cygwin scripts.
I doubt frankly that the parallel port would work under the current
1.5.* version or the former 1.3.* version.
I left this as it was, since there was no obvious alternative.
>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?
>
The Cygwin user guide says very clearly it should (no explicit mention
of "lpt?" though), and under 1.3.* it did.
Under Cygwin 1.3.*:
$ ls -l /dev/com1
crw-rw-rw- 1 0 0 7, 0 Sep 24 10:18 /dev/com1
$ ls -l /dev/com2
crw-rw-rw- 1 0 0 7, 0 Sep 24 10:18 /dev/com2
$ ls -l com1
crw-rw-rw- 1 0 0 7, 0 Sep 24 10:18 com1
$ ls -l com2
crw-rw-rw- 1 0 0 7, 0 Sep 24 10:19 com2
$ ls -l /dev/ttyS0
crw-rw-rw- 1 0 0 7, 0 Sep 24 10:19 /dev/ttyS0
$ ls -l /dev/ttyS1
crw-rw-rw- 1 0 0 7, 0 Sep 24 10:19 /dev/ttyS1
Under Cygwin 1.5.*:
$ ls -l /dev/com1
crw-rw-rw- 1 default None 7, 0 Sep 24 10:21 /dev/com1
$ ls -l /dev/com2
crw-rw-rw- 1 default None 7, 0 Sep 24 10:21 /dev/com2
$ ls -l com1
---------- 0 ???????? ???????? 0 Dec 31 1969 com1
$ ls -l com2
---------- 0 ???????? ???????? 0 Dec 31 1969 com2
$ ls -l /dev/ttyS0
crw-rw-rw- 1 default None 7, 0 Sep 24 10:21 /dev/ttyS0
$ ls -l /dev/ttyS1
crw-rw-rw- 1 default None 7, 0 Sep 24 10:21 /dev/ttyS1
This probably is a bug in Cygwin 1.5.*. But I would also like to be able
to use "/dev/ttyS*" names for devices, for comptatibilty with Linux,
which I also use. And this can only be achieved by changing GDB Also, I
am already experienced compiling GDB (and the GNU cross development
tools) in order to get tools that do exactly what I want. I have little
interest in becoming a Cygwin internals guru.
Also, my sense (admittedly as a Cygwin outsider) is that the "/dev/*"
names are likley to be better supported in future Cygwin releases.
Perhaps it would be best for GDB to avoid the DOS device names, when
there is an alternative.
>Also, what happens with versions of Cygwin other than 1.5.x? Could
>they be broken by this change?
>
GDB 5.3 with my patch, compiled under Cygwin 1.3.*, will run without
being recompiled under 1.5.* too.
Beyond that, I don't know. Is anyone on this list using older versions
of Cygwin with "target rdi"?
next prev parent reply other threads:[~2003-09-24 18:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-23 19:07 Problem with COM1 port from with GDB 5.3 under Cygwin 1.5.3-1 Creighton MacDonnell
2003-09-24 5:24 ` Eli Zaretskii
2003-09-24 18:09 ` Creighton MacDonnell [this message]
2003-09-24 18:12 ` Problem with COM1 port with GDB 5.3 under Cygwin 1.5.* Eli Zaretskii
2003-09-24 20:03 ` Problem with COM1 port with GDB 5.3 under cygwin 1.5.* Christopher Faylor
2003-09-25 4:46 ` Eli Zaretskii
2003-09-24 18:12 ` Problem with COM1 port from with GDB 5.3 under cygwin 1.5.3-1 Christopher Faylor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F71C7A8.7070200@macdonnell.ca \
--to=creighton@macdonnell.ca \
--cc=gdb-patches@sources.redhat.com \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox