aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-11-17 19:53:37 +0000
committerTom Tromey <tromey@redhat.com>2010-11-17 19:53:37 +0000
commitba19bb4d8d07d9eb9a93fb2aa5af19cff5688b5d (patch)
tree6fbcdf4b0616a9c387a303a43ae44c2a6912b1e3
parent8c21d9c72e3c7a520d32d1593a99a7c2a736f258 (diff)
downloadgdb-ba19bb4d8d07d9eb9a93fb2aa5af19cff5688b5d.zip
gdb-ba19bb4d8d07d9eb9a93fb2aa5af19cff5688b5d.tar.gz
gdb-ba19bb4d8d07d9eb9a93fb2aa5af19cff5688b5d.tar.bz2
* value.c (value_entirely_optimized_out): Check the
'check_any_valid' field.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/value.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e75bab4..2e3144a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/value.c b/gdb/value.c
index 31111cf..d1ca3dc 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -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);
}