mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 09:14:14 +08:00
Replace a run-time assertion failure with a warning message when parsing corrupt DWARF data.
PR 29289 * dwarf.c (display_debug_names): Replace assert with a warning message.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user