This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: tty command on cygwin


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]