PATCH: error reading variable: value has been optimized out
Eli Zaretskii
eliz@gnu.org
Mon Sep 3 15:38:00 GMT 2012
> Date: Mon, 3 Sep 2012 13:24:25 +0200
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
> Cc: Andrew Burgess <aburgess@broadcom.com>, gdb-patches@sourceware.org
>
> On Sat, 01 Sep 2012 10:16:41 +0200, Eli Zaretskii wrote:
> > > [...] 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 did not check this specific case but these kinds of registers validity in
> general are fixed since FSF GCC 4.5 with the introduction of VTA
> (-fvar-tracking-assignments).
OK, thanks. I hope it will be possible to support older versions as
well. E.g., fencepost.gnu.org has this installed:
eliz@fencepost:~$ gcc --version
gcc (Ubuntu 4.4.3-4ubuntu5.1) 4.4.3
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
More information about the Gdb-patches
mailing list