aboutsummaryrefslogtreecommitdiff
path: root/gdb/progspace.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-10-12 15:53:16 -0600
committerTom Tromey <tom@tromey.com>2020-10-12 20:18:48 -0600
commiteda214cec17472e7383b8aaf17f6a065b0be4a1e (patch)
tree733232ddea15a84e73ef3094a81a8614ae2864f8 /gdb/progspace.c
parent91840ee38a1114bc02120935bf73dd5acda3b062 (diff)
downloadbinutils-eda214cec17472e7383b8aaf17f6a065b0be4a1e.zip
binutils-eda214cec17472e7383b8aaf17f6a065b0be4a1e.tar.gz
binutils-eda214cec17472e7383b8aaf17f6a065b0be4a1e.tar.bz2
Remove clear_section_table
The call to clear_section_table in ~program_space is now clearly not needed -- the section table will clear itself. This patch removes this call and then inlines the one remaining call to clear_section_table. gdb/ChangeLog 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.
Diffstat (limited to 'gdb/progspace.c')
-rw-r--r--gdb/progspace.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/progspace.c b/gdb/progspace.c
index 3f51216..67ea8bd 100644
--- a/gdb/progspace.c
+++ b/gdb/progspace.c
@@ -154,7 +154,6 @@ program_space::~program_space ()
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);