diff options
author | Doug Evans <dje@google.com> | 2014-06-03 13:48:12 -0700 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2014-06-03 13:48:12 -0700 |
commit | a5b1fd27801326156c2263b867297e80bcf9fe3d (patch) | |
tree | 32642c2c3b4b920d559cd25073a8c6fa7df9f204 /gdb/progspace.c | |
parent | 33ac0ca144af42a986a21fcf9c978b4d75b8174c (diff) | |
download | fsf-binutils-gdb-a5b1fd27801326156c2263b867297e80bcf9fe3d.zip fsf-binutils-gdb-a5b1fd27801326156c2263b867297e80bcf9fe3d.tar.gz fsf-binutils-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.c | 3 |
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); |