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
- From: "Andrew Burgess" <aburgess at broadcom dot com>
- To: gdb-patches at sourceware dot org
- Cc: "Eli Zaretskii" <eliz at gnu dot org>, jan dot kratochvil at redhat dot com
- Date: Mon, 3 Sep 2012 09:32:19 +0100
- Subject: Re: PATCH: error reading variable: value has been optimized out
- References: <50376F3B.1080407@broadcom.com> <20120826171840.GA21205@host2.jankratochvil.net> <504092C0.2000602@broadcom.com> <83harip386.fsf@gnu.org>
On 01/09/2012 9:16 AM, Eli Zaretskii wrote:
>> Date: Fri, 31 Aug 2012 11:32:32 +0100
>> From: "Andrew Burgess" <aburgess@broadcom.com>
>> cc: "Jan Kratochvil" <jan.kratochvil@redhat.com>
>>
>> On 26/08/2012 6:18 PM, Jan Kratochvil wrote:
>>> I agree with the fix but it should have GDB-testsuite compatible testcase.
>>> Also FYI it is only for backward compatibility with old GCCs.
>>
>> Included a test case (below) that covers 4 different cases, all of
>> which are currently broken in different ways.
>
> Thank you for doing this.
>
>> [...] but as gcc is no longer creating examples like this I think we can accept the more limited solution I originally suggessted, if that's ok.
>
> "No longer creating" since what version of GCC?
I have to confess this statement is based on something Jan said in his first reply:
On 26/08/2012 6:18 PM, Jan Kratochvil wrote:
> Newer GCCs do not say anything is in callee-clobberred register when inside the
> call, being more correct and making it easier for GDB:
I haven't confirmed this, but don't doubt it :)
Cheers,
Andrew