diff options
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r-- | gdb/objfiles.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 41aab64..3419c6d 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -393,6 +393,10 @@ free_objfile (struct objfile *objfile) objfile->separate_debug_objfile_backlink->separate_debug_objfile = NULL; } + /* Remove any references to this objfile in the global value + lists. */ + preserve_values (objfile); + /* First do any symbol file specific actions required when we are finished with a particular symbol file. Note that if the objfile is using reusable symbol information (via mmalloc) then each of |