diff options
author | Mark Kettenis <kettenis@gnu.org> | 2005-02-20 01:19:24 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2005-02-20 01:19:24 +0000 |
commit | a6c442d88114a76fe77ff3e3f6aa62993703759d (patch) | |
tree | 5ab13b27752d31560191470bb6ae89fad5e2349c /gdb/value.h | |
parent | 0ac0f72ae7b02217b8525a62c776b5aa190e185f (diff) | |
download | gdb-a6c442d88114a76fe77ff3e3f6aa62993703759d.zip gdb-a6c442d88114a76fe77ff3e3f6aa62993703759d.tar.gz gdb-a6c442d88114a76fe77ff3e3f6aa62993703759d.tar.bz2 |
* value.h (value_contents_equal): New prototype.
* value.c (value_contents_equal): New function.
* varobj.c: Include "exceptions.h" and "gdb_assert.h". Don't
include <math.h>.
(varobj_set_value): Initialize error to zero.
(varobj_update): Rename error2 to error and initialize it to zero.
Slightly change the wording of some comments.
(my_value_equal): Reimplement using TRY_CATCH and
value_contents_equal.
Diffstat (limited to 'gdb/value.h')
-rw-r--r-- | gdb/value.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/value.h b/gdb/value.h index e66daa0..8e31c86 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -186,6 +186,7 @@ extern bfd_byte *value_contents_all_raw (struct value *); extern const bfd_byte *value_contents_all (struct value *); 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 exist in the program. */ |