New OPTIMIZED_OUT_ERROR error code.
In order to catch <optimized out> errors like we catch <unavailable> errors, this adds a new OPTIMIZED_OUT_ERROR error code, and throws it in various places. gdb/ChangeLog 2013-12-06 Andrew Burgess <aburgess@broadcom.com> Pedro Alves <palves@redhat.com> * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR. * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR. * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR. * spu-tdep.c (spu_software_single_step): Throw OPTIMIZED_OUT_ERROR. * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
This commit is contained in:
parent
7580e91767
commit
710409a221
6 changed files with 25 additions and 7 deletions
|
@ -86,6 +86,10 @@ enum errors {
|
|||
traceframe. */
|
||||
NOT_AVAILABLE_ERROR,
|
||||
|
||||
/* Value was optimized out. Note: if the value was a register, this
|
||||
means the register was not saved in the frame. */
|
||||
OPTIMIZED_OUT_ERROR,
|
||||
|
||||
/* DW_OP_GNU_entry_value resolving failed. */
|
||||
NO_ENTRY_VALUE_ERROR,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue