This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] ada-lang.c:coerce_unspec_val_to_type: Preserve laziness.
- From: Tom Tromey <tromey at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: Andrew Burgess <aburgess at broadcom dot com>, gdb-patches at sourceware dot org
- Date: Wed, 10 Jul 2013 11:13:29 -0600
- Subject: Re: [PATCH] ada-lang.c:coerce_unspec_val_to_type: Preserve laziness.
- References: <20130704182244 dot 16683 dot 55719 dot stgit at brno dot lan> <51D6A00A dot 2050803 at broadcom dot com> <51D6A2CE dot 7080502 at redhat dot com>
>>>>> "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