[patch] Fix internal error on optimized-out values (regression by me)

Tom Tromey tromey@redhat.com
Mon Oct 3 19:34:00 GMT 2011


>>>>> "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



More information about the Gdb-patches mailing list