From d9eebde01801427330b882d0104aa608788f268d Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 29 Oct 2020 15:04:33 -0600 Subject: 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 * 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) : Declare new overload. * exec.h (add_target_sections_of_objfile): Don't declare. --- gdb/exec.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'gdb/exec.h') diff --git a/gdb/exec.h b/gdb/exec.h index 3aa248527c9..4ddc6850be1 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. */ -- cgit v1.2.1