| commit | a519e8ffe2b0f008deaef1517562090d9eaadccc | [log] [tgz] |
|---|---|---|
| author | Tom Tromey <tromey@adacore.com> | Fri Sep 10 12:40:54 2021 -0600 |
| committer | Tom Tromey <tromey@adacore.com> | Tue Oct 05 12:34:55 2021 -0600 |
| tree | 71b6a30706c0849c861c8d38cc25df4954be16fc | |
| parent | 25b0a5714c9ef139bb50adf392154f528d6a4c8d [diff] |
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.