From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7985 invoked by alias); 7 Dec 2007 13:36:27 -0000 Received: (qmail 7971 invoked by uid 22791); 7 Dec 2007 13:36:25 -0000 X-Spam-Check-By: sourceware.org Received: from pool-70-20-17-24.bstnma.fios.verizon.net (HELO ednor.cgf.cx) (70.20.17.24) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 07 Dec 2007 13:36:16 +0000 Received: by ednor.cgf.cx (Postfix, from userid 201) id 6B8E72B352; Fri, 7 Dec 2007 08:36:14 -0500 (EST) Date: Fri, 07 Dec 2007 13:54:00 -0000 From: Christopher Faylor To: gdb-patches@sourceware.org Subject: Re: [RFC] gdb/testsuite/gdb.base/fileio.exp patch for cygwin Message-ID: <20071207133613.GA20157@ednor.casa.cgf.cx> Mail-Followup-To: gdb-patches@sourceware.org References: <000101c83593$89c0fcd0$9d42f670$@u-strasbg.fr> <4755E78F.7000301@portugalmail.pt> <20071205101109.GA31968@calimero.vinschen.de> <47572C95.9030804@portugalmail.pt> <20071205230119.GA15204@caradoc.them.org> <4053daab0712051706k528ad3d1m9fb692bdaba9560a@mail.gmail.com> <4053daab0712051942q2a421ac7mcc04224d673c0d1d@mail.gmail.com> <20071206092332.GB17964@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071206092332.GB17964@calimero.vinschen.de> User-Agent: Mutt/1.5.16 (2007-06-09) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-12/txt/msg00121.txt.bz2 On Thu, Dec 06, 2007 at 10:23:32AM +0100, Corinna Vinschen wrote: >On Dec 6 03:42, Pedro Alves wrote: >> Pedro Alves wrote: >> > Daniel Jacobowitz wrote: >> > > I might be mistaken, but I don't think there's any way to figure out >> > > the original identity of the pipe. >> > >> > There may be other ways to identify the pipes, like using >> > named pipes for the ttys if possible -- but I don't know if >> > it's possible to get a pipe name from a pipe handle. >> >> Been googling a bit, and, as the Cygwin folks sure know, >> under NT it is possible to get the internal names of objects, >> and NT assigns unique names to pipes. > >It does up to Windows 2003 Server. On Vista, anonymous pipes are really >anonymous and you can't retrieve a name anymore. > >> Since the next big Cygwin release will be NT only, perhaps this could >> be used to map pipes to ttys. >> >> Disclosure: I haven't really looked into Cygwin's sources to see >> what it would take. It may be saying something plain dumb. > >It requires to switch to named pipes due to Vista. And you're still >missing any tty settings afterwards, you just have a naked handle to >start over with. This is not on my TODO list for the next major version, >but patches are of course welcome! Fixing ttys is on my todo list, so there may be some hope there. cgf