forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -254,6 +254,7 @@ static const struct lval_funcs opencl_value_funcs =
|
||||
{
|
||||
lval_func_read,
|
||||
lval_func_write,
|
||||
nullptr,
|
||||
NULL, /* indirect */
|
||||
NULL, /* coerce_ref */
|
||||
lval_func_check_synthetic_pointer,
|
||||
|
||||
Reference in New Issue
Block a user