Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Thiago Jung Bauermann <bauerman@br.ibm.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb@sourceware.org, Alexandre Oliva <aoliva@redhat.com>
Subject: Re: any expression to tell whether a variable was optimized out?
Date: Tue, 10 Mar 2009 15:48:00 -0000	[thread overview]
Message-ID: <1236700079.11106.1.camel@localhost.localdomain> (raw)
In-Reply-To: <20090310125945.GA4376@caradoc.them.org>

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


  reply	other threads:[~2009-03-10 15:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-10  9:48 Alexandre Oliva
2009-03-10 12:59 ` Daniel Jacobowitz
2009-03-10 15:48   ` Thiago Jung Bauermann [this message]
2009-03-10 16:45     ` Alexandre Oliva
2009-03-10 18:45       ` Thiago Jung Bauermann
2009-03-10 18:48         ` Thiago Jung Bauermann
2009-03-17 21:07         ` Tom Tromey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1236700079.11106.1.camel@localhost.localdomain \
    --to=bauerman@br.ibm.com \
    --cc=aoliva@redhat.com \
    --cc=drow@false.org \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox