aboutsummaryrefslogtreecommitdiff
path: root/gdb/exec.c
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
commit5008b3b2ebb6859212a3fd6a716dc4278d9b14bb (patch)
tree7ffc63d7da7ccf9c7a01cc646fbfbd5faa2f6960 /gdb/exec.c
parentd9eebde01801427330b882d0104aa608788f268d (diff)
downloadgdb-5008b3b2ebb6859212a3fd6a716dc4278d9b14bb.zip
gdb-5008b3b2ebb6859212a3fd6a716dc4278d9b14bb.tar.gz
gdb-5008b3b2ebb6859212a3fd6a716dc4278d9b14bb.tar.bz2
Don't change current program space in exec_target::close
Now that we've removed the macros and moved various functions to be methods on program_space (removing uses of current_program_space), it's clear that exec_target::close can operate on program spaces without changing the current program space. gdb/ChangeLog 2020-10-29 Tom Tromey <tom@tromey.com> * exec.c (exec_target::close): Don't change current program space.
Diffstat (limited to 'gdb/exec.c')
-rw-r--r--gdb/exec.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/exec.c b/gdb/exec.c
index 9c4d9be..8ab7162 100644
--- a/gdb/exec.c
+++ b/gdb/exec.c
@@ -154,11 +154,8 @@ exec_target_open (const char *args, int from_tty)
void
exec_target::close ()
{
- scoped_restore_current_program_space restore_pspace;
-
for (struct program_space *ss : program_spaces)
{
- set_current_program_space (ss);
ss->target_sections.clear ();
ss->exec_close ();
}