diff options
author | Pedro Alves <palves@redhat.com> | 2013-12-06 19:48:54 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2013-12-06 19:48:54 +0000 |
commit | 710409a221f27f39d8b8e33c5676c97cb04cf4b8 (patch) | |
tree | 9af164e9fb5ca2f9ac907c6f89304ebe0913a540 /gdb/exceptions.h | |
parent | 7580e9176779460e031d82aa1cd5790db53ad27b (diff) | |
download | gdb-710409a221f27f39d8b8e33c5676c97cb04cf4b8.zip gdb-710409a221f27f39d8b8e33c5676c97cb04cf4b8.tar.gz gdb-710409a221f27f39d8b8e33c5676c97cb04cf4b8.tar.bz2 |
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.
Diffstat (limited to 'gdb/exceptions.h')
-rw-r--r-- | gdb/exceptions.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/exceptions.h b/gdb/exceptions.h index a3a28f4..705f1a1 100644 --- a/gdb/exceptions.h +++ b/gdb/exceptions.h @@ -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, |