Mark entirely optimized out value as non-lazy.
authorAndrew Burgess <aburgess@broadcom.com>
Tue, 26 Nov 2013 16:21:53 +0000 (16:21 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 26 Nov 2013 16:21:53 +0000 (16:21 +0000)
commit4f14910fa1331398cc695011a6af43a89252b4b1
treeff24b7e95b70b13fd756d0ca2378bf23925f4517
parent4920638856fd2ee27d0f61330e75a05b8d719f02
Mark entirely optimized out value as non-lazy.

If a value is entirely optimized out, then there's nothing for
value_fetch_lazy to fetch.  Sequences like:

 if (value_lazy (retval))
   value_fetch_lazy (retval);

End up allocating the value contents buffer, wasting memory, for no
use.

gdb/ChangeLog
2013-11-26  Andrew Burgess  <aburgess@broadcom.com>

* value.c (allocate_optimized_out_value): Mark value as non-lazy.
gdb/ChangeLog
gdb/value.c