Change add_target_sections_of_objfile to method on program_space
authorTom Tromey <tom@tromey.com>
Thu, 29 Oct 2020 21:04:33 +0000 (15:04 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 29 Oct 2020 21:04:40 +0000 (15:04 -0600)
commitd9eebde01801427330b882d0104aa608788f268d
treea3bf28f764d63974498578f4b9e193a0480cbbad
parent3769e2277d352243fa0121d68efe31ae5edc10d5
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.
gdb/ChangeLog
gdb/exec.c
gdb/exec.h
gdb/progspace.h
gdb/symfile-mem.c
gdb/symfile.c
This page took 0.024075 seconds and 4 git commands to generate.