From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14703 invoked by alias); 26 Jun 2003 18:12:23 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 14503 invoked from network); 26 Jun 2003 18:12:21 -0000 Received: from unknown (HELO lakemtao01.cox.net) (68.1.17.244) by sources.redhat.com with SMTP; 26 Jun 2003 18:12:21 -0000 Received: from white ([68.9.191.65]) by lakemtao01.cox.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with ESMTP id <20030626181221.KSCK8337.lakemtao01.cox.net@white>; Thu, 26 Jun 2003 14:12:21 -0400 Received: from bob by white with local (Exim 3.35 #1 (Debian)) id 19VbEJ-0003yv-00; Thu, 26 Jun 2003 14:12:19 -0400 Date: Thu, 26 Jun 2003 18:15:00 -0000 From: Bob Rossi To: gdb@sourceware.org Cc: gdb@sources.redhat.com Subject: Re: tty command on cygwin Message-ID: <20030626181219.GA15269@white> Mail-Followup-To: gdb@sourceware.org, gdb@sources.redhat.com References: <20030615171236.GA2439@white> <20030616022157.GA9815@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030616022157.GA9815@redhat.com> User-Agent: Mutt/1.3.28i X-SW-Source: 2003-06/txt/msg00495.txt.bz2 Message-ID: <20030626181500.t1wIxM-8OKr0jeYQByKDpkf-pNz36ucICR1jZfn6wBk@z> 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