This is the mail archive of the gdb-patches@sources.redhat.com 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: Don't error out when variable not available


On Mon, Jan 03, 2005 at 12:49:04AM +0100, Andreas Schwab wrote:
> Daniel Jacobowitz <drow@false.org> writes:
> 
> > How about reusing the LOC_OPTIMIZED_OUT handling to describe this case? 
> > I believe that will print "foo = <optimized out>".
> 
> LOC_OPTIMIZED_OUT is not a value, but a static property of a symbol.  I
> don't think it fits into the dynamic nature of unavailable values.

However, we always handle it in the same case statements that handle
LOC_COMPUTED, which is how we get into the dwarf2 expression evaluator
anyway.

-- 
Daniel Jacobowitz


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