* 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.
This commit is contained in:
parent
cef3d14b43
commit
b65c7efe97
|
@ -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>
|
2010-07-01 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
Static tracepoints support.
|
Static tracepoints support.
|
||||||
|
|
|
@ -521,7 +521,7 @@ value_entirely_optimized_out (const struct value *value)
|
||||||
if (value->lval != lval_computed
|
if (value->lval != lval_computed
|
||||||
|| !value->location.computed.funcs->check_validity)
|
|| !value->location.computed.funcs->check_validity)
|
||||||
return 1;
|
return 1;
|
||||||
return value->location.computed.funcs->check_all_valid (value);
|
return !value->location.computed.funcs->check_any_valid (value);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
|
@ -170,7 +170,7 @@ struct lval_funcs
|
||||||
int (*check_validity) (const struct value *value, int offset, int length);
|
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. */
|
/* 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.
|
/* Return a duplicate of VALUE's closure, for use in a new value.
|
||||||
This may simply return the same closure, if VALUE's is
|
This may simply return the same closure, if VALUE's is
|
||||||
|
|
Loading…
Reference in New Issue