From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20596 invoked by alias); 14 May 2003 22:46:46 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 20572 invoked from network); 14 May 2003 22:46:45 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 14 May 2003 22:46:45 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h4EMkjH20852 for ; Wed, 14 May 2003 18:46:45 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h4EMkeI16835 for ; Wed, 14 May 2003 18:46:40 -0400 Received: from localhost.localdomain (vpn50-3.rdu.redhat.com [172.16.50.3]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h4EMkbQ26905 for ; Wed, 14 May 2003 18:46:37 -0400 Received: (from kev@localhost) by localhost.localdomain (8.11.6/8.11.6) id h4EMkTc10561 for gdb-patches@sources.redhat.com; Wed, 14 May 2003 15:46:29 -0700 Date: Wed, 14 May 2003 22:46:00 -0000 From: Kevin Buettner Message-Id: <1030514224629.ZM10560@localhost.localdomain> In-Reply-To: Elena Zannoni "Re: [RFA] dwarf2expr.c: Fix some stack [re]allocation problems" (May 7, 7:02pm) References: <1030423234526.ZM13643@localhost.localdomain> <1030507223951.ZM32198@localhost.localdomain> <16057.37022.923861.785213@localhost.redhat.com> To: gdb-patches@sources.redhat.com Subject: Re: [RFA] dwarf2expr.c: Fix some stack [re]allocation problems MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-05/txt/msg00228.txt.bz2 On May 7, 7:02pm, Elena Zannoni wrote: > > Okay? > > Sure. > > > * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to > > correctly indicate an empty stack and ``stack_allocated'' to the > > indicate the number of elements initially allocated. > > (dwarf_expr_grow_stack): Simplify method for computing new > > stack size. Don't loop infinitely if ``stack_len'' is zero. Committed. Kevin