This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: error reading variable: value has been optimized out


> 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 don't think we should drop use cases just because they are only
possible on past (old) versions of GCC.  GDB is not limited to debug
programs created only by latest GCC versions.  I happen to still use a
very old version of GCC (because it is stable and fast, and because I
rarely need C++), and would very much like to have better debugging
abilities for optimized code than what I have now.

TIA


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]