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:40 -0600
commitd9eebde01801427330b882d0104aa608788f268d (patch)
treea3bf28f764d63974498578f4b9e193a0480cbbad /gdb/exec.h
parent3769e2277d352243fa0121d68efe31ae5edc10d5 (diff)
downloadgdb-d9eebde01801427330b882d0104aa608788f268d.zip
gdb-d9eebde01801427330b882d0104aa608788f268d.tar.gz
gdb-d9eebde01801427330b882d0104aa608788f268d.tar.bz2
Change add_target_sections_of_objfile to method on program_space
This changes add_target_sections_of_objfile to be a method on program_space. It is renamed to be another overload of add_target_sections, because they are semantically equivalent in a sense. gdb/ChangeLog 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. * progspace.h (struct program_space) <add_target_sections>: Declare new overload. * exec.h (add_target_sections_of_objfile): Don't declare.
Diffstat (limited to 'gdb/exec.h')
-rw-r--r--gdb/exec.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/gdb/exec.h b/gdb/exec.h
index 3aa2485..4ddc685 100644
--- a/gdb/exec.h
+++ b/gdb/exec.h
@@ -92,11 +92,6 @@ extern enum target_xfer_status
/* Set the loaded address of a section. */
extern void exec_set_section_address (const char *, int, CORE_ADDR);
-/* Add the sections of OBJFILE to the current set of target sections.
- * OBJFILE owns the new target sections. */
-
-extern void add_target_sections_of_objfile (struct objfile *objfile);
-
/* Prints info about all sections defined in the TABLE. ABFD is
special cased --- it's filename is omitted; if it is the executable
file, its entry point is printed. */