From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26895 invoked by alias); 10 Mar 2009 15:48:13 -0000 Received: (qmail 26886 invoked by uid 22791); 10 Mar 2009 15:48:12 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from e24smtp05.br.ibm.com (HELO e24smtp05.br.ibm.com) (32.104.18.26) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 10 Mar 2009 15:48:05 +0000 Received: from d24relay01.br.ibm.com (d24relay01.br.ibm.com [9.8.31.16]) by e24smtp05.br.ibm.com (8.13.1/8.13.1) with ESMTP id n2AFjZOp019601 for ; Tue, 10 Mar 2009 12:45:35 -0300 Received: from d24av02.br.ibm.com (d24av02.br.ibm.com [9.18.232.47]) by d24relay01.br.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n2AGlNlu3555572 for ; Tue, 10 Mar 2009 13:47:23 -0300 Received: from d24av02.br.ibm.com (loopback [127.0.0.1]) by d24av02.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n2AFm0pY002525 for ; Tue, 10 Mar 2009 12:48:01 -0300 Received: from [9.18.198.63] ([9.18.198.63]) by d24av02.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id n2AFm0Qj002506; Tue, 10 Mar 2009 12:48:00 -0300 Subject: Re: any expression to tell whether a variable was optimized out? From: Thiago Jung Bauermann To: Daniel Jacobowitz Cc: gdb@sourceware.org, Alexandre Oliva In-Reply-To: <20090310125945.GA4376@caradoc.them.org> References: <20090310125945.GA4376@caradoc.them.org> Content-Type: text/plain; charset=UTF-8 Date: Tue, 10 Mar 2009 15:48:00 -0000 Message-Id: <1236700079.11106.1.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes 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-03/txt/msg00078.txt.bz2 El mar, 10-03-2009 a las 08:59 -0400, Daniel Jacobowitz escribió: > On Tue, Mar 10, 2009 at 06:48:28AM -0300, Alexandre Oliva wrote: > > Is there really no way to set a gdb variable to something equivalent to > > the boolean result of valprint.c:value_optimized_out()? Any reason for > > that, other than that nobody needed it before? > > Nope, there's no way to do it. Really, unavailable ought to propogate > through the expression evaluator, and give errors at some points, I > expect... It would be easy enough to add a method to the gdb.Value Python class exposing this boolean. Would it help you? -- []'s Thiago Jung Bauermann IBM Linux Technology Center