From 6f7c8fc2c5dbc4d526833c8be993a6d035c7e63b Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Wed, 13 Dec 2006 22:36:48 +0000 Subject: * value.c (value_copy): Copy the full 'location' contents, instead of assuming that copying ADDRESS will bring over everything in the union. --- gdb/value.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/value.c') diff --git a/gdb/value.c b/gdb/value.c index 77b92f6..c01444a 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -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; -- cgit v1.1