PATCH: error reading variable: value has been optimized out
Andrew Burgess
aburgess@broadcom.com
Mon Sep 3 08:32:00 GMT 2012
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
More information about the Gdb-patches
mailing list