This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: optimized-out pieces
Hi Tom,
On 11 June 2010 17:34, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:
>
> Tom> New patch appended.
>
> I am checking in the latest version of this patch.
I think this patch regresses on architectures that mark registers as
optimized in their CFI. Specifically when executing the 'return'
command. When iterating over the unwound registers to gather the
values to assign to the registers in pop_frame, frame_register_unwind
calls value_contents_all that will error out if it finds an unsaved
register. I think it's expected to have such registers when doing a
return.
I fixed that by preventing frame_register_unwind to call
value_contents_all in the optimized case (not providing the one-liner
as I don't have the copyright assignment in place anymore).
Cheers,
Fred