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)


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


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