Re: [PATCH 1/2] New OPTIMIZED_OUT_ERROR error code.

Andrew Burgess
2013-12-02T13:53:02Z

On 29/11/2013 8:15 PM, Pedro Alves wrote:
> 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-11-29 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.

For what it's worth; looks good to me :)

Thanks,
Andrew