Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Thiago Jung Bauermann <bauerman@br.ibm.com>
Cc: Alexandre Oliva <aoliva@redhat.com>,
	Daniel Jacobowitz <drow@false.org>,
	        gdb@sourceware.org
Subject: Re: any expression to tell whether a variable was optimized out?
Date: Tue, 17 Mar 2009 21:07:00 -0000	[thread overview]
Message-ID: <m3hc1rluz1.fsf@fleche.redhat.com> (raw)
In-Reply-To: <1236710732.11106.30.camel@localhost.localdomain> (Thiago Jung Bauermann's message of "Tue\, 10 Mar 2009 15\:45\:32 -0300")

>>>>> "Thiago" == Thiago Jung Bauermann <bauerman@br.ibm.com> writes:

Thiago> You can also do the above by checking out the archer-tromey-python
Thiago> branch, and applying the patch below. I didn't commit this yet because I
Thiago> don't know if it would be better to have is_optimized_out function as a
Thiago> method or attribute of gdb.Value...

I think attribute, because (AFAIK) it is immutable.

I'm a little surprised that this is an attribute of values at all.
Doesn't that seem weird?  Is there anything useful that can be done
with a value like this?  Perhaps just fetching its type?

Tom


      parent reply	other threads:[~2009-03-17 21:07 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
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 [this message]

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=m3hc1rluz1.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=aoliva@redhat.com \
    --cc=bauerman@br.ibm.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