Remove call to exec_close
authorTom Tromey <tom@tromey.com>
Thu, 29 Oct 2020 21:04:33 +0000 (15:04 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 29 Oct 2020 21:04:41 +0000 (15:04 -0600)
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.

gdb/ChangeLog
gdb/progspace.c

index 3dff81ac62a3e09139839bc92317ce49062fd2a0..fe585c4f531be4c13e15109244f9f39ffc083d78 100644 (file)
@@ -1,3 +1,8 @@
+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
index 70c0f7ec2a2300ce336e4498a57c31101f5a8db8..0e7c8d2428eb56785df33b49fbeb612821cfa81c 100644 (file)
@@ -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.  */