aboutsummaryrefslogtreecommitdiff
path: root/gdb/exec.h
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:34 -0600
commit8a4f140205d1fb7240b154fd2f9074d7b42330b7 (patch)
tree871e1273de3a465496fcf4d037904c756ea48375 /gdb/exec.h
parentc20cb6860c27d6ef15a1e561f4be78e7b85952ac (diff)
downloadgdb-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/exec.h')
-rw-r--r--gdb/exec.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/gdb/exec.h b/gdb/exec.h
index b2f5150..f98dd83 100644
--- a/gdb/exec.h
+++ b/gdb/exec.h
@@ -117,8 +117,6 @@ extern void add_target_sections_of_objfile (struct objfile *objfile);
extern void print_section_info (target_section_table *table,
bfd *abfd);
-extern void exec_close (void);
-
/* Helper function that attempts to open the symbol file at EXEC_FILE_HOST.
If successful, it proceeds to add the symbol file as the main symbol file.