From 3769e2277d352243fa0121d68efe31ae5edc10d5 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 29 Oct 2020 15:04:33 -0600 Subject: Change add_target_sections to method on program_space This changes add_target_sections to be a method on program_space. Like the earlier change to remove_target_sections, this makes sense because this function is manipulating data that is stored on the program space. gdb/ChangeLog 2020-10-29 Tom Tromey * solib.c (solib_map_sections): Update. * exec.c (program_space::add_target_sections): Now a method. (exec_file_attach): Update. * exec.h (add_target_sections): Don't declare. * progspace.h (struct program_space) : Declare. --- gdb/exec.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'gdb/exec.h') diff --git a/gdb/exec.h b/gdb/exec.h index d5b3cff..3aa2485 100644 --- a/gdb/exec.h +++ b/gdb/exec.h @@ -92,12 +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 array defined by [SECTIONS..SECTIONS_END[ to the - current set of target sections. */ - -extern void add_target_sections (void *owner, - const target_section_table §ions); - /* Add the sections of OBJFILE to the current set of target sections. * OBJFILE owns the new target sections. */ -- cgit v1.1