From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27747 invoked by alias); 10 Mar 2009 12:59:59 -0000 Received: (qmail 27737 invoked by uid 22791); 10 Mar 2009 12:59:58 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 10 Mar 2009 12:59:51 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id D3515105BB for ; Tue, 10 Mar 2009 12:59:47 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id C3762101B8 for ; Tue, 10 Mar 2009 12:59:47 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1Lh1Yg-00018u-9D for gdb@sourceware.org; Tue, 10 Mar 2009 08:59:46 -0400 Date: Tue, 10 Mar 2009 12:59:00 -0000 From: Daniel Jacobowitz To: gdb@sourceware.org Subject: Re: any expression to tell whether a variable was optimized out? Message-ID: <20090310125945.GA4376@caradoc.them.org> Mail-Followup-To: gdb@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2008-05-11) 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/msg00075.txt.bz2 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... -- Daniel Jacobowitz CodeSourcery