From 8407f91bd388952721efa7f12c75bf94324dc506 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 29 Oct 2020 15:04:33 -0600 Subject: Remove call to exec_close There's no need to call exec_close from ~progspace, because that method just does some cleanup that's already going to be done during destruction. This patch removes the call. gdb/ChangeLog 2020-10-29 Tom Tromey * progspace.c (program_space::~program_space): Don't call exec_close. --- gdb/progspace.c | 1 - 1 file changed, 1 deletion(-) (limited to 'gdb/progspace.c') diff --git a/gdb/progspace.c b/gdb/progspace.c index 70c0f7e..0e7c8d2 100644 --- a/gdb/progspace.c +++ b/gdb/progspace.c @@ -147,7 +147,6 @@ program_space::~program_space () breakpoint_program_space_exit (this); no_shared_libraries (NULL, 0); - exec_close (); free_all_objfiles (); /* Defer breakpoint re-set because we don't want to create new locations for this pspace which we're tearing down. */ -- cgit v1.1