aboutsummaryrefslogtreecommitdiff
path: root/gdb/progspace.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/progspace.c')
-rw-r--r--gdb/progspace.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/progspace.c b/gdb/progspace.c
index 88f59f4..a74b6ab 100644
--- a/gdb/progspace.c
+++ b/gdb/progspace.c
@@ -160,8 +160,7 @@ release_program_space (struct program_space *pspace)
free_all_objfiles ();
if (!gdbarch_has_shared_address_space (target_gdbarch ()))
free_address_space (pspace->aspace);
- resize_section_table (&pspace->target_sections,
- -resize_section_table (&pspace->target_sections, 0));
+ clear_section_table (&pspace->target_sections);
clear_program_space_solib_cache (pspace);
/* Discard any data modules have associated with the PSPACE. */
program_space_free_data (pspace);