From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24412 invoked by alias); 31 May 2013 06:11:45 -0000 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 Received: (qmail 24393 invoked by uid 89); 31 May 2013 06:11:43 -0000 X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_NO autolearn=ham version=3.3.1 Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 31 May 2013 06:11:43 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 877282E51A; Fri, 31 May 2013 02:11:41 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id C9HmZtpK40ZH; Fri, 31 May 2013 02:11:41 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 263E62E387; Fri, 31 May 2013 02:11:41 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 81E0EC237F; Fri, 31 May 2013 10:11:35 +0400 (RET) Date: Fri, 31 May 2013 06:11:00 -0000 From: Joel Brobecker To: Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: RFC: introduce scoped cleanups Message-ID: <20130531061135.GA12363@adacore.com> References: <87li7ohtiu.fsf@fleche.redhat.com> <87ppw8qlgl.fsf@fleche.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87ppw8qlgl.fsf@fleche.redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2013-05/txt/msg01101.txt.bz2 > Pedro said he was interested in general stack-based allocation of > cleanups, so I implemented that, following his plan. Is this purely for performance? > Second, like the previous iteration of the patch, this adds a "scoped" > cleanup that can be used to do runtime error-checking of cleanup use. > This checking only works when gdb is compiled with gcc. > > I converted linespec.c entirely to the new setup, just to show what it > looks like. Looks pretty nice, I'd say! -- Joel