From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17911 invoked by alias); 10 Jul 2008 22:08:54 -0000 Received: (qmail 17900 invoked by uid 22791); 10 Jul 2008 22:08:53 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 10 Jul 2008 22:08:33 +0000 Received: (qmail 7333 invoked from network); 10 Jul 2008 22:08:31 -0000 Received: from unknown (HELO orlando.local) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 10 Jul 2008 22:08:31 -0000 From: Pedro Alves To: Daniel Jacobowitz Subject: Re: Spurius results for cygwin selftest.exp(was Re: [RFC] fix annoying completion bug on directories) Date: Thu, 10 Jul 2008 22:08:00 -0000 User-Agent: KMail/1.9.9 Cc: gdb-patches@sourceware.org, Pierre Muller References: <000901c8def8$137b1bf0$3a7153d0$@u-strasbg.fr> <20080710211746.GD29418@ednor.casa.cgf.cx> <20080710214738.GA17212@caradoc.them.org> In-Reply-To: <20080710214738.GA17212@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200807102308.31612.pedro@codesourcery.com> 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: 2008-07/txt/msg00170.txt.bz2 A Thursday 10 July 2008 22:47:38, Daniel Jacobowitz wrote: > On Thu, Jul 10, 2008 at 05:17:46PM -0400, Christopher Faylor wrote: > > Does debugging the process cause an extra thread to be created by > > Windows, too? I don't remember. I know it creates a thread when you > > attach to a process but I don't know if it does just in a standard > > debug when a process started via CreateProcess. > > I know one is created when you Control-C, but I'm not sure about when > you hit a breakpoint. None is created you hit hit a breakpoint, but one is created with DebugBreakProcess -- this injects a thread in the debuggee whose sole job is to hit a breakpoint. None extra is created when you debug a process started via CreateProcess. Attaching does create a new thread, and you can actually create a bunch of them by detaching/attaching from the same process several times. -- Pedro Alves