This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Don't error out when variable not available
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.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."