Don't error out when variable not available
Daniel Jacobowitz
drow@false.org
Mon Jan 3 00:49:00 GMT 2005
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
More information about the Gdb-patches
mailing list