diff options
author | Pedro Alves <palves@redhat.com> | 2011-02-14 11:23:33 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-02-14 11:23:33 +0000 |
commit | c8c1c22feaaf76ddd437776a3cdeaedf4695916a (patch) | |
tree | 39a5cbfd10fae9dee763225229f2e532e4d312ef /gdb/ada-valprint.c | |
parent | e6e4e7014d3721283cf0415cadb3c7f1a1200f7b (diff) | |
download | gdb-c8c1c22feaaf76ddd437776a3cdeaedf4695916a.zip gdb-c8c1c22feaaf76ddd437776a3cdeaedf4695916a.tar.gz gdb-c8c1c22feaaf76ddd437776a3cdeaedf4695916a.tar.bz2 |
gdb/
* value.h (value_available_contents_eq): Declare.
* value.c (find_first_range_overlap): New function.
(value_available_contents_eq): New function.
* valprint.c (val_print_array_elements): Use
value_available_contents_eq.
* ada-valprint.c (val_print_packed_array_elements): Use
value_available_contents_eq.
* jv-valprint.c (java_value_print): Use
value_available_contents_eq.
Diffstat (limited to 'gdb/ada-valprint.c')
-rw-r--r-- | gdb/ada-valprint.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c index bc3ea26..9381ecc 100644 --- a/gdb/ada-valprint.c +++ b/gdb/ada-valprint.c @@ -200,7 +200,9 @@ val_print_packed_array_elements (struct type *type, const gdb_byte *valaddr, (i * bitsize) / HOST_CHAR_BIT, (i * bitsize) % HOST_CHAR_BIT, bitsize, elttype); - if (memcmp (value_contents (v0), value_contents (v1), eltlen) != 0) + if (!value_available_contents_eq (v0, value_embedded_offset (v0), + v1, value_embedded_offset (v1), + eltlen)) break; } |