From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8543 invoked by alias); 3 Sep 2012 15:07:30 -0000 Received: (qmail 8524 invoked by uid 22791); 3 Sep 2012 15:07:29 -0000 X-SWARE-Spam-Status: No, hits=-6.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_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; Mon, 03 Sep 2012 15:06:54 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q83F6rVf001473 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 3 Sep 2012 11:06:53 -0400 Received: from host2.jankratochvil.net (ovpn-116-25.ams2.redhat.com [10.36.116.25]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q83F6nPg027256 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 3 Sep 2012 11:06:52 -0400 Date: Mon, 03 Sep 2012 15:07:00 -0000 From: Jan Kratochvil To: Tom Tromey Cc: Andrew Burgess , "gdb-patches@sourceware.org" Subject: Re: PATCH: error reading variable: value has been optimized out Message-ID: <20120903150648.GA16315@host2.jankratochvil.net> References: <50376F3B.1080407@broadcom.com> <20120826171840.GA21205@host2.jankratochvil.net> <871uisibi3.fsf@fleche.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <871uisibi3.fsf@fleche.redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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: 2012-09/txt/msg00017.txt.bz2 On Mon, 27 Aug 2012 17:46:12 +0200, Tom Tromey wrote: > I'm not sure whether I'm understanding your comment correctly, but gdb > does support partially optimized out values. However, these are only > supported for lval_computed values. See lval_funcs::check_validity and > check_any_valid. value_bits_valid leads to val_print_optimized_out - vs. value_bytes_available leads to val_print_unavailable - > Offhand it seems as though read_frame_register_value could create an > lval_computed value if any register it needs is optimized out. I don't > know whether this is worth the effort. dwarf2_evaluate_loc_desc_full 'ctx->num_pieces > 0' block looka as a nice guide to it. Thanks, Jan