diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 77db20096f..2353e71e9e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2013-07-04 Pedro Alves + + * value.c (value_bits_valid): If the value is not lval_computed, + or doesn't have a check_validity hook, assume the value is entirely + valid. + 2013-07-04 Andrew Burgess * stack.c (read_frame_arg): No longer fetch lazy values. diff --git a/gdb/value.c b/gdb/value.c index ce4b13a17a..353f62a2ca 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -1086,7 +1086,7 @@ value_bits_valid (const struct value *value, int offset, int length) return 1; if (value->lval != lval_computed || !value->location.computed.funcs->check_validity) - return 0; + return 1; return value->location.computed.funcs->check_validity (value, offset, length); }