diff options
Diffstat (limited to 'gdb/valprint.c')
-rw-r--r-- | gdb/valprint.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c index 64a4b05..fd573c2 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -1242,9 +1242,11 @@ val_print_array_elements (struct type *type, rep1 = i + 1; reps = 1; while (rep1 < len - && memcmp (valaddr + embedded_offset + i * eltlen, - valaddr + embedded_offset + rep1 * eltlen, - eltlen) == 0) + && value_available_contents_eq (val, + embedded_offset + i * eltlen, + val, + embedded_offset + rep1 * eltlen, + eltlen)) { ++reps; ++rep1; |