mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-29 16:38:05 +08:00
Garbage collect value_contents_equal.
Hasn't been used in years. gdb/ 2014-07-14 Pedro Alves <palves@redhat.com> * value.c (value_contents_equal): Delete function. * value.h (value_contents_equal): Delete declaration.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2014-07-14 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
|
* value.c (value_contents_equal): Delete function.
|
||||||
|
* value.h (value_contents_equal): Delete declaration.
|
||||||
|
|
||||||
2014-07-14 Tom Tromey <tromey@redhat.com>
|
2014-07-14 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
PR exp/17106:
|
PR exp/17106:
|
||||||
|
19
gdb/value.c
19
gdb/value.c
@ -1210,25 +1210,6 @@ value_contents_writeable (struct value *value)
|
|||||||
return value_contents_raw (value);
|
return value_contents_raw (value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return non-zero if VAL1 and VAL2 have the same contents. Note that
|
|
||||||
this function is different from value_equal; in C the operator ==
|
|
||||||
can return 0 even if the two values being compared are equal. */
|
|
||||||
|
|
||||||
int
|
|
||||||
value_contents_equal (struct value *val1, struct value *val2)
|
|
||||||
{
|
|
||||||
struct type *type1;
|
|
||||||
struct type *type2;
|
|
||||||
|
|
||||||
type1 = check_typedef (value_type (val1));
|
|
||||||
type2 = check_typedef (value_type (val2));
|
|
||||||
if (TYPE_LENGTH (type1) != TYPE_LENGTH (type2))
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
return (memcmp (value_contents (val1), value_contents (val2),
|
|
||||||
TYPE_LENGTH (type1)) == 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
int
|
||||||
value_optimized_out (struct value *value)
|
value_optimized_out (struct value *value)
|
||||||
{
|
{
|
||||||
|
@ -322,7 +322,6 @@ extern const gdb_byte *
|
|||||||
value_contents_for_printing_const (const struct value *value);
|
value_contents_for_printing_const (const struct value *value);
|
||||||
|
|
||||||
extern int value_fetch_lazy (struct value *val);
|
extern int value_fetch_lazy (struct value *val);
|
||||||
extern int value_contents_equal (struct value *val1, struct value *val2);
|
|
||||||
|
|
||||||
/* If nonzero, this is the value of a variable which does not actually
|
/* If nonzero, this is the value of a variable which does not actually
|
||||||
exist in the program, at least partially. If the value is lazy,
|
exist in the program, at least partially. If the value is lazy,
|
||||||
|
Reference in New Issue
Block a user