aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-07-01 15:21:11 +0000
committerTom Tromey <tromey@redhat.com>2010-07-01 15:21:11 +0000
commitb65c7efe9761a99b77fa8b629b4f3cc5f916f4cf (patch)
tree78c5b67752206419ecdbcd46b1baf3d3445d4571 /gdb
parentcef3d14b438107ee5161c22e906fe108d819c15e (diff)
downloadfsf-binutils-gdb-b65c7efe9761a99b77fa8b629b4f3cc5f916f4cf.zip
fsf-binutils-gdb-b65c7efe9761a99b77fa8b629b4f3cc5f916f4cf.tar.gz
fsf-binutils-gdb-b65c7efe9761a99b77fa8b629b4f3cc5f916f4cf.tar.bz2
* value.h (struct lval_funcs) <check_any_valid>: Rename from
check_all_valid. * value.c (value_entirely_optimized_out): Invert result. Update for new function name.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/value.c2
-rw-r--r--gdb/value.h2
3 files changed, 9 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7c09c65..f6ac381 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2010-07-01 Tom Tromey <tromey@redhat.com>
+
+ * value.h (struct lval_funcs) <check_any_valid>: Rename from
+ check_all_valid.
+ * value.c (value_entirely_optimized_out): Invert result. Update
+ for new function name.
+
2010-07-01 Pedro Alves <pedro@codesourcery.com>
Static tracepoints support.
diff --git a/gdb/value.c b/gdb/value.c
index 64ac563..edcd4d0 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -521,7 +521,7 @@ value_entirely_optimized_out (const struct value *value)
if (value->lval != lval_computed
|| !value->location.computed.funcs->check_validity)
return 1;
- return value->location.computed.funcs->check_all_valid (value);
+ return !value->location.computed.funcs->check_any_valid (value);
}
int
diff --git a/gdb/value.h b/gdb/value.h
index 474e661..0634bb9 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -170,7 +170,7 @@ struct lval_funcs
int (*check_validity) (const struct value *value, int offset, int length);
/* Return 1 if any bit in VALUE is valid, 0 if they are all invalid. */
- int (*check_all_valid) (const struct value *value);
+ int (*check_any_valid) (const struct value *value);
/* Return a duplicate of VALUE's closure, for use in a new value.
This may simply return the same closure, if VALUE's is