* value.c (value_entirely_optimized_out): Check the
authorTom Tromey <tromey@redhat.com>
Wed, 17 Nov 2010 19:53:37 +0000 (19:53 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 17 Nov 2010 19:53:37 +0000 (19:53 +0000)
'check_any_valid' field.

gdb/ChangeLog
gdb/value.c

index e75bab448a7e048d360af13c8786d1bdffe47b66..2e3144ae494f2fbee3cfc99323a772e9fa84bed2 100644 (file)
@@ -1,3 +1,8 @@
+2010-11-17  Tom Tromey  <tromey@redhat.com>
+
+       * value.c (value_entirely_optimized_out): Check the
+       'check_any_valid' field.
+
 2010-11-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * ada-lang.c (modify_general_field): Remove.
index 31111cf12774f754e315888c556281dbe9c657a2..d1ca3dc336395f541e82b76c901a767c52a83e08 100644 (file)
@@ -519,7 +519,7 @@ value_entirely_optimized_out (const struct value *value)
   if (!value->optimized_out)
     return 0;
   if (value->lval != lval_computed
-      || !value->location.computed.funcs->check_validity)
+      || !value->location.computed.funcs->check_any_valid)
     return 1;
   return !value->location.computed.funcs->check_any_valid (value);
 }