diff options
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 6 | ||||
-rw-r--r-- | binutils/dwarf.c | 7 |
2 files changed, 12 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 7c547e6..c543e5b 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,5 +1,11 @@ 2022-06-27 Nick Clifton <nickc@redhat.com> + PR 29289 + * dwarf.c (display_debug_names): Replace assert with a warning + message. + +2022-06-27 Nick Clifton <nickc@redhat.com> + PR 29290 * dwarf.c (read_and_display_attr_value): Check that debug_info_p is set before dereferencing it. diff --git a/binutils/dwarf.c b/binutils/dwarf.c index 37b477b..b99c569 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -10194,7 +10194,12 @@ display_debug_names (struct dwarf_section *section, void *file) printf (_("Out of %lu items there are %zu bucket clashes" " (longest of %zu entries).\n"), (unsigned long) name_count, hash_clash_count, longest_clash); - assert (name_count == buckets_filled + hash_clash_count); + + if (name_count != buckets_filled + hash_clash_count) + warn (_("The name_count (%lu) is not the same as the used bucket_count (%lu) + the hash clash count (%lu)"), + (unsigned long) name_count, + (unsigned long) buckets_filled, + (unsigned long) hash_clash_count); } struct abbrev_lookup_entry |