From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27073 invoked by alias); 12 Aug 2013 12:20:48 -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 27064 invoked by uid 89); 12 Aug 2013 12:20:48 -0000 X-Spam-SWARE-Status: No, score=-5.7 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_MED,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD autolearn=ham version=3.3.2 Received: from mms2.broadcom.com (HELO mms2.broadcom.com) (216.31.210.18) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 12 Aug 2013 12:20:47 +0000 Received: from [10.9.208.55] by mms2.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.5)); Mon, 12 Aug 2013 05:14:31 -0700 X-Server-Uuid: 4500596E-606A-40F9-852D-14843D8201B2 Received: from IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) by IRVEXCHCAS07.corp.ad.broadcom.com (10.9.208.55) with Microsoft SMTP Server (TLS) id 14.1.438.0; Mon, 12 Aug 2013 05:20:41 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) with Microsoft SMTP Server id 14.1.438.0; Mon, 12 Aug 2013 05:20:40 -0700 Received: from [10.177.73.61] (unknown [10.177.73.61]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 7A227F2D73 for ; Mon, 12 Aug 2013 05:20:40 -0700 (PDT) Message-ID: <5208D317.2050502@broadcom.com> Date: Mon, 12 Aug 2013 12:20:00 -0000 From: "Andrew Burgess" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: [PATCH 03/12] Mark optimized out values as non-lazy. References: <5208D1DF.1090201@broadcom.com> In-Reply-To: <5208D1DF.1090201@broadcom.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-08/txt/msg00303.txt.bz2 This is a re-posting of this patch: http://sourceware.org/ml/gdb-patches/2013-07/msg00058.html The patch was never rejected, it just ran out of steam. Pedro noticed that we could go beyond this patch and do more, even releasing the value contents when we spot values are fully optimized out. I agree, but believe that is a separate idea, that can always be added later, for this case we've not even allocated any value contents yet. OK to apply? Cheers, Andrew gdb/ChangeLog 2013-08-12 Andrew Burgess * value.c (allocate_optimized_out_value): Mark fully optimized out values as non-lazy. diff --git a/gdb/value.c b/gdb/value.c index 462244e..64c9d78 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -744,6 +744,8 @@ allocate_optimized_out_value (struct type *type) mark_value_bytes_optimized_out (retval, 0, TYPE_LENGTH (type)); + set_value_lazy (retval, 0); + return retval; }