From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20906 invoked by alias); 6 Dec 2007 09:23:41 -0000 Received: (qmail 20897 invoked by uid 22791); 6 Dec 2007 09:23:40 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Thu, 06 Dec 2007 09:23:35 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 02A856D4805; Thu, 6 Dec 2007 10:23:32 +0100 (CET) Date: Thu, 06 Dec 2007 11:21:00 -0000 From: Corinna Vinschen To: gdb-patches@sourceware.org Subject: Re: [RFC] gdb/testsuite/gdb.base/fileio.exp patch for cygwin Message-ID: <20071206092332.GB17964@calimero.vinschen.de> Reply-To: gdb-patches@sourceware.org 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4053daab0712051942q2a421ac7mcc04224d673c0d1d@mail.gmail.com> User-Agent: Mutt/1.5.16 (2007-06-09) X-IsSubscribed: yes 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/msg00103.txt.bz2 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! Corinna -- Corinna Vinschen Cygwin Project Co-Leader Red Hat