* value.c (value_copy): Copy the full 'location' contents, instead
authorJim Blandy <jimb@codesourcery.com>
Wed, 13 Dec 2006 22:36:48 +0000 (22:36 +0000)
committerJim Blandy <jimb@codesourcery.com>
Wed, 13 Dec 2006 22:36:48 +0000 (22:36 +0000)
of assuming that copying ADDRESS will bring over everything in the
union.

gdb/ChangeLog
gdb/value.c

index 5db44c31b1334a65781299d8e73a4ac45dc6549d..049a48426e7e527b9497332b4a201f10894e4b5c 100644 (file)
@@ -1,3 +1,9 @@
+2006-12-13  Jim Blandy  <jimb@codesourcery.com>
+
+       * value.c (value_copy): Copy the full 'location' contents, instead
+       of assuming that copying ADDRESS will bring over everything in the
+       union.
+
 2006-12-13  Markus Deuling  <deuling@de.ibm.com>
 
        * spu-tdep.c (spu_init_vector_type): New function.
index 77b92f6db7d5b1af35ea04a52e1eaf2e576c83af..c01444a4e9fc54493390cb68c14f1bd9202d8190 100644 (file)
@@ -551,7 +551,7 @@ value_copy (struct value *arg)
   struct value *val = allocate_value (encl_type);
   val->type = arg->type;
   VALUE_LVAL (val) = VALUE_LVAL (arg);
-  VALUE_ADDRESS (val) = VALUE_ADDRESS (arg);
+  val->location = arg->location;
   val->offset = arg->offset;
   val->bitpos = arg->bitpos;
   val->bitsize = arg->bitsize;
This page took 0.027842 seconds and 4 git commands to generate.