From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25833 invoked by alias); 4 Sep 2009 21:23:37 -0000 Received: (qmail 25821 invoked by uid 22791); 4 Sep 2009 21:23:37 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_53,KAM_STOCKGEN,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 04 Sep 2009 21:23:33 +0000 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n84LNGYY022067; Fri, 4 Sep 2009 17:23:16 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n84LNFGP031042; Fri, 4 Sep 2009 17:23:16 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n84LNE9K022199; Fri, 4 Sep 2009 17:23:15 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 64F2A37820A; Fri, 4 Sep 2009 15:23:14 -0600 (MDT) From: Tom Tromey To: Nathan Froyd Cc: Doug Evans , Pedro Alves , gdb@sourceware.org Subject: Re: store.exp failure on i686-linux with newer gcc's References: <200909032303.56901.pedro@codesourcery.com> <20090903234357.GR29075@codesourcery.com> Reply-To: tromey@redhat.com Date: Fri, 04 Sep 2009 21:23:00 -0000 In-Reply-To: <20090903234357.GR29075@codesourcery.com> (Nathan Froyd's message of "Thu, 3 Sep 2009 16:43:57 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-09/txt/msg00088.txt.bz2 >>>>> "Nathan" == Nathan Froyd writes: I've been thinking about this patch more and I have one more question. Nathan> + struct gdbarch *arch = get_frame_arch (frame); Nathan> + struct frame_id frame_id = get_frame_id (frame); Nathan> + Nathan> + c = allocate_piece_closure (ctx->num_pieces, ctx->pieces); Nathan> + retval = allocate_computed_value (SYMBOL_TYPE (var), Nathan> + &pieced_value_funcs, Nathan> + c); Nathan> + VALUE_FRAME_ID (retval) = frame_id; My understanding is that we can evaluate dwarf expressions that do not need a frame. Will this code do the right thing in that situation? I am not sure how to construct a situation like that. Maybe someone else knows. Tom