This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: [RFA]: value_change_enclosing_type


    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.


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