diff options
author | Tom Tromey <tom@tromey.com> | 2020-10-29 15:04:33 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-10-29 15:04:40 -0600 |
commit | d9eebde01801427330b882d0104aa608788f268d (patch) | |
tree | a3bf28f764d63974498578f4b9e193a0480cbbad /gdb/symfile.c | |
parent | 3769e2277d352243fa0121d68efe31ae5edc10d5 (diff) | |
download | gdb-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.c')
-rw-r--r-- | gdb/symfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index 5041327..58ed660 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -2323,7 +2323,7 @@ add_symbol_file_command (const char *args, int from_tty) if (seen_offset) set_objfile_default_section_offset (objf, section_addrs, offset); - add_target_sections_of_objfile (objf); + current_program_space->add_target_sections (objf); /* Getting new symbols may change our opinion about what is frameless. */ |