This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: any expression to tell whether a variable was optimized out?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]