Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(331)

Unified Diff: gdb/progspace.c

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/progspace.h ('k') | gdb/psympriv.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/progspace.c
diff --git a/gdb/progspace.c b/gdb/progspace.c
index 7175fa6ab175b6adfc2beaf562437b1e085e7e8b..1065c277b9207c09b897a80f40fa6a5713e8b348 100644
--- a/gdb/progspace.c
+++ b/gdb/progspace.c
@@ -149,6 +149,7 @@ release_program_space (struct program_space *pspace)
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);
@@ -503,6 +504,19 @@ switch_to_program_space_and_thread (struct program_space *pspace)
+/* 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;
+}
+
+
+
/* Keep a registry of per-program_space data-pointers required by other GDB
modules. */
« no previous file with comments | « gdb/progspace.h ('k') | gdb/psympriv.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698