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] Fix internal error on optimized-out values (regression by me)


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


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