Revert recent changes to value_bits_valid.
http://sourceware.org/ml/gdb-patches/2013-07/msg00243.html * value.c (value_bits_valid): Revert previous change, and change by Pedro on 2013-07-04, due to regressions in gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
This commit is contained in:
parent
534523715a
commit
466c1fcab7
|
@ -1,3 +1,9 @@
|
||||||
|
2013-07-09 Andrew Burgess <aburgess@broadcom.com>
|
||||||
|
|
||||||
|
* value.c (value_bits_valid): Revert previous change, and change
|
||||||
|
by Pedro on 2013-07-04, due to regressions in
|
||||||
|
gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
|
||||||
|
|
||||||
2013-07-08 Andrew Burgess <aburgess@broadcom.com>
|
2013-07-08 Andrew Burgess <aburgess@broadcom.com>
|
||||||
Pedro Alves <palves@redhat.com>
|
Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
|
|
|
@ -1082,10 +1082,11 @@ value_entirely_optimized_out (const struct value *value)
|
||||||
int
|
int
|
||||||
value_bits_valid (const struct value *value, int offset, int length)
|
value_bits_valid (const struct value *value, int offset, int length)
|
||||||
{
|
{
|
||||||
|
if (!value->optimized_out)
|
||||||
|
return 1;
|
||||||
if (value->lval != lval_computed
|
if (value->lval != lval_computed
|
||||||
|| !value->location.computed.funcs->check_validity)
|
|| !value->location.computed.funcs->check_validity)
|
||||||
return !value->optimized_out;
|
return 0;
|
||||||
else
|
|
||||||
return value->location.computed.funcs->check_validity (value, offset,
|
return value->location.computed.funcs->check_validity (value, offset,
|
||||||
length);
|
length);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue