This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Changing the "enclosing_type" of a value structure
- To: Jim Ingham <jingham at apple dot com>
- Subject: Re: Changing the "enclosing_type" of a value structure
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Fri, 11 Aug 2000 20:06:18 -0700
- CC: gdb at sources dot redhat dot com
- References: <B5B5E410.3CCA%jingham@apple.com>
Jim Ingham wrote:
> /* If we have the full object, but for some reason the enclosing
> type is wrong, set it *//* pai: FIXME -- sounds iffy */
I like the comment...
> return (value_ptr) xrealloc (val, sizeof (struct type)
> + TYPE_LENGTH (new_type));
Should it simply refuse to expand a type? That extra data becomes
undefined in general?
Andrew