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?


>>>>> "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


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