This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: PATCH: error reading variable: value has been optimized out
On Wed, 19 Sep 2012 16:28:45 +0200, Andrew Burgess wrote:
> Ok, new version of patch below, same as before except,
>
> - Uses xpass for the tests that are currently failing if they do ever produce the correct output, this will encourage whoever fixes them to go and remove the kfails.
> - Uses kfail for the current broken output. There are no real bug IDs in place yet. Once I get approval to commit I'll open bug reports, and push a version of this patch with the actual bug IDs in place. I'm happy to open the bugs earlier if that's a requirement for me to get approval.
>
> Is this ok to commit?
I am fine with this patch.
Thanks,
Jan
> gdb/ChangeLog
>
> 2012-08-24 Andrew Burgess <aburgess@broadcom.com>
>
> * findvar.c (read_frame_register_value): Mark the result value as
> optimized out if any of the input registers have been optimized out.
[...]
> gdb/testsuite/ChangeLog
>
> 2012-09-19 Andrew Burgess <aburgess@broadcom.com>
>
> * gdb.dwarf2/dw2-op-out-param.S: New file.
> * gdb.dwarf2/dw2-op-out-param.exp: New file.