diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/exec.c | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4096a1b..3dff81a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2020-10-29 Tom Tromey <tom@tromey.com> + * exec.c (exec_target::close): Don't change current program + space. + +2020-10-29 Tom Tromey <tom@tromey.com> + * symfile.c (add_symbol_file_command): Update. * exec.c (program_space::add_target_sections): Rename. * symfile-mem.c (symbol_file_add_from_memory): Update. @@ -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 (); } |