diff options
author | Tom Tromey <tromey@adacore.com> | 2021-09-10 12:40:54 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2021-10-05 12:34:55 -0600 |
commit | a519e8ffe2b0f008deaef1517562090d9eaadccc (patch) | |
tree | 71b6a30706c0849c861c8d38cc25df4954be16fc /gdb/opencl-lang.c | |
parent | 25b0a5714c9ef139bb50adf392154f528d6a4c8d (diff) | |
download | gdb-a519e8ffe2b0f008deaef1517562090d9eaadccc.zip gdb-a519e8ffe2b0f008deaef1517562090d9eaadccc.tar.gz gdb-a519e8ffe2b0f008deaef1517562090d9eaadccc.tar.bz2 |
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.
Diffstat (limited to 'gdb/opencl-lang.c')
-rw-r--r-- | gdb/opencl-lang.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/opencl-lang.c b/gdb/opencl-lang.c index b877de4..b279674 100644 --- a/gdb/opencl-lang.c +++ b/gdb/opencl-lang.c @@ -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, |