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: Tom Tromey <tromey at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 03 Oct 2011 13:34:16 -0600
- Subject: Re: [patch] Fix internal error on optimized-out values (regression by me)
- References: <20110926191132.GA30401@host1.jankratochvil.net> <20110927125250.GA27966@host1.jankratochvil.net>
>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
Jan> ((struct) <optimized out>).field should be IMO still <optimized
Jan> out>; just it became internal-error now.
Maybe I am misunderstanding what you are saying -- I think this should
also throw. I think the rule should be that any attempt to access any
"invalid" contents of a value, for purposes of computation, should throw
an exception. I say "purposes of computation" because printing must
explicitly be excluded here. I think this rule applies to both forms of
"invalid" -- both optimized-out and unavailable.
Tom