aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile-mem.c
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/symfile-mem.c
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/symfile-mem.c')
-rw-r--r--gdb/symfile-mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symfile-mem.c b/gdb/symfile-mem.c
index 916c37c..914976c 100644
--- a/gdb/symfile-mem.c
+++ b/gdb/symfile-mem.c
@@ -122,7 +122,7 @@ symbol_file_add_from_memory (struct bfd *templ, CORE_ADDR addr,
objf = symbol_file_add_from_bfd (nbfd, bfd_get_filename (nbfd),
add_flags, &sai, OBJF_SHARED, NULL);
- add_target_sections_of_objfile (objf);
+ current_program_space->add_target_sections (objf);
/* This might change our ideas about frames already looked at. */
reinit_frame_cache ();