From 33d502b41a50762007426862d854f6903c789221 Mon Sep 17 00:00:00 2001 From: Jerome Guitton Date: Wed, 4 Feb 2009 15:49:30 +0000 Subject: [PATCH] * value.c (value_from_contents_and_address): Always return a lval_memory value, even if address is null. --- gdb/ChangeLog | 5 +++++ gdb/value.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7e0a462e7b..07d85653f4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-02-04 Jerome Guitton + + * value.c (value_from_contents_and_address): Always return + a lval_memory value, even if address is null. + 2009-02-04 Tristan Gingold * i386-darwin-tdep.c (i386_darwin_sigcontext_addr): New function. diff --git a/gdb/value.c b/gdb/value.c index f0c8463dc5..808d37b806 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; } -- 2.34.1