* value.c (value_bits_valid, value_bits_synthetic_pointer):
No longer handle NULL values.
This commit is contained in:
parent
8af8e3bc81
commit
e730304246
|
@ -1,3 +1,8 @@
|
||||||
|
2011-02-14 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
|
* value.c (value_bits_valid, value_bits_synthetic_pointer):
|
||||||
|
No longer handle NULL values.
|
||||||
|
|
||||||
2011-02-14 Pedro Alves <pedro@codesourcery.com>
|
2011-02-14 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
* exceptions.h (NOT_AVAILABLE_ERROR): New error.
|
* exceptions.h (NOT_AVAILABLE_ERROR): New error.
|
||||||
|
|
|
@ -998,7 +998,7 @@ 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 == NULL || !value->optimized_out)
|
if (!value->optimized_out)
|
||||||
return 1;
|
return 1;
|
||||||
if (value->lval != lval_computed
|
if (value->lval != lval_computed
|
||||||
|| !value->location.computed.funcs->check_validity)
|
|| !value->location.computed.funcs->check_validity)
|
||||||
|
@ -1011,7 +1011,7 @@ int
|
||||||
value_bits_synthetic_pointer (const struct value *value,
|
value_bits_synthetic_pointer (const struct value *value,
|
||||||
int offset, int length)
|
int offset, int length)
|
||||||
{
|
{
|
||||||
if (value == NULL || value->lval != lval_computed
|
if (value->lval != lval_computed
|
||||||
|| !value->location.computed.funcs->check_synthetic_pointer)
|
|| !value->location.computed.funcs->check_synthetic_pointer)
|
||||||
return 0;
|
return 0;
|
||||||
return value->location.computed.funcs->check_synthetic_pointer (value,
|
return value->location.computed.funcs->check_synthetic_pointer (value,
|
||||||
|
|
Loading…
Reference in New Issue