This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA]: value_change_enclosing_type
- To: Daniel Berlin <dan at cgsoftware dot com>
- Subject: Re: [RFA]: value_change_enclosing_type
- From: David Taylor <taylor at candd dot org>
- Date: Mon, 07 May 2001 14:59:39 -0400
- cc: gdb-patches at sources dot redhat dot com
From: Daniel Berlin <dan@cgsoftware.com>
Date: 07 May 2001 14:04:17 -0400
Accidently includes the value_static_field change, since I couldn't
get diff to not include it, and i haven't committed it just yet.
Sorry about that.
This change fixes a particularly annoying problem. If we changed the
enclosing type to a larger type, we never allocated more space, and
thus, were using random memory.
2001-05-07 Daniel Berlin <dan@cgsoftware.com>
Changes by Jim Ingham:
* values.c (value_change_enclosing_type): New function. If the
new enclosing type is larger than the old one, we need to allocate
more space.
* value.h: Add value_change_enclosing_type prototype.
* valops.c (value_cast): Use it.
(value_assign): Use it.
(value_addr): Use it.
(value_ind): Use it.
(value_full_object): Use it.
Approved.