/* Program and address space management, for GDB, the GNU debugger.
- Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc.
+ Copyright (C) 2009-2012 Free Software Foundation, Inc.
This file is part of GDB.
free_address_space (pspace->aspace);
resize_section_table (&pspace->target_sections,
-resize_section_table (&pspace->target_sections, 0));
+ clear_program_space_solib_cache (pspace);
/* Discard any data modules have associated with the PSPACE. */
program_space_free_data (pspace);
xfree (pspace);
\f
+/* See progspace.h. */
+
+void
+clear_program_space_solib_cache (struct program_space *pspace)
+{
+ VEC_free (so_list_ptr, pspace->added_solibs);
+
+ free_char_ptr_vec (pspace->deleted_solibs);
+ pspace->deleted_solibs = NULL;
+}
+
+\f
+
/* Keep a registry of per-program_space data-pointers required by other GDB
modules. */