This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fix internal error on optimized-out values (regression by me)
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 27 Sep 2011 14:52:50 +0200
- Subject: Re: [patch] Fix internal error on optimized-out values (regression by me)
- References: <20110926191132.GA30401@host1.jankratochvil.net>
On Mon, 26 Sep 2011 21:11:32 +0200, Jan Kratochvil wrote:
> Formerly (incl. gdb-7.3) did:
> (gdb) p p->f
> $1 = 0
> which was also wrong, ((struct *) <optimized out>)->field should be IMO still
> <optimized out>; just it became internal-error now.
Mail text fix up:
((struct) <optimized out>).field should be IMO still <optimized out>; just it
became internal-error now.
For ((struct *) <optimized out>)->field GDB still correctly throws by
require_not_optimized_out error (_("value has been optimized out"));
It would be probably incorrect to dereference <optimized out> pointer into
anything.
Regards,
Jan