aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r--gdb/objfiles.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index e6b0ca7..368e129 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -530,6 +530,8 @@ objfile::~objfile ()
/* It still may reference data modules have associated with the objfile and
the symbol file data. */
forget_cached_source_info ();
+ for (compunit_symtab *cu : compunits ())
+ cu->finalize ();
breakpoint_free_objfile (this);
btrace_free_objfile (this);