mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2026-08-27 00:26:02 -04:00
[gdb/symtab] Revert "Add assert in free_cached_comp_units constructor"
This reverts commit b083976272.
The new assert triggers in test-cases gdb.ada/uninitialized-variable-record.exp and
gdb.ada/uninitialized_vars.exp on x86_64-linux.
This commit is contained in:
parent
44df4c6406
commit
92310a6d52
2 changed files with 0 additions and 9 deletions
|
|
@ -902,9 +902,6 @@ public:
|
|||
explicit free_cached_comp_units (dwarf2_per_objfile *per_objfile)
|
||||
: m_per_objfile (per_objfile)
|
||||
{
|
||||
/* The destructor frees all cached comp units, including ones currently
|
||||
cached, so check that there are no currently cached comp units. */
|
||||
gdb_assert (m_per_objfile->nr_of_cus () == 0);
|
||||
}
|
||||
|
||||
~free_cached_comp_units ()
|
||||
|
|
|
|||
|
|
@ -969,12 +969,6 @@ struct dwarf2_per_objfile
|
|||
/* Free all cached compilation units. */
|
||||
void remove_all_cus ();
|
||||
|
||||
/* Return the number of cached compilation units. */
|
||||
size_t nr_of_cus () const
|
||||
{
|
||||
return m_dwarf2_cus.size ();
|
||||
}
|
||||
|
||||
/* Increase the age counter on each CU compilation unit and free
|
||||
any that are too old. */
|
||||
void age_comp_units ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue