* value.c (value_bits_valid, value_bits_synthetic_pointer):
authorPedro Alves <palves@redhat.com>
Mon, 14 Feb 2011 11:52:48 +0000 (11:52 +0000)
committerPedro Alves <palves@redhat.com>
Mon, 14 Feb 2011 11:52:48 +0000 (11:52 +0000)
No longer handle NULL values.

gdb/ChangeLog
gdb/value.c

index bfef2e24c1d20cef477a25dc31877d7f45ea3d8f..52eac555d565b5b08cc43ed7c5e5484f29cc2267 100644 (file)
@@ -1,3 +1,8 @@
+2011-02-14  Pedro Alves  <pedro@codesourcery.com>
+
+       * value.c (value_bits_valid, value_bits_synthetic_pointer):
+       No longer handle NULL values.
+
 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
 
        * exceptions.h (NOT_AVAILABLE_ERROR): New error.
index 3b4d23a7374e6bb3f494266f3eac99d3ce139edd..2b8dd360abb2a1a7d2381d4a3b653dd4f9a42e00 100644 (file)
@@ -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,