delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/06/19/04:25:47

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Thu, 19 Jun 2003 10:25:31 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: gdb attach/detach kills the target process
Message-ID: <20030619082531.GL30116@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <u65n3hu5s DOT fsf AT gnu DOT org> <Pine DOT GSO DOT 4 DOT 44 DOT 0306181927330 DOT 22307-100000 AT slinky DOT cs DOT nyu DOT edu>
Mime-Version: 1.0
In-Reply-To: <Pine.GSO.4.44.0306181927330.22307-100000@slinky.cs.nyu.edu>
User-Agent: Mutt/1.4.1i

On Wed, Jun 18, 2003 at 07:33:38PM -0400, Igor Pechtchanski wrote:
> On 18 Jun 2003, Sam Steingold wrote:
> 
> > run a process in a cygwin window, find out its PID, run gdb in another
> > window, attach to that process, then detach from it.
> > the target process stops responding as soon as it is attached to.
> > detaching changes nothing.
> > only after I exit gdb, I get the original window responding, with the
> > terminal in raw start (need to do "reset" in bash) and the process that
> > gdb attached to dead.
> >
> > I tested this on python and clisp.
> 
> That's the way Windows debugging works -- once you attach to a process,
> detaching from it kills the process.  No way around it.

...up to Windows 2000.  Since XP, Windows has a new function call to
detach from a process and let it running.  gdb is using this call if
it's availbale on the system.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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