Re: Don't error out when variable not available

Daniel Jacobowitz
2005-01-03T00:49:51Z

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