aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-10-29 15:04:33 -0600
committerTom Tromey <tom@tromey.com>2020-10-29 15:04:41 -0600
commit8407f91bd388952721efa7f12c75bf94324dc506 (patch)
tree1bce9f269d8dacd92fb546d909faf53e64402dda
parent5008b3b2ebb6859212a3fd6a716dc4278d9b14bb (diff)
downloadgdb-8407f91bd388952721efa7f12c75bf94324dc506.zip
gdb-8407f91bd388952721efa7f12c75bf94324dc506.tar.gz
gdb-8407f91bd388952721efa7f12c75bf94324dc506.tar.bz2
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 <tom@tromey.com> * progspace.c (program_space::~program_space): Don't call exec_close.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/progspace.c1
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3dff81a..fe585c4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2020-10-29 Tom Tromey <tom@tromey.com>
+ * progspace.c (program_space::~program_space): Don't call
+ exec_close.
+
+2020-10-29 Tom Tromey <tom@tromey.com>
+
* exec.c (exec_target::close): Don't change current program
space.
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. */