mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +08:00
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.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user