[PATCH] ada-lang.c:coerce_unspec_val_to_type: Preserve laziness.

Tom Tromey tromey@redhat.com
Wed Jul 10 17:13:00 GMT 2013


>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:

Pedro> That works, but I had originally discarded such an approach
Pedro> because it looked brittle to me.  E.g., I was toying with optimizing
Pedro> value_optimized_out by only fetching lazy values if it really can't
Pedro> avoid it, and such a change would render this subtly broken.

This code in ada-lang.c and similar code elsewhere always seems to me to
be a call for a new value copy-constructor that takes a type argument.
Then any necessary wackiness can be isolated in value.c.

Tom



More information about the Gdb-patches mailing list