Don't change current program space in exec_target::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)
commit5008b3b2ebb6859212a3fd6a716dc4278d9b14bb
tree7ffc63d7da7ccf9c7a01cc646fbfbd5faa2f6960
parentd9eebde01801427330b882d0104aa608788f268d
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.
gdb/ChangeLog
gdb/exec.c