From 33d502b41a50762007426862d854f6903c789221 Mon Sep 17 00:00:00 2001 From: Jerome Guitton Date: Wed, 4 Feb 2009 15:49:30 +0000 Subject: * value.c (value_from_contents_and_address): Always return a lval_memory value, even if address is null. --- gdb/value.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gdb/value.c') diff --git a/gdb/value.c b/gdb/value.c index f0c8463..808d37b 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -1712,8 +1712,7 @@ value_from_contents_and_address (struct type *type, else memcpy (value_contents_raw (v), valaddr, TYPE_LENGTH (type)); VALUE_ADDRESS (v) = address; - if (address != 0) - VALUE_LVAL (v) = lval_memory; + VALUE_LVAL (v) = lval_memory; return v; } -- cgit v1.1