+2020-10-12 Tom Tromey <tom@tromey.com>
+
+ * progspace.c (program_space::~program_space): Don't call
+ clear_section_table.
+ * exec.h (clear_section_table): Don't declare.
+ * exec.c (exec_target::close): Update.
+ (clear_section_table): Remove.
+
2020-10-12 Tom Tromey <tom@tromey.com>
* exec.c (add_target_sections_of_objfile): Simplify.
for (struct program_space *ss : program_spaces)
{
set_current_program_space (ss);
- clear_section_table (current_target_sections);
+ current_target_sections->sections.clear ();
exec_close ();
}
}
}
\f
-/* See exec.h. */
-
-void
-clear_section_table (struct target_section_table *table)
-{
- table->sections.clear ();
-}
-
/* Builds a section table, given args BFD, TABLE. */
target_section_table
extern target_section_table build_section_table (struct bfd *);
-/* Remove all entries from TABLE. */
-
-extern void clear_section_table (struct target_section_table *table);
-
/* The current inferior is a child vforked and its program space is
shared with its parent. This pushes the exec target on the
current/child inferior's target stack if there are sections in the
clear_symtab_users (SYMFILE_DEFER_BP_RESET);
if (!gdbarch_has_shared_address_space (target_gdbarch ()))
free_address_space (this->aspace);
- clear_section_table (&this->target_sections);
clear_program_space_solib_cache (this);
/* Discard any data modules have associated with the PSPACE. */
program_space_free_data (this);