2002-10-07 Pierre Muller <muller@ics.u-strasbg.fr>
authorPierre Muller <muller@sourceware.org>
Tue, 5 Nov 2002 08:25:13 +0000 (08:25 +0000)
committerPierre Muller <muller@sourceware.org>
Tue, 5 Nov 2002 08:25:13 +0000 (08:25 +0000)
* values.c (value_change_enclosing_type): Set
enclosing_type field correctly also for the case where
more memory needs to be allocated.

gdb/ChangeLog
gdb/values.c

index e1400e0270a8f431c058a739c8595aa04bde24ef..29714984f403b77b1c16db9f096f9317915402ee 100644 (file)
@@ -1,3 +1,9 @@
+2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * values.c (value_change_enclosing_type): Set 
+       enclosing_type field correctly also for the case where 
+       more memory needs to be allocated.
+
 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
 
        * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
index c943f28fa462f1fcf6501be0869788103e02a528..950dee68e99ae926aec369a151858bd3907bb0bc 100644 (file)
@@ -862,7 +862,9 @@ value_change_enclosing_type (struct value *val, struct type *new_encl_type)
       struct value *prev;
       
       new_val = (struct value *) xrealloc (val, sizeof (struct value) + TYPE_LENGTH (new_encl_type));
-      
+
+      VALUE_ENCLOSING_TYPE (new_val) = new_encl_type;
       /* We have to make sure this ends up in the same place in the value
         chain as the original copy, so it's clean-up behavior is the same. 
         If the value has been released, this is a waste of time, but there
This page took 0.029881 seconds and 4 git commands to generate.