diff options
author | Jerome Guitton <guitton@adacore.com> | 2009-02-04 15:49:30 +0000 |
---|---|---|
committer | Jerome Guitton <guitton@adacore.com> | 2009-02-04 15:49:30 +0000 |
commit | 33d502b41a50762007426862d854f6903c789221 (patch) | |
tree | b5acfb5984aa11e54db8c3abb0218165507db9bc /gdb/value.c | |
parent | 8e94a90cbc441a1515908ae6a5ed162c5190306c (diff) | |
download | gdb-33d502b41a50762007426862d854f6903c789221.zip gdb-33d502b41a50762007426862d854f6903c789221.tar.gz gdb-33d502b41a50762007426862d854f6903c789221.tar.bz2 |
* value.c (value_from_contents_and_address): Always return
a lval_memory value, even if address is null.
Diffstat (limited to 'gdb/value.c')
-rw-r--r-- | gdb/value.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; } |