]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/dwarf2/loc.c
Add lval_funcs::is_optimized_out
authorTom Tromey <tromey@adacore.com>
Fri, 10 Sep 2021 18:40:54 +0000 (12:40 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 5 Oct 2021 18:34:55 +0000 (12:34 -0600)
commita519e8ffe2b0f008deaef1517562090d9eaadccc
tree71b6a30706c0849c861c8d38cc25df4954be16fc
parent25b0a5714c9ef139bb50adf392154f528d6a4c8d
Add lval_funcs::is_optimized_out

This adds an is_optimized_out function pointer to lval_funcs, and
changes value_optimized_out to call it.  This new function lets gdb
determine if a value is optimized out without necessarily fetching the
value.  This is needed for a subsequent patch, where an attempt to
access a lazy value would fail due to the value size limit -- however,
the access was only needed to determine the optimized-out state.
gdb/dwarf2/expr.c
gdb/dwarf2/loc.c
gdb/opencl-lang.c
gdb/value.c
gdb/value.h