summaryrefslogtreecommitdiff
path: root/gdb/value.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2014-07-14 18:48:09 +0100
committerPedro Alves <palves@redhat.com>2014-07-14 18:48:09 +0100
commitfeb6f816c2246f29e1f71db11a757cbf99c25492 (patch)
tree00d1b9dec359df08e4848f65d06e9abd9c14a9da /gdb/value.c
parentd98b7a16a982e4a17995536250b55f7ff82bd78e (diff)
downloadbinutils-gdb-feb6f816c2246f29e1f71db11a757cbf99c25492.tar.gz
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.
Diffstat (limited to 'gdb/value.c')
-rw-r--r--gdb/value.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/gdb/value.c b/gdb/value.c
index 557056f27a3..29abe5f7183 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -1210,25 +1210,6 @@ value_contents_writeable (struct value *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
value_optimized_out (struct value *value)
{