public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* tty command on cygwin
@ 2003-06-15 17:12 Bob Rossi
  2003-06-16  2:22 ` Christopher Faylor
  0 siblings, 1 reply; 4+ messages in thread
From: Bob Rossi @ 2003-06-15 17:12 UTC (permalink / raw)
  To: gdb

Hi,

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?

If its a bug ( which I think it is ), I will add it to the pr database.

Thanks,
Bob Rossi

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: tty command on cygwin
  2003-06-15 17:12 tty command on cygwin Bob Rossi
@ 2003-06-16  2:22 ` Christopher Faylor
  2003-06-26 18:12   ` Bob Rossi
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Faylor @ 2003-06-16  2:22 UTC (permalink / raw)
  To: gdb

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: tty command on cygwin
  2003-06-16  2:22 ` Christopher Faylor
@ 2003-06-26 18:12   ` Bob Rossi
  2003-06-26 18:15     ` Bob Rossi
  0 siblings, 1 reply; 4+ messages in thread
From: Bob Rossi @ 2003-06-26 18:12 UTC (permalink / raw)
  To: gdb; +Cc: gdb

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: tty command on cygwin
  2003-06-26 18:12   ` Bob Rossi
@ 2003-06-26 18:15     ` Bob Rossi
  0 siblings, 0 replies; 4+ messages in thread
From: Bob Rossi @ 2003-06-26 18:15 UTC (permalink / raw)
  To: gdb; +Cc: gdb

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-06-26 18:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-15 17:12 tty command on cygwin Bob Rossi
2003-06-16  2:22 ` Christopher Faylor
2003-06-26 18:12   ` Bob Rossi
2003-06-26 18:15     ` Bob Rossi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).