diff options
author | Andrew Burgess <aburgess@broadcom.com> | 2013-07-09 14:11:53 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@broadcom.com> | 2013-07-09 14:11:53 +0000 |
commit | 466c1fcab760e27b5a335e2fc99001809d03a05f (patch) | |
tree | e52889737bf2dfb334ad4c3b341de98c4501b99d /gdb/value.c | |
parent | 534523715ad0cdc2bcf26817c4caf40485aec40e (diff) | |
download | gdb-466c1fcab760e27b5a335e2fc99001809d03a05f.zip gdb-466c1fcab760e27b5a335e2fc99001809d03a05f.tar.gz gdb-466c1fcab760e27b5a335e2fc99001809d03a05f.tar.bz2 |
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.
Diffstat (limited to 'gdb/value.c')
-rw-r--r-- | gdb/value.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/value.c b/gdb/value.c index 1be1845..ce4b13a 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -1082,12 +1082,13 @@ value_entirely_optimized_out (const struct value *value) int value_bits_valid (const struct value *value, int offset, int length) { + if (!value->optimized_out) + return 1; if (value->lval != lval_computed || !value->location.computed.funcs->check_validity) - return !value->optimized_out; - else - return value->location.computed.funcs->check_validity (value, offset, - length); + return 0; + return value->location.computed.funcs->check_validity (value, offset, + length); } int |