aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2011-02-14 11:52:48 +0000
committerPedro Alves <palves@redhat.com>2011-02-14 11:52:48 +0000
commite730304246e026793738f1a2d135db2de36bf567 (patch)
tree88bdb08187d84960921194f14044d39b5452f9c7 /gdb/value.c
parent8af8e3bc815c464731924d121681ac73cae1ab1d (diff)
downloadgdb-e730304246e026793738f1a2d135db2de36bf567.zip
gdb-e730304246e026793738f1a2d135db2de36bf567.tar.gz
gdb-e730304246e026793738f1a2d135db2de36bf567.tar.bz2
* value.c (value_bits_valid, value_bits_synthetic_pointer):
No longer handle NULL values.
Diffstat (limited to 'gdb/value.c')
-rw-r--r--gdb/value.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/value.c b/gdb/value.c
index 3b4d23a..2b8dd36 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -998,7 +998,7 @@ value_entirely_optimized_out (const struct value *value)
int
value_bits_valid (const struct value *value, int offset, int length)
{
- if (value == NULL || !value->optimized_out)
+ if (!value->optimized_out)
return 1;
if (value->lval != lval_computed
|| !value->location.computed.funcs->check_validity)
@@ -1011,7 +1011,7 @@ int
value_bits_synthetic_pointer (const struct value *value,
int offset, int length)
{
- if (value == NULL || value->lval != lval_computed
+ if (value->lval != lval_computed
|| !value->location.computed.funcs->check_synthetic_pointer)
return 0;
return value->location.computed.funcs->check_synthetic_pointer (value,