Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Christopher Faylor <cgf-use-the-mailinglist-please@sourceware.org>
To: gdb-patches@sourceware.org
Subject: Re: [RFC] gdb/testsuite/gdb.base/fileio.exp patch for cygwin
Date: Fri, 07 Dec 2007 13:54:00 -0000	[thread overview]
Message-ID: <20071207133613.GA20157@ednor.casa.cgf.cx> (raw)
In-Reply-To: <20071206092332.GB17964@calimero.vinschen.de>

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


      reply	other threads:[~2007-12-07 13:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-03 10:02 Pierre Muller
2007-12-04 23:50 ` Pedro Alves
2007-12-05  9:22   ` Pierre Muller
2007-12-05 22:56     ` Pedro Alves
2007-12-05 12:17   ` Corinna Vinschen
2007-12-05 19:19     ` Eli Zaretskii
2007-12-05 23:01     ` Pedro Alves
2007-12-06  1:06       ` Daniel Jacobowitz
2007-12-06  3:42         ` Pedro Alves
2007-12-06  4:25           ` Pedro Alves
2007-12-06 11:21             ` Corinna Vinschen
2007-12-07 13:54               ` Christopher Faylor [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071207133613.GA20157@ednor.casa.cgf.cx \
    --to=cgf-use-the-mailinglist-please@sourceware.org \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox