Remove clear_section_table
authorTom Tromey <tom@tromey.com>
Mon, 12 Oct 2020 21:53:16 +0000 (15:53 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 13 Oct 2020 02:18:48 +0000 (20:18 -0600)
commiteda214cec17472e7383b8aaf17f6a065b0be4a1e
tree733232ddea15a84e73ef3094a81a8614ae2864f8
parent91840ee38a1114bc02120935bf73dd5acda3b062
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.
gdb/ChangeLog
gdb/exec.c
gdb/exec.h
gdb/progspace.c