From: Pedro Alves Date: Mon, 14 Feb 2011 11:52:48 +0000 (+0000) Subject: * value.c (value_bits_valid, value_bits_synthetic_pointer): X-Git-Tag: cygwin-1_7_8-release~127 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e730304246e026793738f1a2d135db2de36bf567;p=thirdparty%2Fbinutils-gdb.git * value.c (value_bits_valid, value_bits_synthetic_pointer): No longer handle NULL values. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bfef2e24c1d..52eac555d56 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-02-14 Pedro Alves + + * value.c (value_bits_valid, value_bits_synthetic_pointer): + No longer handle NULL values. + 2011-02-14 Pedro Alves * exceptions.h (NOT_AVAILABLE_ERROR): New error. diff --git a/gdb/value.c b/gdb/value.c index 3b4d23a7374..2b8dd360abb 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -998,7 +998,7 @@ value_entirely_optimized_out (const struct value *value) int value_bits_valid (const struct value *value, int offset, int length) { - if (value == NULL || !value->optimized_out) + if (!value->optimized_out) return 1; if (value->lval != lval_computed || !value->location.computed.funcs->check_validity) @@ -1011,7 +1011,7 @@ int value_bits_synthetic_pointer (const struct value *value, int offset, int length) { - if (value == NULL || value->lval != lval_computed + if (value->lval != lval_computed || !value->location.computed.funcs->check_synthetic_pointer) return 0; return value->location.computed.funcs->check_synthetic_pointer (value,