This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: any expression to tell whether a variable was optimized out?
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb at sourceware dot org
- Date: Tue, 10 Mar 2009 08:59:46 -0400
- Subject: Re: any expression to tell whether a variable was optimized out?
- References: <orskllhfo3.fsf@oliva.athome.lsd.ic.unicamp.br>
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