aboutsummaryrefslogtreecommitdiff
path: root/gdb/progspace.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2014-06-03 13:48:12 -0700
committerDoug Evans <dje@google.com>2014-06-03 13:48:12 -0700
commita5b1fd27801326156c2263b867297e80bcf9fe3d (patch)
tree32642c2c3b4b920d559cd25073a8c6fa7df9f204 /gdb/progspace.c
parent33ac0ca144af42a986a21fcf9c978b4d75b8174c (diff)
downloadgdb-a5b1fd27801326156c2263b867297e80bcf9fe3d.zip
gdb-a5b1fd27801326156c2263b867297e80bcf9fe3d.tar.gz
gdb-a5b1fd27801326156c2263b867297e80bcf9fe3d.tar.bz2
resize_section_table cleanup
* exec.c (exec_close_1): Call clear_section_table instead of resize_section_table. (clear_section_table): New function. (resize_section_table): Make static. Rename arg num_added to adjustment. * exec.h (clear_section_table): Declare. (resize_section_table): Delete. * progspace.c (release_program_space): Call clear_section_table instead of resize_section_table.
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);