From: Bob Rossi <bob_rossi@cox.net>
To: gdb@sourceware.org
Cc: gdb@sources.redhat.com
Subject: Re: tty command on cygwin
Date: Thu, 26 Jun 2003 18:15:00 -0000 [thread overview]
Message-ID: <20030626181219.GA15269@white> (raw)
In-Reply-To: <20030616022157.GA9815@redhat.com>
Hmmm, I can't get it to work. Any suggestions?
Here is what I am doing, which works on Linux, Solaris, FreeBSD, AIX.
I open a new tty ( say /dev/tty2 ). Then I issue the tty command to gdb.
tty /dev/tty2.
Then all input/output of the inferior is redirected to this tty.
However, on cygwin, once I do this, all input/output is lost.
And thanks to gdb, there is no way to discover the current tty being
used ( to prove it works ). If there is, please let me know. If there is
not, then this might be a good command to add to gdb for debugging
reasons.
To prove that my tty code is working on cygwin I wrote a driver to open
a tty and write to it. Then I wrote a client that opens the same tty and
reads from it. This works fine. So I know that it is not a tty problem.
I believe that the problem is with gdb. For some reason, it is not
understanding the tty I give it and writing/reading from it.
What could be the problem?
Here is some helpful information.
$ uname -a
CYGWIN_NT-5.1 CREAM 1.3.22(0.78/3/2) 2003-03-18 09:20 i686 unknown
unknown Cygwin
$ /usr/bin/gdb --v
GNU gdb 2003-03-03-cvs (cygwin-special)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i686-pc-cygwin".
Thanks,
Bob Rossi
On Sun, Jun 15, 2003 at 10:21:57PM -0400, Christopher Faylor wrote:
> On Sun, Jun 15, 2003 at 01:12:36PM -0400, Bob Rossi wrote:
> >I sent an Email a while back about this and never got a reply.
> >Does anyone know why gdb does not honor the tty command in cygwin?
>
> gdb does honor the tty command on cygwin.
>
> cgf
WARNING: multiple messages have this Message-ID
From: Bob Rossi <bob_rossi@cox.net>
To: gdb@sourceware.org
Cc: gdb@sources.redhat.com
Subject: Re: tty command on cygwin
Date: Thu, 26 Jun 2003 18:12:00 -0000 [thread overview]
Message-ID: <20030626181219.GA15269@white> (raw)
Message-ID: <20030626181200.LERCy0dKAOGTVNRMM6eIIpTHpUJwMlDyrXl25IVmX8c@z> (raw)
In-Reply-To: <20030616022157.GA9815@redhat.com>
Hmmm, I can't get it to work. Any suggestions?
Here is what I am doing, which works on Linux, Solaris, FreeBSD, AIX.
I open a new tty ( say /dev/tty2 ). Then I issue the tty command to gdb.
tty /dev/tty2.
Then all input/output of the inferior is redirected to this tty.
However, on cygwin, once I do this, all input/output is lost.
And thanks to gdb, there is no way to discover the current tty being
used ( to prove it works ). If there is, please let me know. If there is
not, then this might be a good command to add to gdb for debugging
reasons.
To prove that my tty code is working on cygwin I wrote a driver to open
a tty and write to it. Then I wrote a client that opens the same tty and
reads from it. This works fine. So I know that it is not a tty problem.
I believe that the problem is with gdb. For some reason, it is not
understanding the tty I give it and writing/reading from it.
What could be the problem?
Here is some helpful information.
$ uname -a
CYGWIN_NT-5.1 CREAM 1.3.22(0.78/3/2) 2003-03-18 09:20 i686 unknown
unknown Cygwin
$ /usr/bin/gdb --v
GNU gdb 2003-03-03-cvs (cygwin-special)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i686-pc-cygwin".
Thanks,
Bob Rossi
On Sun, Jun 15, 2003 at 10:21:57PM -0400, Christopher Faylor wrote:
> On Sun, Jun 15, 2003 at 01:12:36PM -0400, Bob Rossi wrote:
> >I sent an Email a while back about this and never got a reply.
> >Does anyone know why gdb does not honor the tty command in cygwin?
>
> gdb does honor the tty command on cygwin.
>
> cgf
next prev parent reply other threads:[~2003-06-26 18:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-15 17:12 Bob Rossi
2003-06-16 2:22 ` Christopher Faylor
2003-06-26 18:15 ` Bob Rossi [this message]
2003-06-26 18:12 ` Bob Rossi
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=20030626181219.GA15269@white \
--to=bob_rossi@cox.net \
--cc=gdb@sources.redhat.com \
--cc=gdb@sourceware.org \
/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