]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/progspace.c
Change exec_close to be a method on program_space
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:34 +0000 (15:04 -0600)
commit8a4f140205d1fb7240b154fd2f9074d7b42330b7
tree871e1273de3a465496fcf4d037904c756ea48375
parentc20cb6860c27d6ef15a1e561f4be78e7b85952ac
Change exec_close to be a method on program_space

exec_close uses the current program space, so it seemed cleaner to
change it to be a method on program_space.  This patch makes this
change.

gdb/ChangeLog
2020-10-29  Tom Tromey  <tom@tromey.com>

* progspace.c (program_space::exec_close): New method, from
exec_close in exec.c.
* exec.c (exec_close): Move to progspace.c.
(exec_target::close, exec_file_attach): Update.
* progspace.h (struct program_space) <exec_close>: Declare
method.
gdb/ChangeLog
gdb/exec.c
gdb/exec.h
gdb/progspace.c
gdb/progspace.h