delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/29/03:20:50

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Fri, 29 Jun 2001 10:11:54 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
To: cygwin AT cygwin DOT com, gdb AT sources DOT redhat DOT com
Message-Id: <2427-Fri29Jun2001101154+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9
CC: Takaaki DOT Ota AT am DOT sony DOT com, cygwin AT cygwin DOT com, gdb AT sources DOT redhat DOT com,
jimb AT redhat DOT com
In-reply-to: <20010628220602.A3596@redhat.com> (message from Christopher
Faylor on Thu, 28 Jun 2001 22:06:02 -0400)
Subject: Re: gdb run < file
Reply-to: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
References: <20010626 DOT 234402 DOT 21347360 DOT Takaaki DOT Ota AT am DOT sony DOT com> <20010627025036 DOT B20160 AT redhat DOT com> <20010627 DOT 235700 DOT 01365880 DOT Takaaki DOT Ota AT am DOT sony DOT com> <20010628220602 DOT A3596 AT redhat DOT com>

> Date: Thu, 28 Jun 2001 22:06:02 -0400
> From: Christopher Faylor <cgf AT redhat DOT com>
> 
> I'm sorry but I don't think that this is the correct way to deal with
> this.  I think that gdb normally handles things like redirection and
> globbing by starting inferior processes via the user's shell.  Then it
> uses some kind of "follow fork" method to notice when the process is
> finally started.

I don't know anything about Windows debugging interface, but it might
be that putting a shell between the debugger and the debuggee breaks
something.

Going through the shell also has the limitation that you buy whatever
idiosyncrasies there are in that shell.  Unlike on Unix, where the
redirection behavior is quite similar between the shells, on Windows
there's a very wide disagreement.  (We are fed up with that nuisance
in the Emacs-land.)  So I think there's a lot of sense in having a
unified, predictable redirection support inside GDB that doesn't
depend on the queer shell the user happens to have.

FWIW, the DJGPP port of GDB does something very similar to the patch
we discuss here (except that it also has to flip redirections every
time the execution thread jumps from the debugger to the debuggee).
See go32-nat.c (the actual implementation of the redirection routines
is in the DJGPP debug support library).

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019