Files
binutils-gdb/gdb/dwarf2
Tom de Vries 62a21046a9 [gdb/symtab] Fix assertion in write_debug_names
When running test-case gdb.dwarf2/pr13961.exp with target-board
cc-with-debug-names, I run into:
...
Running gdb.dwarf2/pr13961.exp ...
gdb compile failed, gdb/dwarf2/index-write.c:1305: internal-error: \
  write_debug_names: Assertion `counter == per_bfd->all_units.size ()' failed.
...

This is a regression since commit 542a33e348 ("Only use the per-BFD object to
 write a DWARF index"), which did:
...
-  gdb_assert (counter == per_objfile->per_bfd->all_comp_units.size ());
+  gdb_assert (counter == per_bfd->all_units.size ());
...

Fix this by reverting to using all_comp_units:
...
  gdb_assert (counter == per_bfd->all_comp_units.size ());
...

Tested on x86_64-linux, using target boards unix and cc-with-debug-names.

PR symtab/30741
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30741
2023-08-10 15:46:30 +02:00
..
2023-03-18 11:12:38 -06:00
2023-06-05 09:59:18 -06:00
2023-06-05 09:59:18 -06:00
2023-02-15 15:07:07 -07:00
2023-06-05 09:59:18 -06:00
2023-06-03 22:43:57 +02:00
2023-06-20 11:00:19 -06:00
2023-06-05 09:59:18 -06:00
2023-08-09 08:48:09 +09:30