diff options
author | Tom Tromey <tom@tromey.com> | 2020-10-29 15:04:33 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-10-29 15:04:34 -0600 |
commit | 8a4f140205d1fb7240b154fd2f9074d7b42330b7 (patch) | |
tree | 871e1273de3a465496fcf4d037904c756ea48375 /gdb/ChangeLog | |
parent | c20cb6860c27d6ef15a1e561f4be78e7b85952ac (diff) | |
download | gdb-8a4f140205d1fb7240b154fd2f9074d7b42330b7.zip gdb-8a4f140205d1fb7240b154fd2f9074d7b42330b7.tar.gz gdb-8a4f140205d1fb7240b154fd2f9074d7b42330b7.tar.bz2 |
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.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 357c57f..d06ea47 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,14 @@ 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. + +2020-10-29 Tom Tromey <tom@tromey.com> + * progspace.h (struct program_space) <exec_filename>: Rename from pspace_exec_filename. Now a unique_xmalloc_ptr. * inferior.c (print_selected_inferior): Update. |