From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32005 invoked by alias); 2 May 2008 03:00:36 -0000 Received: (qmail 31994 invoked by uid 22791); 2 May 2008 03:00:35 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 02 May 2008 03:00:15 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id A0AB9983D6; Fri, 2 May 2008 03:00:13 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 1F9A998366; Fri, 2 May 2008 03:00:13 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1JrlVM-0007YB-Fj; Thu, 01 May 2008 23:00:12 -0400 Date: Fri, 02 May 2008 03:00:00 -0000 From: Daniel Jacobowitz To: Vladimir Prus Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] Make continuations per-thread. Message-ID: <20080502030012.GB28580@caradoc.them.org> Mail-Followup-To: Vladimir Prus , gdb-patches@sources.redhat.com References: <200804242045.39246.vladimir@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200804242045.39246.vladimir@codesourcery.com> User-Agent: Mutt/1.5.17 (2007-12-11) 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-05/txt/msg00058.txt.bz2 On Thu, Apr 24, 2008 at 07:45:38PM +0300, Vladimir Prus wrote: > > Right now, continuations are global. This means that if we're doing > 'finish' in one thread, then we cannot do 'finish' or anything that > also uses continuations, in any other thread. This seems unnecessary > limitation, and this patch makes continuations per-thread. > > Further into non-stop series, it really allows me to do 'finish' or 'step' > in several threads independently. > > OK? Could you explain why this is safe? We will do continuations for the thread which reports an event only. So it seems like continuations for other threads will linger in their struct thread. For example, if we finish from one thread and hit a breakpoint in another thread before the finish returns. -- Daniel Jacobowitz CodeSourcery